Foundations

Spacing and grid

A 4 px rhythm and a 12, 6 and 4 column grid that holds from desktop to phone.

View as Markdown

Spacing scale

Everything sits on a 4 px rhythm. Small steps space parts of one control; large steps separate sections. In Tailwind each unit is 4 px, so p-4 is 16 px.

  • 4px
  • 8px
  • 12px
  • 16px
  • 20px
  • 24px
  • 32px
  • 40px
  • 48px
  • 64px
  • 80px
  • 96px

Grid

12 columns with 24 px gutters from 1024px, 6 columns on tablets, 4 on phones with a 16 px side margin. Widgets span whole columns, so a dashboard reflows without new layouts.