when to use fixed sizes

USE FIXED SIZES

  • ·Interactive elements like buttons, inputs, and controls
  • ·Icons that need to align with text or other elements
  • ·Avatars and profile images
  • ·Components that appear repeatedly and must be consistent

DON'T USE FIXED SIZES

  • ·Content containers that need to flex with their content
  • ·Layout sections, page columns, or grid areas
  • ·Text blocks, headings, or descriptive copy
  • ·Anything that needs to reflow or adapt to screen width

scale

--size-0
0px
--size-2
2px
--size-4
4px
--size-6
6px
--size-8
8px
--size-10
10px
--size-12
12px
--size-14
14px
--size-16
16px
--size-18
18px
--size-20
20px
--size-24
24px
--size-28
28px
--size-32
32px
--size-36
36px
--size-40
40px
--size-44
44px
--size-48
48px
--size-56
56px
--size-64
64px
--size-72
72px
--size-80
80px
--size-96
96px
--size-112
112px
--size-128
128px
--size-144
144px
--size-160
160px
--size-176
176px
--size-192
192px
--size-208
208px
--size-224
224px
--size-240
240px
--size-256
256px
--size-288
288px
--size-320
320px
--size-384
384px+

icon sizes

Icons come in two sizes. Use the base size by default. Use small only when space is very limited, such as within dense UI or inline with small body text.

--icon-size-base

24px

Base — default icon size

--icon-size-sm

16px

Small — use only in tight spaces

avatar sizes

Avatar sizes are fixed to ensure consistent presentation of profile images and placeholders across the product.

--avatar-size-xs

24px

--avatar-size-sm

32px

--avatar-size-lg

48px

--avatar-size-xl

56px

--avatar-size-2xl

72px

interactive elements

These tokens define the fixed height of interactive elements like buttons and inputs. Width is always flexible. Use these to ensure touch targets and visual weight are consistent across the product.

Extra Small
--component-size-xs · 24px
Small
--component-size-sm · 32px
Medium
--component-size-md · 40px
Large
--component-size-lg · 48px
Extra Large
--component-size-xl · 56px
2X Large
--component-size-2xl · 72px