Appearance
Caret Color
Style syntax for setting the color of the cursor in text input.
š§This page is still under construction and some content may not be complete.
Overview [sr-only]
Basic usage
Set the cursor color
Use the caret-color:color
to change the cursor color in text input.
Focus on input to see the cursor color
<input type="text" class="caret-color:pink-70">
Conditionally apply
Apply styles in different states using selectors, media queries, etc.
<div class="caret-color:blue-46:hover caret-color:blue-46@sm caret-color:blue-46@dark caret-color:blue-46@print">ā¦</div>