Kevin Powell - CommunityKP-C
Kevin Powell - Community17mo ago
16 replies
snxxwyy

regulated css vs @layer and @scope

Hey, what's a major difference between using regulated css and @layer/@scope? With @layer, if you generally make sure values don't clash and add exceptions for cases where they might then @layer seems like extra work to me? The same with @scope, rather than saying "make all text from a to b orange", then you could wrap the contents of a to b in a utility class called "text-orange" or something, at least that's what i've commonly seen used. All in all they both seem like more work? I'd appreciate some opinions, thanks in advance.
Was this page helpful?