Fluid type. Make a size grow smoothly between two screen widths, and copy the clamp() value.

How it works

  1. Set two sizes

    The size on a small screen and on a large one.

  2. Set two widths

    The screen widths where it should stop shrinking and stop growing.

  3. Copy clamp()

    One CSS value in rem that respects the reader's font size setting.

Questions

Does fluid type break browser zoom?

Not if part of the value is in rem, as this one is. Text still grows when someone zooms or raises their default font size.

Can I use it for spacing too?

Yes. The same clamp() works for padding, gaps and margins.

More design tools