Skip to Content
Tokens

Sizes

Spacing, radii, controls, rows and the header.

Spacing

Spacing is the 4px grid.

TokenValue
--space-14px
--space-28px
--space-312px
--space-416px
--space-520px
--space-624px
--space-832px
--space-1040px

The library also uses three values on purpose.

ValueUse
6pxThe selection inset, the inner padding of a row, the gap in a MetaLine, the radius of controls
10pxThe gap between an icon and its label in navigation and menus
14pxThe larger widget and panel insets

Any other spacing is a mistake.

Radius

TokenValue
--radius-xs4px
--radius-sm6px
--radius-md8px
--radius-lg10px
--radius-xl14px
--radius-2xl20px
--radius-full999px
TokenUse
--radius-xskbd, inline code, marks
--radius-smButtons and fields at every size
--radius-mdCards, frames, code blocks
--radius-lgMenus, popovers and board lanes
--radius-xlThe composer
--radius-2xlWidgets and the cards on a WidgetGrid

Controls

TokenValue
--control-sm24px
--control-md28px
--control-lg32px

sm is for dense rows, list rows, table bars and toolbars. md is for forms, panels and dialogs. lg is for empty states. Fields are 30px, the height of a compact row.

Rows and headers

TokenValue
--row-compact30px
--row-default36px
--header38px

Lists and tables are compact by default, 30px, and comfortable at 36px. The header of a view or a panel is 38px. On a phone, rows are 44px and 58px, see Phones.

Controls and rows at their sizesButtons 24, 28 and 32; icon buttons 24 and 28; fields 30; rows 30 compact or 36 comfortable (the panel above switches the rows). Every size is a token: --control-*, --row-*, --header.
Open the example ↗
Edit on GitHub

Last updated on

On this page