3 ms·
Yep, happily using css modules too. The only tiny issue left with that approach is that you still can't share code (for instance, colors) between JS & CSS. bu
by boubiyeah 10y ago
Yep, happily using css modules too.
The only tiny issue left with that approach is that you still can't share code (for instance, colors) between JS & CSS.
but overall, I think it's the best compromise today.
- TheAceOfHearts 10y agoLook at css-module-values [0]. It's not perfect, but it lets you share values between JS and CSS. All values in the file are visible on the imported module. [0] https://github.com/css-modules/postcss-modules-values https://github.com/css-modules/postcss-modules-values
- boubiyeah 10y agoThanks, looks handy!