Mrs. Lastri’s batik class form dipped in one dye: your accent-color tints the browser’s own controls, but which ones? The browser shows which element each…
Why it matters
Native form controls in a "foreign" colour make a product look unfinished. Redrawing a checkbox from scratch easily breaks keyboard focus and accessibility. accent-color gives them the brand colour and leaves all the built-in behaviour intact.
The key idea
One inherited property themes every native control
Common mistakes
Writing hundreds of lines of CSS just to recolour a checkboxappearance: none means you redraw everything: the tick, focus, disabled, high-contrast mode. If all you want is a colour, one line of accent-color is enough.
Writing accent-color on every input one by oneaccent-color is inherited. Write it once on :root or a container. Per-type input selectors even miss <progress>, which is not an input.
The tick is hard to see although accent-color is set The browser only sets the tick colour on top of the accent. The checked part must still reach 3:1 against the background (WCAG 1.4.11): in dark mode, use a lighter accent.
Try it in this playground
Write accent-color once on :root All five controls say "inherited from :root", the progress bar the per-input way missed included.
Give .danger its own colour The danger zone checkbox inherits from its fieldset, which is nearer than :root.
Write accent-color: auto for one control That control goes back to the browser’s own colour, the others keep the brand colour.
Print on the indigo cloth and check the contrast column A colour that is safe on the white cloth can fall under 3:1 on the dark one.