I know I've said this before, but I really hate CSS Modules.

Seriously, can it please go die in a fire?

#webdev #CSS #CSSModules

@kagan why, may i ask?
@shasherazi The problem it's trying to solve (unrestricted styling affecting unintended components) can easily be solved by just starting selectors with a classname equal to the component's name (thus restricting them without even needing a build step), but the "solution" is unnecessarily restrictive. In particular, it makes it very difficult to have a component vary if it's nested inside another one. 1/2
@shasherazi Overall, it feels like making those of us who understand CSS work with one hand metaphorically tied behind our backs just to keep from confusing the large number of folks who have learned just enough CSS to get themselves into trouble, but not enough to know how it actually works. It continually gets in my way. 2/2