Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


That would introduce yet another set of defaults that developers would then need to inevitably override.


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.


It would break legacy websites that never considered dark mode.


Yes. Sadly, iOS Safari defaults to dark blue links on a dark background for dark mode.


You do, via `color-scheme` or media query




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: