Skip to content

text-decoration-thickness

Utilities for controlling the stroke thickness of text decorations.

ISS preview
Iced + ISS preview demonstrating text-decoration-thickness
ISS preview for text-decoration-thickness
use iced::widget::text;
use iss::{tw, TwExt};
let accent = text("Highlighted").tw(tw!("underline decoration-2 decoration-blue-500"));
Tailwind Class CSS Property / Effect iss::typed Builder
decoration-auto text-decoration-thickness: auto; .decoration_auto()
decoration-from-font text-decoration-thickness: from-font; .decoration_from_font()
decoration-0 / 1 / 2 / 4 / 8 text-decoration-thickness: 0px .. 8px; .decoration_2()
decoration-[3px] text-decoration-thickness: 3px; .decoration_thickness_px(3)

text-decoration-line · text-underline-offset · text-decoration-style