How to use tailwind classes in custom pages
Hello, I'm trying to use tailwind classes in my custom page but not all classes is being rendered. The reason seems to be because of tailwind purging unused classes. However how do I prevent this so I can use tailwind?
5 Replies
You need to make a custom theme. https://filamentphp.com/docs/3.x/panels/themes
Hi, this creates a theme.css file but how do I apply other Tailwind Classes on the custom page - it doesn't work
For example: shadow-md doesn't work whereas shadow-sm and shadow-xl works fine because that was in the build version
Make sure the paths are added to the Tailwind config and rebuild your theme
https://filamentphp.com/docs/3.x/panels/themes#creating-a-custom-theme i do what this say and it work
Ohhh, I see... so this is what I've missed. I didn't rebuild it. Thank you!