color-scheme: Dark Mode Bawaan Browser

The workshop’s account page for night work: write color-scheme or its meta, and the jars on the shelf fill with the colours read back from the browser…

Why it matters

The "half-done dark mode" bug nearly always comes from form controls, default text and scrollbars still painted with the light palette. One color-scheme on the root syncs them all without ::-webkit-scrollbar hacks, and light-dark() brings your own colours along.

The key idea

color-scheme recolours what you never styled

Common mistakes

Try it in this playground