Why tailwind doesnt work in filament pages?
i created a page:
then i added this in the view:
but i dont see it red. i did npm run build to test if that fixes it, but doesnt
8 Replies
in the overview in the docs says "Filament allows you to create completely custom pages for the app". does that include using css classes?
(https://filamentphp.com/docs/3.x/panels/pages)
You need to create a custom theme since
bg-red-500
is not in the default theme
https://filamentphp.com/docs/3.x/panels/themes#creating-a-custom-themeoh i see. hmm. and there is any way to allow all tailwind classes?
Why would you want it? That makes the CSS file bloated with classes you don't use.
u r right π€
Create a custom theme and build the theme whenever you change some classes around.
You could use
npm run dev
for developmentill do that
yeah, thanks π
np