@media (prefers-color-scheme: dark) {} doesnt work 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;
}
}