The workshop’s order form: click and type in real fields, each field’s jar reads the caret colour from getComputedStyle, where it came from (inherited or…
Why it matters
A contrasting caret tells people at once which field is active, especially on a dark theme or a coloured field. And since caret-color is inherited, one value on :root can quietly make the caret vanish in another area.
The key idea
caret-color is only the caret; auto means "follow the text colour"
Common mistakes
Assuming caret-color colours the text too No. It is only the blinking line. The text colour is set by color, a separate property. Set both if you want them to match.
The caret disappears on a dark theme A dark caret (often inherited from :root) is too close to a dark background. Override it per area with a contrasting colour (≥ 3:1), or leave auto if the text is already light.
Using transparent without building a replacement caret The field ends up with no cursor indicator at all, which confuses people. transparent is only for when you really draw your own fake caret (code editors, OTP inputs).
Try it in this playground
Pick "Brand caret on :root", then type in any field One value on :root, every field gets an orange caret: caret-color is inherited. The "where from" column says where it came from.
Pick "A red caret on .name", then type in Name The caret is red, the letters you type stay dark grey. Two separate properties.
Pick "A dark caret everywhere", then click the search field or the cloth label Barely visible: its contrast is under 3:1 against the dark background.
Pick "transparent on notes", then type in Notes The letters appear, but nothing shows where they will land. Only fair when you draw your own caret.