The Quest for the Perfect Dark Mode

from blog Josh Comeau's blog, | ↗ original
↗ original
Dark Mode has become common enough that it's a user expectation. And yet, creating the perfect dark mode with a statically-built site/app is deceptively tricky. In this in-depth tutorial, we'll see how to build the perfect, flicker-free, customizable theming solution for React/Next.js apps.