Skip to content

border-color

Utilities for controlling uniform, per-side, logical border colors, and divider colors.

ISS preview
Iced + ISS preview demonstrating border-color
ISS preview for border-color
use iced::widget::container;
use iss::{tw, TwExt};
let panel = container(body).tw(tw!("p-4 border border-zinc-200 dark:border-zinc-800 hover:border-blue-500 rounded-xl"));
Tailwind Class CSS Property / Effect iss::typed Builder
border-<color>-<shade> border-color: <palette>; .border_color(palette::ZINC_800)
border-t-* / r-* / b-* / l-* / x-* / y-* Per-side border colors; .border_t_color(palette::BLUE_500)
border-s-* / border-e-* Logical inline border colors; .border_s_color(palette::SKY_500)
divide-<color>-<shade> Divider stroke color; .divide_color(palette::ZINC_800)
border-white/15 / border-(--color-border) Alpha modifier and @theme tokens; .border_color_var("--color-border")
  • Defaults to currentColor when border is set without an explicit color, matching Tailwind v4.

border-width · border-style · outline-color