Any time I see criticism of CSS in JS, and a move to CSS modules, I get sad they didn’t just do a bit more research. You can have both, while also not shipping any JS runtime for CSS in JS! And with TypeScript support.
The Achilles heel of this class of library (including stylex, Linaria, etc.) is precedence. You either have to use a runtime and some complicated merging rules (e.g longhand overrides shorthand) or compile every possible combination of the styles at build time.
lloydatkinson · · focus · HN ↗
<a href="https://vanilla-extract.style/" rel="nofollow">https://vanilla-extract.style/
wonnage · · focus · HN ↗