Register colors
I register new colors on Panel with this code:
but when i try to use with <x-filament::button color="orange">Test</x-filament::button>, it doesn't works.
How can i do it? Thanks!
5 Replies
It seems that you are using #4E8AFF expecting to see something orange but it is actually blue, your code is ok, just change #4E8AFF for something orange
When you generate a color from HEX, it generates some shades based on the Colors helper. Try to change your code to
Not sure it will work though, not on my laptop to test it out
💯
It worked?
yes, combined with Miguel, it works fine!