Fluid typography

noun

say it: “FLOO-id ty-POG-ruh-fee” /ˈfluːɪd taɪˈpɑɡrəfi/

Text whose size grows smoothly as the screen gets wider, between a smallest and a largest size, instead of jumping at breakpoints. It's usually written with clamp().

What is fluid typography?

Fluid typography is text that grows smoothly as the screen gets wider, instead of jumping at breakpoints. You set a smallest size, a preferred size that follows the window's width, and a largest size, usually with clamp().

h1 { font-size: clamp(1.75rem, 1rem + 3vw, 3rem); }   /* never under 1.75rem, never over 3rem */

In a sentence

  • “With fluid typography, the coffee shop's headline grows a little with every inch you widen the window.”

Level: Journeyman · More CSS terms at this level

Updated