Skip to content

Instantly share code, notes, and snippets.

@noestreich
Created October 22, 2019 06:12
Show Gist options
  • Save noestreich/2d8e3506a4fc967ff11ed3cd15724af6 to your computer and use it in GitHub Desktop.
Save noestreich/2d8e3506a4fc967ff11ed3cd15724af6 to your computer and use it in GitHub Desktop.
Dark mode in a website with 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