Skip to content

Styling not working when pushing to production ( padding, margin ) #553

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
indigotechtutorials opened this issue Jun 5, 2025 · 2 comments

Comments

@indigotechtutorials
Copy link

For some reason on new apps the styling is not working correctly when I deploy my Ruby on Rails app with TailwindCSS to production using Kamal

The styling works properly when developing locally but when I push to production it breaks. Some things work like background colors and text colors rounded.

But other things don't work like padding.

Its very strange, this has never happened before on earlier versions it just happened when trying to create some apps in the past week

@indigotechtutorials indigotechtutorials changed the title Styling not working when pushing to production Styling not working when pushing to production ( padding, margin ) Jun 5, 2025
@navidemad
Copy link

navidemad commented Jun 6, 2025

Same problem. I tried to remove the minification with ENV["TAILWINDCSS_DEBUG"] = "1" but it does not work also

@indigotechtutorials
Copy link
Author

Same problem. I tried to remove the minification with ENV["TAILWINDCSS_DEBUG"] = "1" but it does not work also

I just switched back to Tailwind CSS v3 and things immediately worked after wards when pushing to production. So it seems like its an issue with v4 specifically

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants