Skip to content

Spacing scale

A spacing scale is the fixed set of distances every padding and gap in an interface is taken from, usually multiples of 4 or 8. Picking from a scale instead of typing numbers keeps a whole app on one rhythm.

On this page
  1. At a glance
  2. In the kit
  3. In practice
  4. Questions
  5. Sources
  6. Related

Spacing scale on iOS and Android

Also called 4pt grid, 8pt grid. The same idea in each system, with the values Appetite UI gives it.

Spacing scale at a glance, iOS, Android, Appetite UI
iOSAndroid (Material 3)Appetite UI
NameNo named scale; layout margins and spacing are set per componentAn 8 dp grid for layout and a 4 dp grid for small elementsdimensions/spacing/*, a 4 pt scale
Screen side padding16 pt16 dpplatform/screen-padding

In the kit

The components, drawn live from the kit’s tokens. Tap them: they behave as the Figma prototype does.

Spacing, live componentsKit geometry, light and dark
The spacing scale, token name, value and a bar drawn at that width
TokenValueDrawn at size
spacing/00
spacing/px1
spacing/0-52
spacing/14
spacing/1-56
spacing/28
spacing/2-510
spacing/312
spacing/416
spacing/520
spacing/624
spacing/728
spacing/832
spacing/936
spacing/1040
spacing/1144
spacing/1248
spacing/1456
spacing/1664
spacing/2080
spacing/2496
spacing/30120
spacing/32128
spacing/40160

In practice

An 8 point grid and a 4 point grid are the same idea at two resolutions: the 8 point steps carry layout, the 4 point steps the inside of small components. Android’s guidance says the same, an 8 dp grid for layout and a 4 dp grid for icons and type.

Appetite UI uses a 4 point scale named by multiples, dimensions/spacing/4 is 16, with half steps of 2, 6 and 10 for tight spots. The same tokens set spacing on iOS and Android, and a screen’s side padding is one Platform variable, 16 on both.

Tokens, token, value, used by
TokenValueUsed by
dimensions/spacing/00No gap
dimensions/spacing/px1Hairline
dimensions/spacing/0-52Icon to label
dimensions/spacing/14Tight gap
dimensions/spacing/1-56Chip padding
dimensions/spacing/28Label to control
dimensions/spacing/2-510Compact row
dimensions/spacing/312Field padding
dimensions/spacing/416Card padding
dimensions/spacing/520Row gap
dimensions/spacing/624Card to card
dimensions/spacing/728Header padding
dimensions/spacing/832Block gap
dimensions/spacing/936Wide block gap
dimensions/spacing/1040Section padding
dimensions/spacing/1144Tap target
dimensions/spacing/1248Section gap
dimensions/spacing/1456Wide section gap
dimensions/spacing/1664Screen block gap
dimensions/spacing/2080Screen padding, table action column
dimensions/spacing/2496Empty state
dimensions/spacing/30120Scroll clearance under a floating bar, default table column
dimensions/spacing/32128Hero spacing
dimensions/spacing/40160Full bleed, table lead column

Questions

Should I use a 4 point or an 8 point grid?

Both: lay out screens on 8 point steps and use the 4 point steps inside small components. Appetite UI’s scale is 4 point, so every 8 point step is in it, and the half steps of 2, 6 and 10 cover icon to label gaps and chip padding.

How much padding should a mobile screen have at its edges?

Appetite UI gives every screen 16 points of side padding on iOS and 16 dp on Android, one Platform variable, so content lines up with the bars above and below it.

Sources

The pages the facts above rest on.

  1. Android Developers: Grids and units, read October 13, 2026
  2. Apple Human Interface Guidelines: Layout, read October 13, 2026