liveBook · Manning

Padding

As explained in Design for Developers

Padding is the internal space between an element's content and its border or edge.

Padding creates internal space between content and an element’s edge. Use it as part of a consistent vertical rhythm so text and interface components feel orderly rather than arbitrarily spaced. section 10.5

Build padding decisions around a repeatable spacing system:

  • Choose a baseline, such as 12px, and use compatible multiples for padding, margins, and line-height adjustments. section 10.5
  • Check padding alongside font size and line height so surrounding text aligns with the baseline grid. section 10.5
  • Adjust spacing by eye when readability or hierarchy requires it; there is no universal perfect value. section 10.5

Aligning body copy

With 16px body text and a 1.25 line-height, the line height is 20px. Adding 16px of top spacing produces 36px, a multiple of the 12px baseline, helping the paragraph fit the vertical rhythm. section 10.5

How Design for Developers covers it

How deep it goes
Explains padding through baseline multiples and a body-copy calculation, but stops short of component-specific implementation.
Examples
Demonstrates 16px top spacing with 20px line height to reach a 36px baseline-compatible total.
What it assumes
Assumes basic typography concepts while establishing the baseline, line height, and spacing relationships needed to use padding.
What you can do after
Apply padding using baseline multiples and check its effect on typographic alignment and readability.
How it connects
Connects padding with vertical rhythm, typography, line height, margin, and baseline grids.

Also explained in

Compare how 19 books explain padding →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Design for Developers. The section links point to the parts of the book it draws on.