Designed by mathematics

φ
1.6180339887…

Every spacing value and font size on this site is derived from the golden ratio. Not because we had to. Because a sock-themed terminal deserves irrational beauty.

What is the golden ratio?

The golden ratio (phi, φ) is an irrational number approximately equal to 1.618. Two quantities are in the golden ratio if their ratio is the same as the ratio of their sum to the larger of the two: a/b = (a+b)/a = φ. It appears in nature (sunflower spirals, nautilus shells, galaxy arms), classical architecture (the Parthenon), and Renaissance art (da Vinci's Vitruvian Man).

In design, φ creates proportions that feel balanced without being symmetrical. The human eye finds φ-derived relationships naturally pleasing, probably because we evolved surrounded by them.

How we use it

We built a complete design token system where every value is a power or root of φ. The base unit is 1rem. Multiply by φ to go up a step, divide by φ to go down. This gives us two scales: one for typography, one for spacing.

Type scale

Nine stops from 0.65rem to 4.236rem. Each step is related to its neighbors by φ or √φ, creating a smooth visual hierarchy.

2xs
xs
sm
base
md
lg
xl
2xl
3xl
TokenValueDerivation
--text-2xs0.65rem1 / φ² × √φ
--text-xs0.786rem1 / √φ²
--text-sm0.875rem≈ 1 / √φ
--text-base1rembase
--text-md1.272rem√φ
--text-lg1.618remφ
--text-xl2.058remφ × √φ
--text-2xl2.618remφ²
--text-3xl4.236remφ³

Spacing scale

Thirteen stops from 0.25rem to 6.854rem. The same φ-power logic governs padding, margins, and gaps across the entire site.

TokenValueDerivation
--space-3xs0.25rem1 / φ³
--space-2xs0.382rem1 / φ²
--space-xs0.5rem≈ 1 / (φ × √φ)
--space-sm0.618rem1 / φ
--space-md1rembase
--space-lg1.272rem√φ
--space-xl1.618remφ
--space-2xl2remφ × √φ
--space-3xl2.618remφ²
--space-4xl3.236remφ² × √φ
--space-5xl4.236remφ³
--space-6xl5.236remφ³ × √φ
--space-7xl6.854remφ&sup4;

Other φ-derived values

The body line-height is exactly φ (1.618). Our asymmetric two-column grids use a 1:φ ratio (1fr 1.618fr). Even the relationship between section padding and element spacing follows the golden proportion.

“The golden ratio is not magic. It is geometry that agrees with biology. Our eyes parse φ-derived layouts faster because the proportions match patterns we already know.”

Why bother?

Most sites pick sizes by feel. That works until a new section breaks the rhythm. A φ-based system is self-consistent: every value relates to every other by the same constant. Add a new element, snap it to the nearest φ stop, and it fits. No eyeballing required.

It also means we can tighten or loosen the entire site by shifting every token one step on the scale. The proportions stay golden. Only the density changes.

We did all of this for a terminal named after a sock. It’s fine. We’re fine. Mostly.