Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
CSS Media Query for Dark Mode
body {
background: #fff;
color: #222;
}
@media (prefers-color-scheme: dark) {
body {
background: #222;
color: #efefef;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment