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

prefers-color-scheme support #142

Open
samhh opened this issue Apr 20, 2020 · 1 comment
Open

prefers-color-scheme support #142

samhh opened this issue Apr 20, 2020 · 1 comment

Comments

@samhh
Copy link
Owner

samhh commented Apr 20, 2020

No description provided.

@Dorson
Copy link

Dorson commented Apr 21, 2020

The CSS rule for @media (prefers-color-scheme: dark) would work, but it would enforce one color only, and for the users that have that rule ON already. No way to switch it ON, OFF. Or give it to all as an option.

To resolve that I did the hard work.

Made and tested code for a CSS color switch with memory. Great for the night and evening time.

See live demo on GitHub page:

https://dorson.github.io/CSS-Dark-Mode-and-color-switch/

Have fun, feel free to fork, copy, adopt, port, etc...

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

2 participants