/* Set dark/light theme based on system settings: */ @media (prefers-color-scheme: dark) { body { background: black; color: #ddd; } } @media (prefers-color-scheme: light) { body { background: #eee; color: black; } }