Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider setting color-scheme to opt-out of Chrome Auto Dark Themes #1029

Open
katydecorah opened this issue Oct 26, 2021 · 1 comment
Open

Comments

@katydecorah
Copy link
Contributor

katydecorah commented Oct 26, 2021

Chrome is working on a new auto dark feature:

Chrome 96 introduces an Origin Trial for Auto Dark Themes on Android. With this feature, the browser applies an automatically generated dark theme to light themed sites, when the user has opted into dark themes in the Operating System. Users can opt-out of dark themes by either disabling the option on the OS level or in a specific setting in Chrome.
https://developer.chrome.com/blog/auto-dark-theme/

Since Assembly doesn't currently have a dark-theme (#954), we should consider opting out until we do. Otherwise, we will lose control over how elements are displayed on a user's system if they have dark mode enabled. This could result in poor contrast that renders text difficult to read or UI elements not translating well.

There are a few options to opt out, but I think this option may work best for Assembly:

It is still possible to use this approach to opt-out the entire page from Auto Dark Theme by setting the color-scheme on the :root element:

:root {
 color-scheme: only light;
}

Note: this feature is still being specified, but wanted to get ahead of it
https://bugs.chromium.org/p/chromium/issues/list?q=component:Mobile%3EAutoDarkTheme

@katydecorah
Copy link
Contributor Author

A few examples of Assembly sites with auto dark enabled:

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants