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

[V4] Theme colors broken on build result #15018

Open
danie-ramdhani opened this issue Nov 16, 2024 · 0 comments
Open

[V4] Theme colors broken on build result #15018

danie-ramdhani opened this issue Nov 16, 2024 · 0 comments

Comments

@danie-ramdhani
Copy link

What version of Tailwind CSS are you using?

4.0.0-alpha.33

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

vite 5.4.11

What version of Node.js are you using?

What browser are you using?

Chrome

What operating system are you using?

Windows

Reproduction URL

Describe your issue

--color-primary is not works properly on build result but works as expected in development mode.

Steps to Reproduce

<div
        style="background-color: var(--color-primary); width: 40px; height: 40px; margin-top: 10px; margin-bottom: 10px;">
</div>
@theme {
    --color-primary: light-dark(theme(--color-cyan-700), theme(--color-cyan-300));
}

dev mode result

dev mode result

dev mode result 1

build result

build result

build result 1

@danie-ramdhani danie-ramdhani changed the title Theme colors broken on build result [V4] Theme colors broken on build result Nov 16, 2024
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

1 participant