A caret utility changes the insertion indicator independently of text colour. Match its contrast to the input surface in both themes.
Worked example
<input
class="demo caret-rose-700"
aria-label="Edit title"
value="Edit description"
/>Implementation notes
Caret colour has little effect on non-text controls. Apply the utility to the actual editable element rather than its field wrapper.
Try it yourself
Toggle the theme with the input focused.
Open the Tailwind CSS example →Editorial date August 28, 2025 · Published December 6, 2026