Structure creates clarity.
A flexible grid with a 4px spacing foundation and purposeful whitespace.
The spacing scale
4px8px12px16px24px32px48px64pxUse 8px and 16px for related controls, 24px and 32px within sections, and 48px or 64px between major ideas. Token names represent multiples of 4px.
Responsive composition
123456789101112
Use up to 12 flexible columns for wide canvases, four on small screens, and content-driven breakpoints. The documentation shell uses a 264px rail on desktop and a modal navigation drawer below 1000px.
Layout rules
- Keep reading content to a comfortable measure; let examples and tables use the wider canvas.
- At 320px, preserve reading order and avoid page-wide horizontal scrolling. Tables and code may scroll inside labelled containers.
- Use CSS grid and flexbox with minmax(0,1fr) and min-width:0 to prevent content overflow.
- Allow zoom and content expansion. Do not lock the page to a viewport height.

