Spacing, Layout & Elevation
Spacing, shadows and corners are often decided one screen at a time, so a product ends up with values nobody chose on purpose. Imagine a bookings app where the slot list uses 14px padding, the booking form 16px and the admin panel 15px, with four different shadows between them.
Learn on the move: press play and turn your commute, walk or drive into time that grows your design career.

So the fix is a small set of scales that every component inherits. A system names each step once, and designers and engineers pick from that list instead of typing a number.
The Parts of a Layout Foundation
Most public systems split this foundation into the same few parts. IBM Carbon, Atlassian and the GOV.UK Design System each publish a spacing scale, and Material 3 and Atlassian publish elevation levels and a corner-radius scale beside it:
- Spacing scale: the named steps of space inside and between elements.
- Density: how tightly that space is set for a screen or a person.
- Layout primitives: the stacks, grids and containers that apply the spacing.
- Elevation: the levels a surface can sit at, each with its own surface and shadow.
- Corner radius: the named roundness for each kind of element.
That's why this foundation comes right after tokens, since each scale becomes a set of tokens. The page grid stays in Visual Craft's Grids module, and the look of a single shadow stays in Visual Craft's Shadows module.
Anatomy of a Spacing System
A spacing value typed by hand is a decision nobody can find again. Imagine a designer who sets 18px between two booking cards because it looked right, and an engineer who rounds it to 16px in code. Here is a gap typed by hand next to a gap picked from the scale:

So a spacing system replaces typed numbers with a short list of named steps. It has four parts: a base unit, the scale built on it, a name for each step and the job each step does.
The Base Unit
The base unit is the number every step of the scale is built from. Atlassian uses 8px and calls it space.100, so 16px is space.200 and 4px is space.050. The GOV.UK Design System uses 5px instead, and its static scale runs 5, 10, 15, 20, 25, 30, 40, 50 and 60px. Here are the Atlassian and GOV.UK scales side by side:

That's why the base matters more than any single step. Once it's fixed, every new value is a multiple of it, and an 18px gap has nowhere to come from. Why 8 suits screen sizes is covered in Visual Craft's Grids module.
The Scale
A scale is the full list of steps, and its gaps widen as the values grow. IBM Carbon's scale has 13 steps: 2, 4, 8, 12, 16, 24, 32, 40, 48, 64, 80, 96 and 160px. Its small steps sit 2 or 4px apart, while its largest jump is 64px.
That's because a 4px change is easy to see between 8 and 12px and hard to see between 96 and 100px. So the small end needs fine steps for icons and labels, and the large end needs only a few for page sections.
Still, the most common mistake is a scale that keeps every multiple of 4 up to 64px. Sixteen steps that close together turn each choice back into a guess between 20 and 24px. Here is a crowded scale next to IBM Carbon's:

Naming the Steps
Each step needs a name that designers and engineers say the same way. Public systems use three naming schemes:
- An index: Carbon counts up, so $spacing-05 is the fifth step, 16px.
- A multiplier: Atlassian names a step by its share of the base, so space.150 is 1.5 times 8px, or 12px.
- A size word: Shopify Polaris web components start at base and count outward, from small-500 to large-500.
That matters because systems add steps later. An index has no room between $spacing-05 and $spacing-06, while a multiplier fits space.250, 20px, between 16 and 24px. The wider rules for token names live in the Tokens & Variables module. Here is what happens when a 20px step joins each kind of name:

Inset, Stack and Inline
A step also needs a job, because the same 16px can mean padding or a gap. Nathan Curtis named these jobs in "Space in Design Systems" (EightShapes, 2016):
- Inset: the padding inside a container, such as a card.
- Squish: an inset with less space at the top and bottom, for buttons and pills.
- Stretch: an inset with more space at the top and bottom, for form fields.
- Stack: the vertical space between items in a column.
- Inline: the horizontal space between items in a row, such as an icon and its label.
In practice, a system ties each job to a range of the scale. Atlassian keeps 0 to 8px for badges and icon buttons, 12 to 24px for button padding and cards, and 32 to 80px for page layout. So a designer padding a card only looks at the middle of the scale. Here are those jobs marked on a booking card:

Pro tip: Store the steps as Figma number variables and scope them to Gap and Padding. The spacing steps then show up in auto layout fields and stay out of the corner-radius picker.


