Hacker News new | ask | show | jobs
by Klathmon 3596 days ago
IMO the whole CSS issue isn't "solved" yet.

There are like 3 or 4 different ways of doing it, each with their own pretty big drawbacks.

Personally we ended up using CSS Modules with SASS in our "main" react project, but it feels clunky.

The biggest issue we have is determining which element "owns" the styling. Should a widget style itself, or should it let it's container style it, or should it provide some simple defaults and let the container overwrite them (which gets ugly because with CSS Modules overwriting means using !important or doubling classes (like `.button.button` to overwrite `.button`).

All that being said, it's actually working out really well for us despite feeling wrong. And it might not ever become an issue because our largest stylesheet is like 100 lines long since everything is so compartmentalized.