CSS "Dark Mode"
Apply css based on the user’s light/dark mode theme preference.
@media (prefers-color-scheme: dark) {
body {
background-color: black;
color: cyan;
}
}
Possible values:
light
dark
no-preference
(not widely supported as of writing)