Beta CSS media query: prefers-color-scheme


This is neat; Safari previewing a CSS query for dark-mode:

body {
  color: #333;
}

@media (prefers-color-scheme: dark) {
  body {
    color: #ddd;
    background-color: #222;
  }
}
This entry was posted on October 25, 2018 with tags