Mathematically Derived Typography - klinke.studio

Mathematically Derived Typography

browse sections

Mathematically Derived Typography

for strict typographic systems tat follow coherent rules and hence appear visually balanced and coherent we can derive all all spacing from a few base variables, usually baseline font-size sbs_b and a multiple rr.

we then can define the line-height lbl_b such that

lb=sbrl_{b} = s_{b} \cdot r

and then the baseline grid bb as

b=lbb = l_b

this gives a good starting grid for body text. we then can derive headline sizes and spacing from these values. we scale text headline sizes as

sn=sbrns_n = s_{b} \cdot r^{n}

we then space paragraphs between each other according to

p=αbp = \alpha \cdot b

with α[0.5,1]\alpha \in [0.5, 1] - and maybe even with simply α=1r\alpha = \frac{1}{r}

we space headings from their body text such that they appear closer to the body they are attached to than the content above them to ensure belonging through proximity gestalt-principles. a common way of doing this would be to have twice the space above than below, such that for example

mb=λbmt=2λb\begin{align} m_{b} &= \lambda \cdot b \\ m_{t} &= 2 \lambda \cdot b \end{align}

where λ[0.5,1]\lambda \in [0.5, 1] as well with maybe also for simplicity λ=1r\lambda = \frac{1}{r}

all other spacing should then follow generally

d=nb,nZd = n \cdot b, \quad n \in \mathbb{Z}

1. Typical scalar values

rr is one of the key defining values of this typographic system as we try to derve as much from it as we can. it will set the visual density and cadence of the text, some typical values are:

  • 1.2 - dense UI typography
  • 1.25 - editorial/web
  • 1.33 - classic print hierarchy
  • 1.414 - 2\sqrt{ 2 }
  • 1.618 - golden ratio