F
Filament13mo ago
toeknee

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.
No description
No description
Solution:
Got it, it was an filament serveing function to register the css from V2 applying a legacy css file. Much better now 🙂
Jump to solution
4 Replies
LeandroFerreira
LeandroFerreira13mo ago
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')
toeknee
toekneeOP13mo ago
Light is a class used within custom views, I can build it into a custom theme I suppose
awcodes
awcodes13mo ago
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
toeknee
toeknee13mo ago
Got it, it was an filament serveing function to register the css from V2 applying a legacy css file. Much better now 🙂
Want results from more Discord servers?
Add your server