8 ms·
True, but I'm wondering how the CSS in JS users would implement this.
by lwhi 5y ago
True, but I'm wondering how the CSS in JS users would implement this.
- betageek 5y agoCSS-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/ 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.