F
Filament8mo 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 Koch8mo ago
You did recompile your custom theme?
MKD
MKD8mo ago
Nope, how do I recompile it ? It is not a custom theme tho.
Solution
Dennis Koch
Dennis Koch8mo 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
MKD8mo ago
I have followed the docs of updating tailwind.config.js but let me check the theme docs, thank you.
Shaung Bhone
Shaung Bhone8mo ago
that function is not working I need to create theme first?
Dennis Koch
Dennis Koch8mo ago
As I mentioned above: If you use classes that don't exist in Filaments theme, you need to create a theme
MKD
MKD8mo ago
Fixed You must create a custom theme in order for filament to use classes that do not exit in filament themes.
MKD
MKD8mo ago
Thank you