Implement Dark Mode On Your Website.
👋 Interesting approach but why not leave theme detection to browser?
:root { color-scheme: light dark; --special-text-color: #000 } @media (prefers-color-scheme: dark) { :root { --special-text-color: #FFF; } } body, html { height: 100%; color-scheme: light dark;
}
Join the conversation