Skip to content
BENIBIX Learn

Type Scale

Design🔤 TypographyType Sizes and Styles

Also known as Modular Scale, Typographic Scale

A set list of text sizes that grow by one ratio. Every heading uses one of them.

Think of it like

It is like the steps of a staircase. Each step goes up by the same amount.

Example

Jack uses a base of 16px and a ratio of 1.25. His sizes are 16, 20, 25, 31 and 39px, and nothing else.

Why it matters

A scale stops sizes like 15, 16 and 17 that are too close to tell apart.

Formula

size(n) = base × ratio^n

Definition

A type scale is a fixed set of text sizes that grow by the same ratio. You pick a base size, like 16px, and a ratio, like 1.25. Each step up is the last size times the ratio: 16, 20, 25, 31 and so on. Every heading and label uses a size from the scale. That keeps sizes clearly different and in harmony.

Example code

css
:root {
  --text-base: 1rem;      /* 16px */
  --text-lg:   1.25rem;   /* 20px */
  --text-xl:   1.5625rem; /* 25px */
  --text-2xl:  1.953rem;  /* 31px */
}
A scale with a ratio of 1.25, saved once and used everywhere.
Each size is the one before times 1.25.

Common mistake

Picking each size by eye on each page. Over time you get a dozen sizes that do not fit together.

Key takeaways

  1. 1
    Base and ratio. 16px times 1.25, and so on.
  2. 2
    A fixed menu. Only sizes from the scale.
  3. 3
    Clear steps. Each size looks plainly different.

Learn it properly