Replies: 2 comments 4 replies
-
The is due to a limitation in CSS whereby CSS variables cannot be used within media queries. As a work-around, you could consider:
|
Beta Was this translation helpful? Give feedback.
1 reply
-
I have the same issue,
@media screen and (min-width: 620px) {
.container {
width: 10vw;
}
}
@media screen and (min-width: theme(--breakpoint-sm)) {
.container {
width: 10vw;
}
}
@variant sm {
.container {
width: 10vw;
}
}
@custom-variant custom (@media (min-width: 620px)); @variant custom {
.container {
width: 10vw;
}
} |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What version of Tailwind CSS are you using?
4.0.3
What build tool (or framework if it abstracts the build tool) are you using?
Vite
What version of Node.js are you using?
20.12.2
What browser are you using?
Chrome
What operating system are you using?
macOS
Reproduction URL
https://play.tailwindcss.com/aYjkwS7Og5
Describe your issue
Beta Was this translation helpful? Give feedback.
All reactions