Foundations

Layout and spacing

Page widths, the 4px spacing grid and how sections group.

Page widths

Every page sits in the header’s 1280px frame, left-aligned, so titles line up under the logo. Page width caps the content column; pages never set their own max-w-*.

WidthColumnUse it for
reading768pxText read top to bottom: Rules, Glossary
tool1024pxThings you use: Learn, Play, Strategy, Odds Lab, game pages
wide1280pxGrids of cards: Games, the home page, this design system

Spacing

Spacing follows a 4px grid through Tailwind’s scale. Space inside a group is smaller than space between groups.

space-14px: Icon to its label
space-28px: Items in a row of chips or buttons
space-312px: Cards in a grid; lines in a control group
space-416px: Inside a panel on phones; between related blocks
space-624px: Inside a panel on wider screens; between panels
space-832px: After the PageHeader
space-1248px: Between page sections; before NextStep

Breakpoints

FromNameWhat changes
0phoneOne column. Your seat comes right after the call in Play. 16px gutters.
640pxsmTwo-column grids; headings grow.
768pxmdThe header shows the full navigation.
1024pxlgSide panels (Play’s order of play, this sidebar).

Grouping

Do

  • Group a section in one Panel.
  • Inside a Panel, group with a heading, a divider, a Stat or a plain bordered box.
  • One tool panel per page: the thing you interact with.

Don’t

  • Nest a Panel inside a Panel.
  • Use ui/card (use Panel).
  • Center-align content inside left-aligned pages.