-
Hi every one, Thank you for your advices ! <div class="w-12 h-12 bg-red-500 2sm:bg-yellow-500 sm:bg-green-500">
hello
</div> @import "tailwindcss";
/* 480px */
@custom-variant 2sm {
@media (min-width: 30rem) {
@slot;
}
} |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Try adding the variant as a breakpoint theme value so that they sort properly: https://play.tailwindcss.com/poURUKZhWp?file=css |
Beta Was this translation helpful? Give feedback.
-
thank you very much @wongjn !! |
Beta Was this translation helpful? Give feedback.
Try adding the variant as a breakpoint theme value so that they sort properly: https://play.tailwindcss.com/poURUKZhWp?file=css