Skip to content

Instantly share code, notes, and snippets.

@ThisIsNoahEvans
Created June 16, 2020 19:33
Show Gist options
  • Save ThisIsNoahEvans/4f016939b5488604bd03252595388888 to your computer and use it in GitHub Desktop.
Save ThisIsNoahEvans/4f016939b5488604bd03252595388888 to your computer and use it in GitHub Desktop.
System Dark / Light mode CSS
/* Light mode */
@media (prefers-color-scheme: light) {
/* theme */
}
/* Dark mode */
@media (prefers-color-scheme: dark) {
/* theme */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment