4 ms·
Do you still have to explicitly add CSS to do something appropriate for the user's dark mode setting? I'd rather not specify any colors at all and just let the
by mwcampbell 4y ago
Do you still have to explicitly add CSS to do something appropriate for the user's dark mode setting? I'd rather not specify any colors at all and just let the browser use system defaults, but last time I checked, that used black-on-white even in dark mode.
- wildrhythms 4y agoThat would introduce yet another set of defaults that developers would then need to inevitably override.
- mwcampbell 4y agoI'd accept that. The user-agent knows better than I do what the user needs. Especially if the user is low-vision, color-sensitive, or whatever.
- graftak 4y agoIt would break legacy websites that never considered dark mode.
- schemescape 4y agoYes. Sadly, iOS Safari defaults to dark blue links on a dark background for dark mode.
- curlftpfs 4y agoYou do, via `color-scheme` or media query