CSS Dark Mode

Use the prefers-color-scheme CSS media feature:

@media (prefers-color-scheme: dark) {
body {
background: #333;
color: #fff;
}
}