Standardised spacing and layout aids usability by creating a visual rhythm and hierarchy, guaranteeing a consistent and predictable app experience.
Setting the rhythm
We know that spacing and layout are not just aesthetic choices – they are the most critical components for usability, legibility, and visual consistency within our design system.
They establish the grid, rhythm, and hierarchy that guide the user's eye and ensure a predictable, harmonious experience across all screens and components.
Spacing
Standardised spacing removes guesswork and reduces cognitive load for users and developers alike. It helps to create a visual rhythm across the pages and app – the consistent cadence that makes the interface feel both structured and reliable.
General rules by breakpoint:
XS <359px
Vertical padding (main sections): 24px
Vertical padding (sub-sections): 16px
Gutters: 16px
From header to page content: 24px
Max content width: 420px
Small 360-576px
Vertical padding (main sections): 24px
Vertical padding (sub-sections): 16px
Gutters: 16px
From header to page content: 24px
Max content width: 420px
Medium 577-960px
Vertical padding (main sections): 32px
Vertical padding (sub-sections): 24px
Gutters: 32px
From header to page content: 32px
Max content width: 420px
Large 961-1200px
Vertical padding (main sections): 32px
Vertical padding (sub-sections): 24px
Gutters: 80px
From header to page content: 32px
Max content width: 864px
Example page spacing
Based on designing for 360-576px (small) screens:
Home
The spacing system defines the specific, predetermined values used for margins, padding and the gaps between elements.
The 8-point grid: We will primarily utilise an 8-point grid, meaning all spacing values (like 8, 16, 24, 32 points, etc) must be a multiple of 8.
In the instance of intricate detail, 4px spacing can be used.
- From base of balance card to top of quick actions
- From base of quick actions to top of first row of cards
- Between rows of cards
- Between sections
- From base of section header to top of cards in section
- Between cards within sub-sections
- Between main sections
- Between main sections
- Between main sections
- From base of hero card to top of quick actions
- From base of quick actions to top of first card
- Between main sections
- From base of tabs to top of hero card
- Between main sections
- Spacing within sub-sections
- Between main sections
- Spacing within sub-sections
- 0px – tabs sit below header
- From base of tabs to top of hero card
- From base of hero card to top of filters
- From base of filters to start of next section
Layout principles
The layout system dictates how major blocks of content are arranged, positioned, and adapted across different devices. These spacing and layout rules empower you to build high-quality, consistent, and user-friendly products efficiently.
Hierarchy
Layouts must clearly communicate the importance of information, often by placing primary content in dominant, central areas and using size and proximity to group related items.