-
Hey, I have defined CSS variables like the following example, however the changed value due to the media constraint does not apply: @theme {
--width-something: 48px;
}
@media (width >= theme(--breakpoints-md)) {
@theme {
--width-something: 96px;
}
} I'm not entirely sure on how to modify the variables with breakpoints, in v4, so could be that the example is not entirely correct. I've also tried using |
Beta Was this translation helpful? Give feedback.
Answered by
wongjn
Jan 31, 2025
Replies: 1 comment
-
@theme {
--width-something: 48px;
}
@layer theme {
:root {
@variant md {
--width-something: 96px;
}
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mikededo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://play.tailwindcss.com/VcXoUmnQSx?file=css