at rule for moving a utility class to the end of the layer #3423
SergiArias
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Hey! I don't think I understand what you're asking, can you provide some actual code samples so I can see what you're trying to do and what the problem is? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I have a little problem that I cannot solve. I want to create a utility that targets one media query, but I don't want tailwind to build all the variants for this particular media query.
This usually happens when there is the need to fix something that belongs only to that media and only requires a very simple change and not the complete utility toolbox.
There are solutions, but they come with some trouble:
So I think there should be an at rule like @screen-overrides {} that would put all the classes at the end of the layer so they can override.
Maybe there is already a solution, but I did search for it with no results. Any help will be appreciated!
SOLVED
Sorry for not reading carefully, the solution is here: https://tailwindcss.com/docs/functions-and-directives
Just using @tailwind screens; in my css I can order the media queries like I want!
Beta Was this translation helpful? Give feedback.
All reactions