caret-color: Warnai Kursor Teks Playground

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

Try it in this playground