It's worth noting that the
prefers-color-schemeCSS media query can be used for a simple way to change site styles based on whether the user's system is in a light or dark mode (like macOS Mojave) e.g.
@media (prefers-color-scheme: dark)
Very informative and useful article! I'll use this feature in the next project!
Yep, it’s shame not so many projects do that. I have it on my website and would like to see it everywhere.
You can achieve this with the "checkbox trick" tho, without all the tooling/js
Good article nonetheless. Cheers