question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

new audit: check that page supports dark mode

See original GitHub issue

Feature request summary

Test whether a site supports “dark mode”.

What is the motivation or use case for changing this?

The upcoming versions of Safari and Chrome support a “dark mode”, via prefers-color-scheme CSS media feature. System-level dark mode is coming to Android in Q, and iOS is also expected to get dark mode in the next major release. PWAs will not feel integrated into the system unless they support dark mode.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:2
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
paulirishcommented, Mar 27, 2019

Thanks for bringing it up, but I think it’s much too early for Lighthouse to evaluate this.

  1. chrome’s support of prefers-color-scheme hasn’t shipped yet.
  2. chrome hasn’t figured out the intended policy with enable-android-web-contents-dark-mode and if all pages will be affected.
  3. <meta name="supported-color-schemes"> isn’t shipped yet and seems very central to the developer story here.

Let’s wait for Chrome to have these components in stable and very clear guidance published before we drop people’s Lighthouse scores due to this.

2reactions
ithinkihaveacatcommented, Mar 27, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Chrome Now Supports Dark Mode Preference
Google Chrome announced support for a CSS media query that allows your site to switch to Dark Mode if that's a user's default...
Read more >
Dark Mode Can Improve Text Readability — But Not for ...
Dark modes can make site navigation difficult · People with dyslexia and astigmatism may have issues reading light text on dark backgrounds ·...
Read more >
How to detect if the User's OS prefers dark mode and change ...
You can set your Chrome/Edge browser to use System Settings, Light, or Dark. Search for Theme in Settings. Choose your Theme, Dark or...
Read more >
Illuminating dark mode - Figma
These considerations informed two main goals for the workstream: Enable Figmates to design and develop new features in dark mode out of the...
Read more >
Profile preferences - GitLab Docs
If you find an issue that isn't listed, leave a comment on the epic or create a new issue. Dark mode is available...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found