Skip to content

font-size

Utilities for controlling font size and optional paired line-height.

ISS preview
Iced + ISS preview demonstrating font-size
text-xs/.text_xs()
use iced::widget::text;
use iss::{tw, TwExt};
let heading = text("Dashboard").tw(tw!("text-2xl/8 font-bold text-white"));
Tailwind Class CSS Property / Effect iss::typed Builder
text-xs / text-sm / text-base font-size: 0.75rem / 0.875rem / 1rem; .text_xs() / .text_sm() / .text_base()
text-lg .. text-9xl font-size: 1.125rem .. 8rem; .text_lg() / .text_2xl()
text-sm/6 Paired font-size + line-height; .text_sm().leading(6)
text-[15px] font-size: 15px; .text_px(15)
text-(--text-title) font-size: var(--text-title); .text_size_var("--text-title")
  • Named size classes (text-xs..text-9xl) also set Tailwind v4’s paired default line-height unless overridden with leading-* or text-sm/6.

line-height · font-weight · letter-spacing