Closed
Description
My use case is a framework that lets you generate styles in a particular layer. For instance, Tailwind CSS v4 generates all the utility classes in a utilities
layer (which I can customize). If I want some utilities to have lower precedence than others, I can wrap them in another layer since unlayered styles beat layered styles. But if I want some utilities to have higher precedence than others, I am forced to resort to specificity hacks (e.g. :is(#a, .my-actual-selector)
). It would be nice if I could wrap them in @layer ..overrides
and they would win because I would define overrides
after utilities
.