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
_vishalshah
_vishalshah17mo ago
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
Dennis Koch
Dennis Koch17mo ago
Make sure the paths are added to the Tailwind config and rebuild your theme
EdmerKun
EdmerKunOP17mo ago
Ohhh, I see... so this is what I've missed. I didn't rebuild it. Thank you!

Did you find this page helpful?