Fluid Typography
Use clamp() for fluid type that scales smoothly with the viewport — not cramped on mobile, not huge on desktop.
Live demo
Fluid heading
Drag the slider to change the scale
Implementation prompts
Set display headings with clamp(28px, 5vw, 64px) so type scales fluidly with the viewport.Set display headings with clamp(28px, 5vw, 64px). Animate the size transition smoothly on viewport change.Design spec entry
### Fluid Typography (#fluid-type) Category: Typography Use clamp() for fluid type that scales smoothly with the viewport — not cramped on mobile, not huge on desktop. - Do: Set display headings with clamp(28px, 5vw, 64px) so type scales fluidly with the viewport With motion: Set display headings with clamp(28px, 5vw, 64px). Animate the size transition smoothly on viewport change. Live demo: https://uidesignmd.com/guides/fluid-type/