Spacing System Guide
Build a consistent spacing system that creates visual rhythm throughout your product.
Usage
Provide your base unit to get a complete spacing system.
Examples
- "Create a 4px-based spacing system with named tokens"
- "Define component-level and layout-level spacing rules"
- "Audit our spacing for consistency issues"
Guidelines
- Use a 4px or 8px base unit for the spacing scale
- Define named spacing tokens (xs, sm, md, lg, xl)
- Apply consistent spacing between related and unrelated elements
- Use tighter spacing within components, looser between them
- Document spacing rules with visual examples