News for hackers. Stuff that matters.
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.