2 ms·
The standard way would be to respect prefers-color-scheme (rather than make the user do something specific for your site). https://developer.mozilla.org/en-US/
by hackmiester 4y ago
The standard way would be to respect prefers-color-scheme (rather than make the user do something specific for your site).
https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme https://developer.mozilla.org/en-US/docs/Web/CSS/@media/pref...
- lelandfe 4y agoThat would be GP's second point, "respects my system theme."
- ryandrake 4y agoI'm not a web developer, but looking at "prefers-color-scheme," that seems like a good, but very tiny step in the right direction. I'd consider my system theme to be more than just binary "dark" vs. "light". What about font, text size, specific colors and appearance for content and UI controls, colors and fonts for link text, and so on. As a user, I shouldn't need to inject CSS, fart around with Greasemonkey scripts, or use the big hammer "Disable CSS," just to force my browser into respecting user preferences.