Spacing tokens
Spacing tokens help position elements onscreen and in components.
Spacing tokens and accessibility
GC Design System components meet level AAA of the
Spacing establishes visual hierarchy for content and guides focus to certain elements. Information that's too densely packed is difficult to read and increases cognitive load.
Vertical rhythm and rem spacing sizes
GC Design System spacing is based on vertical rhythm and calculated with the help of a base size.
Vertical rhythm aligns text to evenly spaced horizontal lines in repeated patterns. Consistent vertical spacing helps make content easier to scan, read, and understand. Spacing sizes are configured with rem units. All spacing sizes are relative to a base size of 1.25rem (20px) and what we use to calculate all typography and spacing values.
Global spacing tokens
Alignment and spacing
- Use smaller spacing tokens to group related concepts together.
- Use larger spacing tokens to separate elements into logical groups.
- Whenever possible, line objects up both vertically and horizontally.
Preview | Token name | Pixel | Rem |
---|---|---|---|
--gcds-spacing-0 | 0px | 0rem | |
--gcds-spacing-25 | 2px | 0.125rem | |
--gcds-spacing-50 | 4px | 0.25rem | |
--gcds-spacing-75 | 6px | 0.375rem | |
--gcds-spacing-100 | 8px | 0.5rem | |
--gcds-spacing-125 | 10px | 0.625rem | |
--gcds-spacing-150 | 12px | 0.75rem | |
--gcds-spacing-175 | 14px | 0.875rem | |
--gcds-spacing-200 | 16px | 1rem | |
--gcds-spacing-225 | 18px | 1.125rem | |
--gcds-spacing-250 | 20px | 1.25rem | |
--gcds-spacing-300 | 24px | 1.5rem | |
--gcds-spacing-350 | 28px | 1.75rem | |
--gcds-spacing-400 | 32px | 2rem | |
--gcds-spacing-450 | 36px | 2.25rem | |
--gcds-spacing-500 | 40px | 2.5rem | |
--gcds-spacing-550 | 44px | 2.75rem | |
--gcds-spacing-600 | 48px | 3rem | |
--gcds-spacing-650 | 52px | 3.25rem | |
--gcds-spacing-700 | 56px | 3.5rem | |
--gcds-spacing-750 | 60px | 3.75rem | |
--gcds-spacing-800 | 64px | 4rem | |
--gcds-spacing-850 | 68px | 4.25rem | |
--gcds-spacing-900 | 72px | 4.5rem | |
--gcds-spacing-950 | 76px | 4.75rem | |
--gcds-spacing-1000 | 80px | 5rem | |
--gcds-spacing-1050 | 84px | 5.25rem | |
--gcds-spacing-1100 | 88px | 5.5rem | |
--gcds-spacing-1150 | 92px | 5.75rem | |
--gcds-spacing-1200 | 96px | 6rem | |
--gcds-spacing-1250 | 100px | 6.25rem |
Help us improve
Have questions or a request? Give feedback on our contact form.
Something's wrong? Raise it through GitHub with an