-
I have a custom utility: @utility all-unset {
all: unset;
} I understandably need to have that utility always end up in the generated CSS before any other utilities. As it stands, it follows the normal rules for placement. For example: <div class="p-4">
<button class="all-unset p-4"></button>
</div> wouldn't apply any padding to the button because the first usage of Is there a way when defining an |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
What exactly should the utility do? Which styles do you want to overwrite: inherited styles or user-styles? |
Beta Was this translation helpful? Give feedback.
-
You could consider putting the rule's declaration in @utility all-unset {
@layer components {
all: unset;
}
} |
Beta Was this translation helpful? Give feedback.
You could consider putting the rule's declaration in
@layer components
: