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…
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.
color-scheme recolours what you never styled
background: #222, the scrollbar & forms stay light Add color-scheme: dark on :root. background only paints your box; what switches the browser’s built-in palette (Field, CanvasText, the scrollbar) is color-scheme.color-scheme on one small component only It inherits downwards, not upwards: the rest of the page, its canvas and scrollbar stay light. For a global dark mode, set it once on :root or through <meta name="color-scheme" content="light dark">.color-scheme styles your own components It does not. It only sets the browser’s built-in palette. Colours you write stay yours: write light-dark(light, dark) so they follow the scheme, or set them through prefers-color-scheme.color-scheme: light to dark Without a single colour: the canvas, text, input, select, button and the page scrollbar go dark, and the jars on the shelf change.color-scheme: dark on .card only The input inside the card is dark, the one outside stays light: a scheme inherits downwards only.color-scheme: light dark The browser picks by your OS (read from prefers-color-scheme), and light-dark() on the card follows that pick.