Layout· 1 of 13

1 of 13

Use a shared spacing scale

Choose named spacing steps for repeated relationships. A 4px base is useful for padding and gaps. Hairlines, optical offsets, and content-driven dimensions can use other values.

Do
Don’t

Do4px, 8px, 16px, 24px, 32px, 48px

Don’t13px, 5px

Before you ship

  • Do comparable components use the same spacing step?
  • Does each larger gap represent a different relationship?
  • Would rounding this exception improve the result?

Next

Set a measure for long-form textLayout · 2 of 13J