line height
The vertical distance between lines of text, set in CSS with line-height.
In more detail
Body text reads best with a line height around 1.5 times the font size, while large headings need less, around 1.1 to 1.2. That is why line height should shrink as font size grows. An unexpected line-height change can clip text and is a typical visual regression.
Related terms
- typography — The choice and arrangement of fonts, sizes, weights and line spacing to make text readable and show hierarchy.
- modular scale — A set of font sizes made by repeatedly multiplying a base size by one ratio, such as 16px × 1.25 for each step up.
Taught in
- Typography & Spatial Grids: Modular Scales & Fluid Typography — Design Systems & Component Engineering
- Visual Regression Testing: Playwright & Snapshot Differencing — Design Systems & Component Engineering