Skip to content

Instantly share code, notes, and snippets.

Created Oct 22, 2019
What would you like to do?
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