css prefer color scheme override js 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;
}
}