Design system

Shape and space

Corner radii, the spacing scale, control heights and layout widths. Switch the header to App to see the product values.

Radius

Radius grows with the size of the thing: md for tooltips and notes, lg for inputs, xl for cards, dialogs and menus, 3xl for the hero. Marketing buttons and chips are pills.

Why

The ramp is scaled by --radius-scale, which each density re-declares: 1.4 for marketing, 1.25 for the app.

xs 
sm 
md 
lg 
xl 
2xl 
3xl 
full 

Spacing

Components space themselves with these steps only. Marketing runs on a 4px grid, the app on 2px.

Why

The names stay the same across densities; only the step changes, so a component keeps its proportions when the whole surface densifies.

--space-1 
--space-2 
--space-3 
--space-4 
--space-5 
--space-6 
--space-8 
--space-10 
--space-12 
--space-16 
--space-20 
--space-24 
--space-32 
--space-36 

Control heights

Three heights for every button, input and select. On a touch screen, app controls rise back to 44px.

--control-h-sm 
--control-h 
--control-h-lg 

Layout

Widths and rhythm for pages, sidebars and rows.

TokenUsed forHere
--containerThe widest content column. 
--container-railsThe railed marketing column. 
--container-proseLong-form reading measure. 
--container-narrowForms, sign-in and empty states. 
--sidebar-wSidebars, in the app and here. 
--nav-hThe site nav. 
--gutterPage side margin on small screens. 
--gutter-lgPage side margin on large screens. 
--section-ySpace above and below a section. 
--section-y-majorSpace around a major section. 
--row-hA table or list row. 
--icon-boxThe box an icon sits in. 
--icon-glyphA glyph drawn smaller than its box. 
--status-dotA status dot.