Skip to content
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

Problems with V4 in Production vs. Development styles. #16174

Closed
immrjark opened this issue Feb 2, 2025 · 1 comment
Closed

Problems with V4 in Production vs. Development styles. #16174

immrjark opened this issue Feb 2, 2025 · 1 comment

Comments

@immrjark
Copy link

immrjark commented Feb 2, 2025

What version of Tailwind CSS are you using?

I'm using the latest, v4.0.3 -> "tailwindcss": "^4.0.3" & "@tailwindcss/vite": "^4.0.3"

What build tool (or framework if it abstracts the build tool) are you using?

I'm using Astro Framework with its last version "astro": "^5.2.3", with React: "react": "^19.0.0", Tailwind: "@tailwindcss/vite": "^4.0.3" & "tailwindcss": "^4.0.3" & Vercel: "@astrojs/vercel": "^8.0.5".

What version of PNPM are you using?

I'm using pnpm version 8.7.4 and the Node version is v22.12.0.

What browser are you using?

I'm using Chrome for running my code in production and development but it works equally in Brave.

What operating system are you using?

macOS.

Reproduction URL

Here is the Play Tailwind URL: https://play.tailwindcss.com/M5wpML6IAv
Here is my open source repository: https://github.com/immrjark/mrjark-dot-com
And here is my website: https://mrjark.com

Describe your issue

The problems are as shown in the images below. The tailwind code does not match in production vs. in development.

In production the screen styles and React button functionalities, which used to work perfectly with the v3 version of tailwind, now don't work as I expect.

And the only change I made in my repository was to upgrade to tailwind v4.

Image

Image

Image

Image

@wongjn
Copy link
Contributor

wongjn commented Feb 2, 2025

Might be related to #15794, see #15841 (comment)

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