Tailwind not working in custom entry
I made a new custom entry with cli but when i use tailwind classes they don't work.
13 Replies
app.css is in resources/css
and custom entry is in app/Filament/Infolists/Components
I think
@import should be at the top. You added this as a theme and recompiled it?no, just app.css

Are you using Filament as a Panel with Resources etc. or are you using just single components?
as a panel with resources
Solution
Then you need a theme. Your
app.css does not apply to Filamenti followed this guide to make the custom entry
https://filamentphp.com/docs/4.x/infolists/custom-entries
Yeah, that's not the issue.
Why the sad emoji? It's a matter of minutes. It's just a separate CSS file for Filament
I will have to stick with the style method even though its bad practise, i got a deadline for this project so no time to make a whole theme just for a small section.
Anyways thanks for the help π
Did you read my message? It takes less than 5 minutes.
A "Theme" is just a CSS file, so you can add your own definitions and Tailwind Classes
i read it π i just heard too many times about different things that should take "5 minutes" or less but end up taking hours π
its no biggy, i just wanted to add badge styles of some lines of text so it was already done quick and easy
Give it 5 minutes π It's literally one command to create it and 2 files to add to your panel and vite.config