© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
4 replies
sdousley

Using Tailwind

Hi

I have a project where I'm using Tailwind. I have a related resouce, which I want to highlught red when the end date is within a defined period, now, that bit works, and it adds a new class (basic tailwind class - bg-red-300) to the tr element within the table, however, whenever I run npm run dev, the base template Filament uses does NOT use the built version of CSS. Likewise if I run
npm build
npm build
it does not use the CSS from public/build/assets.

I followed th Tailwind installation guide here https://filamentphp.com/docs/3.x/tables/installation#installing-tailwind-css but that doesn't appear to have helped. Interestingly, anything I add into the app.blade.php file that is suggested to be created in there is also not replicated, which is where I suspect this is not working as intended.
Installation - Table Builder - Filament
Solution
You should make a filament theme first, then configure your panel to use it by
viteTheme
viteTheme
in your panel provider.

https://filamentphp.com/docs/3.x/panels/themes#creating-a-custom-theme
Themes - Panel Builder - Filament
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Using Filament with Tailwind Prefix
FilamentFFilament / ❓┊help
2y ago
Using Tailwind 4 alongside with filament
FilamentFFilament / ❓┊help
12mo ago
Using Tailwind in a custom field
FilamentFFilament / ❓┊help
3y ago
Using Tailwind & Livewire outside of Filament...
FilamentFFilament / ❓┊help
3y ago