Re:Real-world CSS vs. CSS-in-JS performance comparison
by lwhi on Wednesday June 09, 2021 @04:24AM
(#27445536)
True, but I'm wondering how the CSS in JS users would implement this.
[ Parent
| on HN ]
Re:Real-world CSS vs. CSS-in-JS performance comparison
by betageek on Wednesday June 09, 2021 @11:02AM
(#27448705)
CSS-in-JS alone doesn't give you many tools for that kind of stuff, but if you use something that integrates more design system-style theming it's pretty easy - have a look at https://chakra-ui.com/ and click on the moon icon in the top corner for instant dark mode. Implementing various themes for high-contrast etc. would just be a case of changing the theme.