News for hackers. Stuff that matters.
Re:Ask HN: Dark mode for HN please? by gardaani on Saturday May 16, 2020 @12:52AM (#23200590)
Please, don't just force a dark mode to everyone with "prefers-color-scheme: dark".

Some are using OS in light mode, but would still like to use the dark mode. Sometimes, it might be useful to use the light version on dark systems. (e.g. if the dark css is not well made or looks bad on some monitors)

Here's a good thread about it: https://twitter.com/SaraSoueidan/status/1245722023361380354

Re:Ask HN: Dark mode for HN please? by tobyhinloopen on Saturday May 16, 2020 @03:47AM (#23201306)
This should be a browser option, not a website option.

If your browser tells the website you want a dark version, you’re getting a dark version. Seems right, doesn’t it?

Re:Ask HN: Dark mode for HN please? by Aeolun on Saturday May 16, 2020 @06:32AM (#23202276)
What if I want only HN to be dark? Can I configure it per site yet?

I have no issues with 3 options:

- Use browser

- Light

- Dark

Though. I think it’s too much configuration though.

Re:Ask HN: Dark mode for HN please? by giancarlostoro on Saturday May 16, 2020 @01:28AM (#23200741)
I feel like this should be a browser feature: toggle light / darkmode for a given site. Maybe you dont agree with their interpretation of darkmode...
Re:Ask HN: Dark mode for HN please? by kekub on Saturday May 16, 2020 @01:49AM (#23200809)
I agree. I think the default behaviour is good. prefers-color-scheme: dark should be the default, but be changeable browser wide (not sure if this is already the case) or per domain - just as it works with webcam access (storing the permission to view webcam for a given domain).
Re:Ask HN: Dark mode for HN please? by deanclatworthy on Saturday May 16, 2020 @02:59AM (#23201085)
I get it, but at the end of the day it's up to a site owner, surely? Much like we get to choose our site design, we also get to choose whether it's dark or light. It has always been this way.

The CSS property is a good indicator that you prefer a dark color scheme. In my case by turning this on I want an all dark UI on everything I use - all the time. Do we really need to force toggles on every website we build now for a small number of users who want a dark browser UI, but light websites? I'd prefer to go with the assumption that they want the design dark too.

Re:Ask HN: Dark mode for HN please? by tobyhinloopen on Saturday May 16, 2020 @03:48AM (#23201310)
I agree. Browser-builders should provide a way to configure the wants-dark-mode css query.