Meridianby Commenda
Foundations

Spacing, sizing, elevation

Spacing, radius, size, shadow and border scales, shared with Pathfinder.

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

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

--pf-spacing-none
--pf-spacing-xxs
--pf-spacing-xs
--pf-spacing-sm
--pf-spacing-md
--pf-spacing-lg
--pf-spacing-xl
--pf-spacing-2xl
--pf-spacing-3xl
--pf-spacing-4xl
--pf-spacing-5xl
--pf-spacing-6xl
--pf-spacing-7xl
--pf-spacing-8xl
--pf-spacing-9xl
--pf-spacing-10xl
--pf-spacing-11xl

Radius

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

--pf-radius-none

Edges that meet

--pf-radius-xs

Tags, badges

--pf-radius-sm

Pathfinder parts only

--pf-radius-md

Buttons, inputs, icon buttons

--pf-radius-lg

Pathfinder parts only

--pf-radius-xl

Cards, images, tables, menus, modals

--pf-radius-2xl

Coloured stages, sheets

--pf-radius-full

Status pills, avatars

Size

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

control/xs
control/sm
control/md
control/lg
control/xl
icon/xs
icon/sm
icon/md
icon/lg

Elevation

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

shot · Meridian

--shadow-shot

Hero product windows: the navy lift under a product shot.

lift · Meridian

--shadow-lift

Photos and video on cream, card hover.

ring · Meridian

--shadow-ring

1px inset edge on images, logos and flags.

control · Pathfinder

--pf-shadow-control

Buttons, segmented thumbs, avatars on a surface.

raised · Pathfinder

--pf-shadow-raised

Cards that lift on hover; dragged rows. Pair with a hairline.

soft · Pathfinder

--pf-shadow-soft

The Composer and anything resting on the page that you type into.

menu · Pathfinder

--pf-shadow-menu

Dropdowns, popovers, tooltips. Pair with a hairline.

panel · Pathfinder

--pf-shadow-panel

Side sheets and floating panes (the docked Artifact panel stays flat).

modal · Pathfinder

--pf-shadow-modal

Dialogs. Pair with a hairline.

Borders

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

0.5px · border/subtle · Card edges, frames, hairlines

1px · border/default · Inputs, secondary buttons, dividers, tables

2px · border/focus · Focus ring, 2px from the element

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.

On this page