ltk::theme::typography

Function h0

Source
pub fn h0() -> Length
Expand description

Responsive counterparts of the px constants: each returns a Length that scales with the surface’s smaller dimension (vmin) and is clamped to a sensible px range, so the same level reads correctly from a portrait phone to a 4K desktop. Same hierarchy as the constants — h0 the largest display heading down to body_xs the smallest caption. Largest display heading: scales as 5% of vmin, clamped to 32..=80 px.