GitHub-Dark-Script icon indicating copy to clipboard operation
GitHub-Dark-Script copied to clipboard

Support for OS dark mode toggle

Open Dave-Snigier opened this issue 6 years ago • 1 comments

WIth MacOS, IOS, and Android support for dark mode and the prefers-color-scheme CSS media query, it would be great if this script would respect those settings if set.

The behavior I was thinking is: prefers-color-scheme == light --> Disable dark mode related styling, but keep other tweaks enabled prefers-color-scheme == dark --> Enable dark mode related styling prefers-color-scheme == false (unset) --> Enable dark mode related styling

Ideally, there would be a feature toggle which could override the OS setting.

Mozilla - prefers-color-scheme prefers-color-scheme: Hello darkness, my old friend

Thoughts? Thanks for the great project!

Dave-Snigier avatar Apr 19 '20 14:04 Dave-Snigier

I have a userCSS for this, its a work in progress and will be posted in https://github.com/StylishThemes/Feature-Override-Styles

Also for better user experience I recommend stylus + github dark and not github dark script, the latter doesnt support multiple @moz-doc sections and its needed.

the-j0k3r avatar Apr 19 '20 16:04 the-j0k3r