css media query for dark theme 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;
}
}