Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

lucas_sheridan's avatar

Tailwind.css breakpoints not working

Using TailwindCSS for a site but running into a strange problem. Locally everything works perfectly.

The trouble arrises when I push my code to production using Forge. For some reason conditional styles based on breakpoints are not working, though all other classes work fine.

Not sure what could be the cause of this, but I would love any suggestions from more seasoned developers.

0 likes
3 replies
GamerFac3's avatar

Can you check if the classes are even there on your production server? Maybe you're purging the css wrong?

lucas_sheridan's avatar

Thanks for your help. I'm embarrassed to say that the screen was zoomed in to 90% , which caused the breakpoints in question to not load.

Thank you for taking time to try and help a dedicated developer that is always just a little over his head.

Please or to participate in this conversation.