prefers color scheme

65

/* Set dark/light theme based on system settings: */
@media (prefers-color-scheme: dark) {
  body { background: black; color:  #ddd; }
}

@media (prefers-color-scheme: light) {
  body { background:  #eee; color: black; }
}

Comments

Submit
0 Comments