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-11xlRadius
Meridian uses xs 4, md 8, xl 12, 2xl 16 and full. sm 6 and lg 10 stay for Pathfinder parts only.
--pf-radius-noneEdges that meet
--pf-radius-xsTags, badges
--pf-radius-smPathfinder parts only
--pf-radius-mdButtons, inputs, icon buttons
--pf-radius-lgPathfinder parts only
--pf-radius-xlCards, images, tables, menus, modals
--pf-radius-2xlColoured stages, sheets
--pf-radius-fullStatus pills, avatars
Size
Control heights, icon sizes and strokes. control/xl (40) is Meridian’s height for buttons and fields.
control/xscontrol/smcontrol/mdcontrol/lgcontrol/xlicon/xsicon/smicon/mdicon/lgElevation
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-shotHero product windows: the navy lift under a product shot.
lift · Meridian
--shadow-liftPhotos and video on cream, card hover.
ring · Meridian
--shadow-ring1px inset edge on images, logos and flags.
control · Pathfinder
--pf-shadow-controlButtons, segmented thumbs, avatars on a surface.
raised · Pathfinder
--pf-shadow-raisedCards that lift on hover; dragged rows. Pair with a hairline.
soft · Pathfinder
--pf-shadow-softThe Composer and anything resting on the page that you type into.
menu · Pathfinder
--pf-shadow-menuDropdowns, popovers, tooltips. Pair with a hairline.
panel · Pathfinder
--pf-shadow-panelSide sheets and floating panes (the docked Artifact panel stays flat).
modal · Pathfinder
--pf-shadow-modalDialogs. 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.