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] When using a reference theme, --default variables don't work #13215

Closed
Steffan153 opened this issue Mar 12, 2024 · 1 comment
Closed

[v4] When using a reference theme, --default variables don't work #13215

Steffan153 opened this issue Mar 12, 2024 · 1 comment

Comments

@Steffan153
Copy link

Steffan153 commented Mar 12, 2024

What version of Tailwind CSS are you using?

v4.0.0-alpha.8

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

Astro 4.5.2, Vite 5.1.6

What version of Node.js are you using?

Bun 1.0.30

What browser are you using?

Chrome

What operating system are you using?

macOS

Reproduction URL

Tailwind Play doesn't have v4 yet? But here's a link with the code (doesn't work) https://play.tailwindcss.com/NhYGudCbaL

Describe your issue

If I import the theme as a reference (@import 'tailwindcss/theme' reference;), many properties such as transition still look for --default variables:

.transition-all {
    transition-property: all;
    transition-timing-function: var(--default-transition-timing-function);
    transition-duration: var(--default-transition-duration);
}

But those variables aren't set, so it doesn't work.

@Steffan153 Steffan153 changed the title [v4] When using a reference theme, many --default variables don't work [v4] When using a reference theme, --default variables don't work Mar 12, 2024
@adamwathan
Copy link
Member

Fixed in #13219, will be available in the next alpha later today 👍

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