CSS classes are not being compiled

Im trying to apply the class uppercase in a file and doenst work.
No description
14 Replies
Mohamed Ayaou
Mohamed Ayaouthis hour
Make sure you've setup a custom theme and the dir where the TW classes are included in the custom theme TW config file e.g:
content: [
'./app/Filament/**/*.php',
'./app/Livewire/**/*.php',
'./resources/views/**/*.blade.php',
// ...
content: [
'./app/Filament/**/*.php',
'./app/Livewire/**/*.php',
'./resources/views/**/*.blade.php',
// ...
toeknee
toekneethis hour
Ensure they are included in your blade as above, otherwise they won't get compiled if they are added within the resource files.
guiwestrup23
guiwestrup23OPthis hour
The test above I did in a "page", but I also test inside a resource and did not work
No description
toeknee
toekneethis hour
Ok to clarify... it won't work with ANY none blade file. And you need a custom theme, since the classes are searched for in blade files.
toeknee
toekneethis hour
I usually setup a classes.blade.php in the resources route, and add the classes to an empty div so the compiler finds them easy enough.
guiwestrup23
guiwestrup23OPthis hour
In my case, i already setup directly to dir in tailwind.config.js, is that what you mean?
No description
toeknee
toekneethis hour
in information.blade.php are you including the uppercase class within a div? Do you understand how tailwind compiling works?
guiwestrup23
guiwestrup23OPthis hour
No description
guiwestrup23
guiwestrup23OPthis hour
I thought so, but now I'm not so sure
toeknee
toekneethis hour
So if that tailwind class is there then it should be incldued I suspect you haven't created a custom theme for Filament
guiwestrup23
guiwestrup23OPthis hour
Yeah, now i get. If I want other classes that are not in the filament compilation, I need to have a custom theme .... I didn't understand that because I thought uppercase was a simple class. Thank you so much for your help.
toeknee
toekneethis hour
No problem, uppercase is but we don't sue it in our resources 😉
Dennis Koch
Dennis Kochthis hour
It will when you add it to the content config

Did you find this page helpful?