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

BG custom value incorrect generation in next.js build #17473

Closed
senneclaeskens opened this issue Apr 1, 2025 · 1 comment
Closed

BG custom value incorrect generation in next.js build #17473

senneclaeskens opened this issue Apr 1, 2025 · 1 comment

Comments

@senneclaeskens
Copy link

What version of Tailwind CSS are you using?

v4.0.17

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

Next.js 15.2.4

What version of Node.js are you using?

v22.12.0

What browser are you using?

Chrome

What operating system are you using?

Windows

Reproduction URL

Describe your issue

So I'm not sure if this is a tailwind or next issue.
When running next dev, this is the generated CSS:

Image

Image

All good.

Now when running next build & next start, we see the following:

Image

Image

Center gets replaced by 50% and the rem value is being ignored, which makes the CSS have an incorrect value.

@philipp-spiess
Copy link
Member

Hey! This is unfortunately an upstream issue from lightningcss. Merging this into the existing GitHub issue but do check out the workaround here: #15897 (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