Tailwindcss theme problem
Good day, I have a component in Livewire that generates a calendar. The component uses tailwindcss. I would like to use this component in filament-page, but when I use it there, the calendar has no style. Adding css classes to the resources/css/app.css file and compiling this with npm run build does not help. The css code is not visible in the page preview.
4 Replies

Should looks like that:

Solution
To clarify, since I also ran into this exact issue today, you can use the
@vite
directive in any blade template to include local css for that particular page or component. It adds an extra http request but only loads when needed. Very neat.