Spacing

The unit, the gutters and the space and pad steps. The gutters and the steps change with the screen: the values here are this window's, and follow it as you resize. The Layout guideline has the grid at every breakpoint.

Unit and gutters

  • --spacing

    The unit: every p-*, m-* and gap-* step is a multiple

  • --outer-gutter

    The page's side margin at this width

  • --inner-gutter

    The gap between grid columns at this width

  • --grid-columns

    Columns in the grid at this width

Space and pad

From frontend.config.json, each stepping up at the breakpoints named. Write one and let it adapt: gap-space-1 lg:gap-space-2 skips past the curve.

  • --spacing-space-1

    16px, 20px from lg

  • --spacing-space-2

    22px, 24px from md, 28px from xl

  • --spacing-space-3

    32px, 40px from lg

  • --spacing-space-4

    48px, 64px from lg

  • --spacing-space-5

    96px, 144px from lg

  • --spacing-pad-1

    16px, 20px from lg

  • --spacing-pad-2

    20px, 24px from lg

  • --spacing-pad-3

    32px, 36px from lg

  • --spacing-page-top

    From the header to a page's first content: 8px, 40px from lg

  • --spacing-page-bottom

    Under a page's last content: 22px, 24px from md, 40px from lg