Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants