3 ms·
This is generally how I feel as well - CSS is really powerful, but also a lot simpler than it used to be in many ways, and to me it makes sense to lean into tha
by MrJohz 3y ago
This is generally how I feel as well - CSS is really powerful, but also a lot simpler than it used to be in many ways, and to me it makes sense to lean into that.
That said, I find the tooling for CSS modules tends to be fairly dire - type annotations are poor, jumping between different files is a nuisance, jump-to-definition rarely behaves correctly, etc. It could be a lot better, but it feels like there's no single organisation pushing CSS modules forwards like they have with certain CSS-in-JS frameworks, or with Tailwind.
- codelikeawolf 3y ago100% agree on the tooling issues. WebStorm does its best, but it leaves something to be desired. CSS modules are the only way to get around some of Svelte's scoped style gotchas without needing to ship a runtime (e.g. Emotion). So I play through the pain.