# Spacing, sizing, elevation

Page: /docs/foundations/spacing

{/* Figma: Meridian → Spacing, radius and size (page 7:93) and Elevation and borders (page 7:95), one page here as on Pathfinder's docs. Previews render from Pathfinder's CSS variables. */}

Pathfinder’s spacing, radius, size, shadow and border scales, in one place as on Pathfinder. Meridian uses five of the radii, control/xl (40) for its buttons and fields, and adds three shadows for marketing pages.

## Spacing [#spacing]

17 steps. 8xl and above are for page layout only.

<SpacingScale />

## Radius [#radius]

Meridian uses xs 4, md 8, xl 12, 2xl 16 and full. sm 6 and lg 10 stay for Pathfinder parts only.

<RadiusScale />

## Size [#size]

Control heights, icon sizes and strokes. control/xl (40) is Meridian’s height for buttons and fields.

<SizeScale />

## Elevation [#elevation]

Six Pathfinder shadows named by job and three Meridian shadows for marketing pages. Flat is the default and is not a style.

<Shadows />

## Borders [#borders]

A border is a soft-pearl step plus a width.

<Borders />

## Best practices [#best-practices]

- Bind every padding, gap, radius, height and shadow to a token. No hand-typed numbers.
- Section padding 96 desktop, 48 phone. Card padding 24. Gap between cards is the grid gutter.
- 12 between buttons, and between an input and its button.
- Fields and the buttons beside them are control/xl, 40.
- Use a shadow by its job: control, raised, soft, menu, panel, modal.
- shot is only for hero product windows. lift for photos and video on cream. ring for image, logo and flag edges.
- Source: Pathfinder Spacing, Radius and Size (unchanged), and Pathfinder Elevation and borders. Meridian adds shot, lift and ring.
