V3 coloring
Following the docs for v3 colors this should work... but doesn't, the classes also load in custom-500 etc on a button. What am I missing, I am sure it's something simple.
Solution:Jump to solution
Got it, it was an filament serveing function to register the css from V2 applying a legacy css file. Much better now 🙂
4 Replies
if you are using
light
for example, should have a fi-btn-color-light
class in the button I think
This would be applied with ->color('light')
Light is a class used within custom views, I can build it into a custom theme I suppose
You shouldn’t define colors in your tailwind config directly. Unless you define them as rgb. Custom colors should always be registered via the FilamentColor facade / class or on the panel.
If you look at the tailwind preset in filament you can see how they would need to be defined in a tailwind config.
Solution
Got it, it was an filament serveing function to register the css from V2 applying a legacy css file. Much better now 🙂