[v4] How to target screen breakpoint in CSS #16811
Answered
by
wongjn
subproject22
asked this question in
Help
-
I need to change CSS variable depending on breakpoint. I cant find how to target it in docs? |
Beta Was this translation helpful? Give feedback.
Answered by
wongjn
Feb 25, 2025
Replies: 1 comment 5 replies
-
Use an arbitrary property class like: <div class="[--my-variable:foo] md:[--my-variable:bar]"> |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the
@variant
directive like: