Skip to content

caret-color

Utilities for controlling the text insertion cursor color inside Iced text_input widgets.

InteractivityTailwind v4 Spec
ISS preview
Iced + ISS preview demonstrating caret-color
ISS preview for caret-color
use iced::widget::text_input;
use iss::{tw, TwExt};
let input = text_input("Command", &cmd).tw(tw!("px-3 py-2 bg-zinc-900 text-white caret-blue-400 rounded-lg"));
Tailwind Class CSS Property / Effect iss::typed Builder
caret-<color>-<shade> caret-color: <palette>; .caret(palette::SKY_400)
caret-auto / inherit / current / transparent Keyword caret colors; .caret_auto()
caret-(--color-primary) caret-color: var(--color-primary); .caret_var("--color-primary")

accent-color · color · appearance