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

Detect dark mode setting from browser/OS #96

Open
jonespm opened this issue Sep 1, 2020 · 2 comments
Open

Detect dark mode setting from browser/OS #96

jonespm opened this issue Sep 1, 2020 · 2 comments

Comments

@jonespm
Copy link
Collaborator

jonespm commented Sep 1, 2020

I believe some work was done here to support dark mode. The default should be the mode specified by the browser.

Most browsers supply this media query https://caniuse.com/#search=prefers-color-scheme
This can also be read in javascript. This article has the best practice ways to support this: https://web.dev/prefers-color-scheme/#finding-out-if-dark-mode-is-supported-by-the-browser

@brettwilcox
Copy link

brettwilcox commented Dec 27, 2020

👋 Hi Tsugi Team!

Just a word of caution, we at AA found a usability issue with defaulting to dark mode. Users with eyesight issues immediately had concerns. The main feedback is users felt the desktop OS dark mode websites were different from mobile OS dark mode for apps.

Instead, we are opting to have a switch in the user profile.

Additional context
https://www.w3.org/WAI/fundamentals/accessibility-usability-inclusion/

@csev
Copy link
Collaborator

csev commented Dec 27, 2020 via email

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

No branches or pull requests

3 participants