Custom theme - Tailwind class not included in built css
Made custom theme and required steps but my added Tailwind class is not in CSS.
For testing i added Tailwind class
text-ellipsis
to app/Filament/Resources/ProductResource.php
1. Made custom theme:
2. Added new item in vite.config.js
3. Added viteTheme()
to Admin-panel
4. Executed build command
Why the tailwind.config.js
warning here?
The Filament command created this file @ resources/css/filament/admin/tailwind.config.js
:
Am i missing something here?3 Replies
Hm, this looks all good to me. I guess you build the theme after adding the new TW class?
Weird. I got it finally working. Any ideas why vite is yelling about Tailwind CSS config?
Not really. I think I have the same 😅