loading...

re: Create A Dark/Light Mode Switch with CSS Variables VIEW POST

FULL DISCUSSION
 

Very cool.

Have you thought about the prefers-color-scheme media feature? How could this be implemented in this script? You should check that too In my opinion. The toggle would have to automatically switch to the preferred color scheme.

Code of Conduct Report abuse