Skip to content

color-scheme

Utilities for declaring light or dark system control color schemes on a subtree.

InteractivityTailwind v4 Spec
ISS preview
Iced + ISS preview demonstrating color-scheme
ISS preview for color-scheme
use iced::widget::container;
use iss::{tw, TwExt};
let panel = container(controls).tw(tw!("scheme-light dark:scheme-dark bg-white dark:bg-zinc-900 p-4 rounded-xl"));
Tailwind Class CSS Property / Effect iss::typed Builder
scheme-normal color-scheme: normal; .scheme_normal()
scheme-dark / scheme-light color-scheme: dark / light; .scheme_dark() / .scheme_light()
scheme-light-dark color-scheme: light dark; .scheme_light_dark()
scheme-only-dark / scheme-only-light color-scheme: only dark / only light; .scheme_only_dark()

accent-color · scrollbar-color