News for hackers. Stuff that matters.
Re:Dark mode in a website with CSS by JDiculous on Wednesday October 09, 2019 @10:09AM (#21203404)
EDIT: Just wrote a quick article elaborating/demoing what I'm talking about: https://www.jbernier.com/dark-mode/

Also I made a small mistake in the code there, it's `isDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches`

There are no comments on this comment yet.