Foundations / Spacing
Spacing.
0.25rem base. Tailwind's scale, with named tokens for the values that show up in the system. Always use gap-* between siblings — never margin.
Scale
The entire system uses these 10 values. If you're reaching for a different number, you're probably wrong.
Page padding
Mobile
24px
Tablet
32px
Desktop
48px
Layout rules
- Always use
gap-*between siblings — flex or grid. Nevermargin-bottomon a child to space the next sibling. Margins compound, gaps don't. - Section gap is 24px (
gap-6). Page padding is 24/32/48 for mobile/tablet/desktop. Maximum content width is 1800px. - Sidebar is 256px expanded, 56px collapsed. Always at left. The Dashbook portal itself uses the same 220px secondary sidebar pattern for sub-section navigation.
- Hairline borders live in spacing, not in margin. Use
border-top+padding-top: 1.5reminstead ofmargin-topto create separation.