conditional @apply #1528
DeVoresyah
started this conversation in
General
Replies: 1 comment
-
Variants can't be used with div:hover {
@apply bg-green-500;
}
@screen md {
div {
@apply bg-blue-500;
}
}
@screen lg {
div {
@apply bg-red-500;
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
what I mean about "conditional" here is something like this
it means when the screen at medium the background will be blue and at the large screen, the background will be red right?
so for me, inline style is too long and I prefer to use
@apply
directive. But there's no conditional like thisBeta Was this translation helpful? Give feedback.
All reactions