Design system
Spacing
The rhythm of the page: margins, widths and gaps.
Live preview
Section
64pxPage top
96pxFooter
160pxGrid row
64pxGrid column
34pxBars 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-maxpx
Space between content and the screen edge (shrinks on phones).
Affects Top bar, Footer, Project window, Case study layout
--nav-heightpx
Height of the navigation bar.
Affects Top bar, Type tester, Case study layout
--space-page-toppx
Gap between the top bar and each page's title.
Affects Section intro, Page header
--space-sectionpx
Space under page intros and between About sections.
Affects Section intro, Page header
--space-footerpx
Gap between page content and the footer.
Affects Footer
--grid-gap-xpx
Horizontal space between project cards.
Affects Project grid, Playground row
--grid-gap-ypx
Vertical space between rows of project cards.
Affects Project grid, Playground row