Media queries not working on custom classes (Tailwind 4) #18078
Unanswered
shadesofcyber
asked this question in
Help
Replies: 1 comment 4 replies
-
Your |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
since my development follows a Figma design, I need to define a bunch of custom classes under "@layer" utilities. Unfortunately, when I try to use media queries like sm, md, lg in my jsx, they do not work with my custom classes.
I then tried to define a custom class like this, but that doesn't work either (apparently, the apply rule does not work):
@utility testclass { @apply font-rota text-[20px]... }
How do I make media queries work with custom classes Tailwind 4?
Beta Was this translation helpful? Give feedback.
All reactions