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

Examples
Section titled “Examples”use iced::widget::text;use iss::{tw, TwExt};
let heading = text("Dashboard").tw(tw!("text-2xl/8 font-bold text-white"));use iss::typed::*;
let style = IssStyle::new().text_2xl().leading(8).font_bold().text_color(palette::WHITE);Class Reference
Section titled “Class Reference”| 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") |
Behavior Notes
Section titled “Behavior Notes”- Named size classes (
text-xs..text-9xl) also set Tailwind v4’s paired default line-height unless overridden withleading-*ortext-sm/6.