←back to thread

838 points bennettfeely | 2 comments | | HN request time: 0.58s | source
Show context
zozbot234 ◴[] No.22941909[source]
Isn't it a bit ridiculous that we need to do this in the first place? Shouldn't clear 3D controls on a neutral gray background be the default user-agent appearance, with no need for custom CSS of any sort?
replies(4): >>22942032 #>>22942037 #>>22942736 #>>22943380 #
tiborsaas ◴[] No.22943380[source]
No, it's not. If it were gray then it would be already opinionated. Why #eee, why not #e9e9e9 or #fefefe or how about #c9c9c9? That doesn't make much sense and it's hard to settle on a color or should it be Tim Berners Lee average hair color? :)

So what remains is either black or white. White seems to be a more rational pick.

replies(1): >>22944721 #
noisem4ker ◴[] No.22944721[source]
The system theme should reflect the user's opinion (or at least their learned expectation), thus browsers should honor the system theme.
replies(1): >>22946561 #
1. tiborsaas ◴[] No.22946561[source]
I disagree, it's a question of authoring freedom. We have a fairly recent "prefers-color-scheme: dark" media query for this which further proves my point, that it's either black or white by default.

If you, the author of the page decide to respect it then it's fine, but I'd be a bit mad if the browser decided to override my page design to an arbitrary grey shade if I don't declare a background color for the body.

replies(1): >>22949114 #
2. zozbot234 ◴[] No.22949114[source]
The prefers-color-scheme media query can return any of 'light', 'dark' or 'no-preference' (the default). There's no real default for "light" design except as may be provided by the page author, or perhaps by the user herself via setting such a preference.