Tailwind classes not found outside of filament
I'm using Filament for the first time and it is working beautifully, however I'm unable to use regular TW classes such as "font-3xl" in my other livewire components.
I'm pretty sure this is a vite config issue, but I've followed the guide and even attempted to add a custom theme. This has been driving me nuts for a day!
24 Replies
Can you look at this thread, I think it's the same issue
https://discord.com/channels/883083792112300104/1192461271837196400/1192461271837196400
I'll check it out! Haven't seen that thread yet 👍🏻 thanks for the response
Just to clarify, the TW classes aren't being applied in standalone Livewire components which do not contain Filament forms or tables
But still in the panel right?
Nope
Just to be sure, the Livewire component is not on a custom page in the panel or something like that
This is just some text in a regular Livewire componenet with some classes:
Yeah but where is the Livewire component included
weird huh?
In a custom page on the panel or just some custom route or something
It's a full page component with just one line of text ina div
So a custom route?
yup
So bizarre!
Aight, that's what I needed to know.
Are you running
npm run build
or npm run dev
?I build, then dev
What do you include in your layout?
The app.css or the filament theme?
Is the view made inside a .blade.php file in the resources/views/ directory?
Or in the Livewire component itself?
The blade file is under resources/views/livewire/pages
So
/resources/views/->
yup
Then I'm lost, you could try to still make a custom theme and include the custom theme in your page
It's so weird because some TW classes are working
I will try this, thanks!!!