Colour theme

Grids

  • Foundations

The columns every page is laid out on. Three grids cover it: the container centres the content between two gutters, the layout divides it into equal columns, and breakout joins the two, so a child can run from the screen’s edge into the columns.

Three recipes on one table of tokens. Each figure below is the real class on the real tokens, one cell per track, at the page’s full width; the numbers are measured live, so resize the window and watch the tracks step. The LAB button bottom right lays the same grid over any page, and the grid lab shows the three recipes in use: eleven page layouts placed on them, copy and pictures as sketch strokes.

Container

A centered column between two fluid gutters. Three tracks, four named lines:full-start, main-start, main-end, full-end. The gutters never go below the offset; the column never grows past the max width.

  • --grid-container-offset

  • --grid-container-maxWidth

Layout

Equal columns with a gap, centered in a container; the count steps with the grid's own ladder. As many cells as the widest step has columns are placed, and the ones beyond the current step's count fall into a row of no height, so what you see is one cell per column, whatever the step.

  • --grid-layout-gap

  • --grid-layout-columns

Breakout

The layout's columns inside the container's gutters, as one grid: the columns named main between a fluid first and last track. Every track is placeable, the outer two included; that is the point of breakout, a child can run from the screen's edge into the centred columns. One cell per track; the outer two are pinned to the first and last track.

  • --grid-breakout-gap

  • --grid-breakout-columns