Skip to content

border-radius

Utilities for controlling uniform, per-side, per-corner, and logical corner rounding.

ISS preview
Iced + ISS preview demonstrating border-radius
rounded-none/.rounded_none()
use iced::widget::container;
use iss::{tw, TwExt};
let card = container(body).tw(tw!("p-5 bg-zinc-900 rounded-2xl border border-zinc-800"));
Tailwind Class CSS Property / Effect iss::typed Builder
rounded-none / xs / sm / md / lg border-radius: 0 .. 0.5rem; .rounded_md() / .rounded_lg()
rounded-xl .. rounded-4xl / full border-radius: 0.75rem .. 9999px; .rounded_xl() / .rounded_full()
rounded-t-* / b-* / l-* / r-* Per-side corner radii; .rounded_t_xl() / .rounded_b_xl()
rounded-s-* / e-* / ss-* / se-* / ee-* / es-* W3C logical corner radii; .rounded_s_lg() / .rounded_e_lg()
rounded-[14px] border-radius: 14px; .rounded_px(14)
rounded-(--radius-card) border-radius: var(--radius-card); .rounded_var("--radius-card")
  • Logical rounded-s/e/ss/se/ee/es-* flip automatically inside dir_rtl(...).
  • Add overflow-hidden when flush child backgrounds or buttons touch the rounded edges.

border-width · overflow · outline-width