Guidelines

Layout

Every page sits on one grid: 4 columns on a phone, 12 from lg up. Space between things comes from a few named groups, so the rhythm is the same on every page.

The grid

grid-layout lays a block on the columns, with the inner gutter between them; container keeps the outer gutter at the edges. The row below is a grid-layout too, so it shows as many columns as the page has at this width.

Read from apps/web/frontend.config.json

BreakpointFromColumnsInner gutterOuter gutterContainer
xs0416px20pxauto
sm640px818px30pxauto
md768px820px40pxauto
lg1024px1224px40pxauto
xl1280px1232px80pxauto
xxl1920px1244px80pxauto

Spacing groups

Each group is a CSS variable that changes with the breakpoint, and a utility for every spacing property: pt-section, gap-y-stack, gap-y-stack-tight. Stack siblings with gap, never with a margin on each child. The bars are each group's height at this width.

Read from apps/web/frontend.config.json

  • section

    Between the blocks of a page: pt-section.

    xs
    3rem
    sm
    4rem
    md
    5rem
    lg
    8rem
    xl
    8rem
  • stack

    Between a header and what it heads: gap-y-stack.

    xs
    2rem
    md
    2.5rem
    lg
    3rem
  • stack-tight

    Between a title and its text: gap-y-stack-tight.

    xs
    1rem
    md
    1.25rem
    lg
    1.5rem
  • stack-loose

    Between items in a grid of work: gap-y-stack-loose.

    xs
    3rem
    md
    4rem
    lg
    5rem
  • eyebrow

    Between an eyebrow and the title under it.

    xs
    1rem
  • wrapper-top

    Above the first block, clear of the fixed nav.

    xs
    2rem
    md
    11rem
    xl
    10rem
  • wrapper-bottom

    Under the last block, before the footer.

    xs
    6rem
    md
    8rem
Next: Imagery