Design system

Spacing

The rhythm of the page: margins, widths and gaps.

Live preview

Section64px
Page top96px
Footer160px
Grid row64px
Grid column34px

Bars show the real size each value produces.

How these connect

  • Page side margin and Max content width define the frame every section, the top bar and the footer sit in. The margin is a maximum; it shrinks on narrow screens.
  • Space above page titles and Section spacing wrap every Page header and Section intro, so all pages open with the same rhythm. On phones both drop to 60%.
  • Top bar height also sets where the menu opens on phones and where the KoreanFirst controls stick, so they never overlap the bar.
  • Card grid gaps only affect the project grid; Space above footer ends every page.

Tokens

--gutter-max
px

Space between content and the screen edge (shrinks on phones).

Affects Top bar, Footer, Project window, Case study layout

--wrap
px

How wide content can grow on large screens.

Affects Top bar, Footer

--nav-height
px

Height of the navigation bar.

Affects Top bar, Type tester, Case study layout

--space-page-top
px

Gap between the top bar and each page's title.

Affects Section intro, Page header

--space-section
px

Space under page intros and between About sections.

Affects Section intro, Page header

--space-footer
px

Gap between page content and the footer.

Affects Footer

--grid-gap-x
px

Horizontal space between project cards.

Affects Project grid, Playground row

--grid-gap-y
px

Vertical space between rows of project cards.

Affects Project grid, Playground row