News for hackers. Stuff that matters.
Re:Please don't force dark mode by bee_rider on Sunday January 19, 2025 @05:08PM (#42762497)
On my system, the dark reader plugin also has an option to force a light theme.

Actually, the browser has the ability to set a default background and foreground anyway, so this extension would be unnecessary if websites would behave properly and respect these defaults unless they really need to. We live in an unfortunate world where a “actually respect my preferences” extension is necessary, but since it is necessary, it should be noted that it covers both options. Overall the situation is pretty stupid but hey at least we’ve got workarounds, right?

Re:Please don't force dark mode by aniviacat on Sunday January 19, 2025 @07:08PM (#42763519)
Browsers shouldn't set a preferred colour scheme by default.

I think the prefers-color-scheme media query would be respected on more sites if by default it had the value "unset" or something, instead of defaulting to "light" or "dark".

I personally don't respect it on my sites for this reason. 99% of people visiting my sites won't actually have set this value themselves.

Re:Please don't force dark mode by Kamq on Sunday January 19, 2025 @09:00PM (#42764213)
> Browsers shouldn't set a preferred colour scheme by default.

I mean, they really don't (the defaults are exactly what they have been since Mosaic left the scene). Unless the user tells them to do something else.

And at that point, it's my computer, and I told it to do something, why shouldn't it do that?

Re:Please don't force dark mode by steve_taylor on Sunday January 19, 2025 @09:05PM (#42764244)
> 99% of people visiting my sites won't actually have set this value themselves.

It's inherited from their operating system settings. Dark theme is typically opt-in.

Re:Please don't force dark mode by philwelch on Monday January 20, 2025 @12:53AM (#42765393)
Actually, websites shouldn’t set a preferred color scheme by default.