body.dark { color-scheme: dark; } body:not(.dark) { color-scheme: light; }