News for hackers. Stuff that matters.
Re:58 bytes of CSS to look great nearly everywhere by mwcampbell on Sunday September 25, 2022 @12:01PM (#32972650)
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.
Re:58 bytes of CSS to look great nearly everywhere by wildrhythms on Sunday September 25, 2022 @12:04PM (#32972682)
That would introduce yet another set of defaults that developers would then need to inevitably override.
Re:58 bytes of CSS to look great nearly everywhere by mwcampbell on Sunday September 25, 2022 @12:05PM (#32972706)
I'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.
Re:58 bytes of CSS to look great nearly everywhere by graftak on Monday September 26, 2022 @01:28AM (#32979734)
It would break legacy websites that never considered dark mode.
Re:58 bytes of CSS to look great nearly everywhere by schemescape on Sunday September 25, 2022 @12:18PM (#32972860)
Yes. Sadly, iOS Safari defaults to dark blue links on a dark background for dark mode.
Re:58 bytes of CSS to look great nearly everywhere by curlftpfs on Sunday September 25, 2022 @03:02PM (#32974796)
You do, via `color-scheme` or media query