Skip to content

accent-color

Utilities for styling the accent fill color of native checkboxes and form controls.

InteractivityTailwind v4 Spec
ISS preview
Iced + ISS preview demonstrating accent-color
ISS preview for accent-color
use iced::widget::checkbox;
use iss::{tw, TwExt};
let toggle = checkbox("Enable sync", state.sync)
.on_toggle(Message::ToggleSync)
.tw(tw!("accent-blue-500 text-sm text-zinc-100"));
Tailwind Class CSS Property / Effect iss::typed Builder
accent-<color>-<shade> accent-color: <palette>; .accent(palette::BLUE_500)
accent-auto / inherit / current / transparent Keyword accent colors; .accent_auto()
accent-[#2563eb] / accent-(--color-primary) Arbitrary and @theme accents; .accent_var("--color-primary")

appearance · caret-color · color-scheme