Feature request: Add a “responsive reset” behavior to allow overriding all breakpoint variants of a class group #628
Unanswered
maximepvrt
asked this question in
Ideas
Replies: 0 comments
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.
-
I’m using tailwind-merge inside a design system that autogenerates responsive classes (Nuxt UI in my case, but the problem applies to any UI library doing this).
When I try to override a class group (e.g. padding), I can override the base class, but not all responsive variants.
❌ Current behavior
Result:
The base padding gets overridden (
p-4 → p-2), but all responsive variants remain untouched.🧩 Why this is a real issue in the ecosystem
When a design system generates responsive classes that I don’t directly control:
xl:), my overrides suddenly breakExample:
After a design system update adds a new breakpoint (e.g.
xl:):I now need to manually add
xl:p-2, and the problem repeats every time new breakpoints are introduced.🧨 Practical consequences
This becomes:
🙏 Feature request
Add a way to reset all variants of a class group when one override is applied.
Beta Was this translation helpful? Give feedback.
All reactions