Skip to content
BENIBIX Learn

Fluid Typography

Design🌐 Web DesignResponsive Layout

Also known as Fluid Type, Responsive Typography, CSS clamp() Type

Text that grows bit by bit as the screen gets wider. It has a top and a bottom size.

Think of it like

It is like a balloon that grows as you blow. The text gets bigger smoothly as the screen grows.

Example

A heading is 28 pixels on a phone and grows bit by bit to 48 on a wide screen, with no sudden jump.

Why it matters

Headings fit every screen without a stack of breakpoints for each size.

Definition

Fluid type is text that grows smoothly with the screen width, between a smallest and a largest size. Instead of jumping at breakpoints, a heading slowly gets bigger as the window widens. In CSS it is usually done with clamp(). The smallest size must stay readable, and the text must still grow when people zoom.

Example code

css
h1 { font-size: clamp(1.75rem, 1rem + 3vw, 3rem); }
The size never drops below 1.75rem or grows past 3rem.

Common mistake

Using only vw units. The text then ignores zoom, which fails people who need it bigger.

Key takeaways

  1. 1
    Grows smoothly. No sudden jumps.
  2. 2
    A floor and a ceiling. Set with clamp().
  3. 3
    Still zooms. Mix rem with vw.