geist-ui icon indicating copy to clipboard operation
geist-ui copied to clipboard

CSS-controlled theming

Open Zk2u opened this issue 3 years ago • 0 comments

Feature request 🚀

  • [ ] I will create Pull Request
  • [x] It's just a suggestion

Expected

Could we have CSS-based theming capabilities, so we don't have issues of a dark mode flash when using SSR and automatic dark mode? Is there a way to do this already so the theme colours aren't server rendered and are determined in browser by a theme-dark class or a theme-light class?

Examples

If I want to use the default dark mode, I'd add a theme-dark class to the body element. Else add a theme-light class

Zk2u avatar Apr 30 '22 13:04 Zk2u