Skip to content

Combining media queries in TW4 #18130

Answered by wongjn
m-shum asked this question in Help
May 23, 2025 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

You could split it up like:

@custom-variant foo (@media (hover: hover));
<div class="foo:md:text-red-500 foo:lg:bg-blue-200">

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@m-shum
Comment options

@wongjn
Comment options

wongjn May 23, 2025
Collaborator

Answer selected by m-shum
@m-shum
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants