Skip to content

Instantly share code, notes, and snippets.

@assertnotnull
Created October 9, 2019 17:43
Show Gist options
  • Save assertnotnull/63fb3702eebff673fa562b4eb7b1b9b8 to your computer and use it in GitHub Desktop.
Save assertnotnull/63fb3702eebff673fa562b4eb7b1b9b8 to your computer and use it in GitHub Desktop.
Dark mode CSS
@media (prefers-color-scheme: dark) {
body {
background-color: #444;
color: #e4e4e4;
}
a {
color: #e39777;
}
img {
filter: grayscale(30%);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment