Mac Dark Mode media queries

30/10/20181 Min Read — In CSS

CSS TIP: Mac Dark Mode media queries (currently in Safari Tech Preview)

/* Default Light Mode */
body {
  color: #333;
  background-color: #fff;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  body {
    color: #fff;
    background-color: #333;
  }
}