Caret Color
Set the color for text input cursors.
Widely available
This feature is well established and works across many devices and browser versions.
Chrome
Edge
Firefox
Safari
Usage
Look at the color of the cursor when typing.
<div class="d-g g-16 gtc-1 sm:gtc-2"> <div class="d-g g-2"> <label class="c-slate fw-600">Default</label> <input class="bw-1 bc-silver-4 f:oc-silver-1 f:os-s f:ow-2 p-2 c-slate" placeholder="Type something..." /> </div>
<div class="d-g g-2"> <label class="c-slate fw-600">Custom</label> <input class="bw-1 bc-silver-4 f:oc-silver-1 f:os-s f:ow-2 cc-indigo p-2 c-slate" placeholder="Type something..." /> </div></div>Responsiveness
Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.
Target viewport sizes with breakpoint prefixes.
sm:cc-[value]Small≥640px
md:cc-[value]Medium≥768px
lg:cc-[value]Large≥1024px
xxl:cc-[value]Extra Large≥1536px
Hover State
Apply styles conditionally on hover using the h: prefix.
Add the h: prefix to apply styles only when the user hovers over the element.
Syntax:
h:cc-[value]Opacity Modifiers
Adjust color transparency by appending an opacity suffix.
Append /[opacity] to any color utility to control its transparency level.
Syntax:
cc-[color]/[0-100]