Skip to content

text-underline-offset

Utilities for controlling the vertical gap between text baselines and underlines.

ISS preview
Iced + ISS preview demonstrating text-underline-offset
ISS preview for text-underline-offset
use iced::widget::text;
use iss::{tw, TwExt};
let link = text("API Reference").tw(tw!("underline underline-offset-4 decoration-blue-400"));
Tailwind Class CSS Property / Effect iss::typed Builder
underline-offset-auto text-underline-offset: auto; .underline_offset_auto()
underline-offset-0 / 1 / 2 / 4 / 8 text-underline-offset: 0px .. 8px; .underline_offset_4()
underline-offset-[3px] text-underline-offset: 3px; .underline_offset_px(3)

text-decoration-line · text-decoration-thickness