Two takes on light-dark(): color tokens are declared once as light-dark(light, dark), and whichever half applies depends entirely on the color-scheme of the element using them. No gray primitives to override, no custom-property cross-element surprises.
No toggle here on purpose. This panel only sets color-scheme: light dark; the browser picks based on your OS or browser appearance setting.
Radios force color-scheme on this section directly, overriding the system default. The swatch on the right goes further: its background-image is itself a light-dark() pair, gated behind @supports for browsers that don't parse images inside it yet (Safari, as of this writing).