Skip to content

Instantly share code, notes, and snippets.



Last active Apr 19, 2021
What would you like to do?
CSS Dark Mode
@media (prefers-color-scheme: light) {
body {
background-color: white;
color: black;
@media (prefers-color-scheme: dark) {
body {
background-color: black;
color: white;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment