Space
Spacing defines to the intentional and consistent use of space between elements such as UI components to establish a hierarchy, improve readability, and enhance the overall user experience.
Spacing scale
All spacing should use a space token.| Token | Name | Value | Preview |
|---|---|---|---|
| t.core.space.10xl | 10xl | 96px | |
| t.core.space.11xl | 11xl | 128px | |
| t.core.space.12xl | 12xl | 166px | |
| t.core.space.13xl | 13xl | 214px | |
| t.core.space.14xl | 14xl | 278px | |
| t.core.space.2xl | 2xl | 20px | |
| t.core.space.2xs | 2xs | 8px | |
| t.core.space.3xl | 3xl | 24px | |
| t.core.space.3xs | 3xs | 6px | |
| t.core.space.4xl | 4xl | 32px | |
| t.core.space.4xs | 4xs | 4px | |
| t.core.space.5xl | 5xl | 40px | |
| t.core.space.5xs | 5xs | 3px | |
| t.core.space.6xl | 6xl | 48px | |
| t.core.space.6xs | 6xs | 2px | |
| t.core.space.7xl | 7xl | 56px | |
| t.core.space.7xs | 7xs | 1px | |
| t.core.space.8xl | 8xl | 64px | |
| t.core.space.9xl | 9xl | 80px | |
| t.core.space.lg | lg | 16px | |
| t.core.space.md | md | 14px | |
| t.core.space.sm | sm | 12px | |
| t.core.space.xl | xl | 18px | |
| t.core.space.xs | xs | 10px |
Hierarchy
Use white space to establish hierarchy on a page. This helps to draw focus, guide people and show what's of higher or lesser importance. Use lager spacing to create a visual rhythm through a use experience. Use smaller spacing for small specialised tasks, such as tags when a user filters.Proximity
Considering proximity in design is essential for creating visual order and establishing relationships between elements. Placing related items close to each other enhances user comprehension and makes information more easily digestible. By strategically applying the Gestalt principle of proximity, designers can guide users through content and foster a cohesive and intuitive user experience.Heading
DoApply consistent spacing between components
Heading
Don'tApply inconsistent spacing between components without breathing room