Spacing and radii
Spacing
All spacing is a multiple of 4 px.
--ui-space-1 · 4px
--ui-space-2 · 8px
--ui-space-3 · 12px
--ui-space-4 · 16px
--ui-space-5 · 20px
--ui-space-6 · 24px
--ui-space-7 · 32px
--ui-space-8 · 40px
--ui-space-9 · 56px
- Between cards:
--ui-space-5(20 px), on phones--ui-space-4. - Inside cards:
--ui-space-6(24 px), on phones 20 px –Carddoes this itself. - Between a title and its content:
--ui-space-3to--ui-space-4.
Radii
xs · 8px
sm · 12px
md · 18px
lg · 24px
xl · 28px
pill · rund
| What | Radius |
|---|---|
| Large cards | xl 28 px |
| Small cards, empty areas | lg 24 px |
| Fields, notices | md 18 px |
| Tiles, rows on cards | 14–18 px |
| Buttons, tabs, chips, search | pill – fully round |
Heights
Buttons and fields are 44 px high (--ui-control-md) – the smallest height that can be hit safely with a finger. sm (36 px) only in dense toolbars on the desktop, lg (52 px) for the sign-in and main actions on phones.