Theme generator

Pick a few inputs and every component re-derives from them, in light and dark. The contrast table checks the result as you go. Copy the CSS when you are done.

Themes
Colours
Shape

Contrast

Measured from the colours the browser renders, in both schemes. Text needs 4.5:1; borders and focus rings need 3:1.

PairNeedsLightDark

CSS