F
Filament2y ago
MKD

Why isn't my record classes not working?

I have updated my tailwind config and I use the record class as the docs say. The classes are being set, but there is no change in the row the styling is not applying.
No description
No description
Solution:
Well, there's your issue. The classes aren't used within Filament, so you need a custom theme to include theme. Follow the theme docs and come back if you get stuck.
Jump to solution
10 Replies
Dennis Koch
Dennis Koch2y ago
You did recompile your custom theme?
MKD
MKDOP2y ago
Nope, how do I recompile it ? It is not a custom theme tho.
Solution
Dennis Koch
Dennis Koch2y ago
Well, there's your issue. The classes aren't used within Filament, so you need a custom theme to include theme. Follow the theme docs and come back if you get stuck.
MKD
MKDOP2y ago
I have followed the docs of updating tailwind.config.js but let me check the theme docs, thank you.
Shaung Bhone
Shaung Bhone2y ago
that function is not working I need to create theme first?
Dennis Koch
Dennis Koch2y ago
As I mentioned above: If you use classes that don't exist in Filaments theme, you need to create a theme
MKD
MKDOP2y ago
Fixed You must create a custom theme in order for filament to use classes that do not exit in filament themes.
MKD
MKDOP2y ago
Thank you

Did you find this page helpful?