Shape & depth

Corners, spacing, glass and shadow, each on a short scale. Round is one token; a corner is never a number someone made up.

Radius

Eleven steps. --mf-radius-full is the only way to write round.

xs
4px
sm
6px
md
8px
lg
10px
xl
12px
2xl
14px
3xl
16px
4xl
20px
5xl
24px
6xl
28px
full
round

Spacing

A 4px grid with the same names as Tailwind, so p-4 and --mf-space-4 are both 16px.

--mf-space-1
4px
--mf-space-2
8px
--mf-space-3
12px
--mf-space-4
16px
--mf-space-5
20px
--mf-space-6
24px
--mf-space-7
28px
--mf-space-8
32px
--mf-space-10
40px
--mf-space-12
48px
--mf-space-16
64px
--mf-space-0_5
2px
--mf-space-1_5
6px
--mf-space-2_5
10px
--mf-space-3_5
14px

Glass

Floating chrome is frosted: the float surface at 62% (light) or 70% (dark), a 9px blur for a one-line pill and 18px for a panel that covers half the screen. A bright top edge gives it thickness.

Pill · 9px
Panel · 18px

Shadow

--mf-shadow-pill
--mf-shadow-card
--mf-shadow-card-hover
--mf-shadow-knob

Shared measures

Sizes more than one surface must agree on, so the top bars line up and a field is the same height everywhere.

TokenValue
--mf-pill-top-h44px
--mf-pill-bottom-h54px
--mf-field-h48px
--mf-field-h-compact40px
--mf-bubble-radius18px
--mf-bubble-tail4px