3 ms·
A lot of CSS-in-JS libraries provide a theming solution, e.g. [1], so it's not an 'either/or'. (You can also relatively easily implement your own, because JS :
by allover 8y ago
A lot of CSS-in-JS libraries provide a theming solution, e.g. [1], so it's not an 'either/or'.
(You can also relatively easily implement your own, because JS :))
[1] https://www.styled-components.com/docs/advanced#theming https://www.styled-components.com/docs/advanced#theming
- jmull 8y agoSure. My point is, when it comes to visual styling, you inherently have a shared visual context. The post I was replying to was concerned with the "global" nature of CSS. I'm pointing out that this is inherent to the problem space. You have to deal with it whether you use CSS, code or any other mechanism to style.
- allover 8y agoNobody in the CSS-in-JS world is disputing that a global theme is useful, just that having no choice but to have all your selectors be global is not so great.