prefers-color-scheme code example
Example: user preferred color scheme
@media (prefers-color-scheme: dark) {
.element {
background: black;
color: white;
}
}
@media (prefers-color-scheme: dark) {
.element {
background: black;
color: white;
}
}