make all tailwind classes available
Hi i have a custom infolists component which is a table and not many of the tailwind classes work
like bg-gray-100 would work but if i change it to something else it wont
i have created a new theme and reg like this
am i missing something ? thanks
13 Replies
If you're used to using Tailwind, you know that building production assets scans your code for classes it should include, and it excludes everything else.
Filament ships with all the assets that Filament implements.
If you want to add more, or change some, rebuild the assets yourself, incorporating your custom components etc. EDIT: You'll need to add some more paths to your build.
how can i do that
i assumed creating a new theme will do it
You may need to list your app namespace as additional files for it to parse
You'll find this is one of the most common questions people ask. I think a search for
vite
or tailwind
will probably reveal the answer you're looking for. awcodes often gives great answers about this topic, so look for what he's got to say in the search results you find.right ill have a look thanks
thanks ill have a read
I think one of your tailwind configs is wrong. Looks like the custom class isnt being included in the purged tailwind file
Where do you put the
bg-gray-100
?Did you include the blade files in the tailwind config?
this is from what filament generated for the theme in css/filament/admin
is your blade in that location?
no its in infolists i just saw that now
works now
thanks
Great!