5 ms·
It's OK if a web-site uses the same dark theme as a brand style all the time. But there are some that force it ONLY when browser uses dark UI theme and it requi
by Mikho 5y ago
It's OK if a web-site uses the same dark theme as a brand style all the time. But there are some that force it ONLY when browser uses dark UI theme and it requires manipulation with browser theme setting to get the site in light theme.
- city41 5y agoI think your argument should be rerouted to browser standards and possibly browser vendors, but not websites. prefers-color-scheme is the only signal given to a website. What should a website do if it is set to "dark"? The only reasonable conclusion is to render a dark theme. Also offering a choice on top of that is a nice thing to do, but I can't agree it should be a requirement. Possibly browsers could offer per site prefers-color-scheme values, and that would probably solve the problem you're having. Even better, it'd solve it with no changes needed for current websites.
- Mikho 5y agoI surprised people are trying to explain how it works even if I never asked. Thanks, captain obvious. So, what I should change to have dark browser UI, but light web-sites? I change theme of UI in browsers setting, not what content is delivered. Two big differences. Last time I checked prefers-color-scheme in Dev Tools is for debugging only and there is no dedicated "prefers-color-scheme" in browser settings.
- city41 5y agoThere's no need to insult. This is a discussion. What you want is currently not possible. The web community currently does not see your use case as necessary or in demand. Maybe they are wrong. But again, blaming the websites for this who are just following the standards set for them is misguided.
- Mikho 5y agoMany comments here say that that's what browser says but there is no way to distinguish UI theme from content theme preferences and it's impossible to have dark UI with light content due to browser limitation. Hence, as they say, it's a problem of a browser, not a web-site. If it's obvious to everybody that these content preference signals from a browser lack crucial information as to distinguishing between UI and content preferences, maybe it's safer to keep standard default (usually light) and just offer and option to switch to dark theme in case a user wants and remember preferences locally till the next visit. There is no need to force dark theme in the absence of enough information from a browser as to exact user preferences. Browser doesn't ask for anything. It just says what UI theme a user has. It's a web-site that makes a conclusion based on limited information and then decides to force dark theme on content. Hence, my post here is to show this situation.
- lovich 5y agohttps://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme https://developer.mozilla.org/en-US/docs/Web/CSS/@media/pref... Doesn’t look like a debug only feature to me
- Dma54rhs 5y agoYour browser is asking for it. Disable the browser asking for dark ui or use a browser that doesn't by default if you think it's sensible default option.