Build a no-flash dark mode toggle with plain CSS and JS. Use color-scheme, light-dark() and CSS variables, persist the choice in localStorage, and add a fallback.
Continue reading
Dark Mode CSS Variables: Build a Modern Theme with light-dark()
on SitePoint.
