@media (prefers-color-scheme: dark) { body { background-color: black; color: white; } }
<meta name="color-scheme" content="dark light">