Skip to content

Instantly share code, notes, and snippets.

@fannheyward
Created March 20, 2019 02:40
Show Gist options
  • Save fannheyward/e39d8851b31014e2253ed46add181a56 to your computer and use it in GitHub Desktop.
Save fannheyward/e39d8851b31014e2253ed46add181a56 to your computer and use it in GitHub Desktop.
/* dark mode */
@media (prefers-color-scheme: dark) {
body {
background-color: black;
color: white;
}
}
@media (prefers-color-scheme: light) {
body {
background-color: white;
color: black;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment