Tokens
One JSON file, tokens.json, is the source. A script writes the CSS variables; the same file can feed other platforms. Colour roles are listed on Palettes.
Radius
| Variable | Value | Note |
|---|
--cz-radius-sm | 8px | |
--cz-radius-md | 12px | buttons, inputs |
--cz-radius-lg | 16px | cards, toasts |
--cz-radius-xl | 22px | dialogs |
--cz-radius-full | 999px | switches, avatars, progress |
Border
| Variable | Value | Note |
|---|
--cz-border-thin | 2px | badges, small chips, in-game HUD |
--cz-border-thick | 3px | buttons, inputs, cards |
--cz-border-frame | 5px | dialog frame |
Depth
| Variable | Value | Note |
|---|
--cz-depth-lift | 7px | height of a raised block: its solid side wall |
--cz-depth-lift-hover | 9px | |
--cz-depth-lift-sm | 5px | |
--cz-depth-press | 1px | what is left of the wall while pressed |
Shadow
| Variable | Value | Note |
|---|
--cz-shadow-rim | inset 0 3px 0 rgb(255 255 255 / 0.55) | rim light on the top edge |
--cz-shadow-bevel | inset 0 -5px 0 rgb(0 0 0 / 0.16) | darker lower lip |
--cz-shadow-well | inset 0 4px 0 rgb(0 0 0 / 0.14), inset 0 8px 10px -4px rgb(0 0 0 / 0.12) | sunken wells: inputs, tracks |
--cz-shadow-plastic | linear-gradient(180deg, rgb(255 255 255 / 0.32) 0%, rgb(255 255 255 / 0.06) 48%, rgb(0 0 0 / 0.08) 100%) | soft plastic face overlay, layered over the face colour |
--cz-shadow-specular | rgb(255 255 255 / 0.55) | small glint, top left |
Space
| Variable | Value | Note |
|---|
--cz-space-1 | 4px | |
--cz-space-2 | 8px | |
--cz-space-3 | 12px | |
--cz-space-4 | 16px | |
--cz-space-5 | 20px | |
--cz-space-6 | 24px | |
--cz-space-8 | 32px | |
--cz-space-10 | 40px | |
--cz-space-12 | 48px | |
Size
| Variable | Value | Note |
|---|
--cz-size-touch | 44px | minimum touch target |
--cz-size-control-sm | 36px | |
--cz-size-control-md | 48px | |
--cz-size-control-lg | 56px | |
Font
| Variable | Value | Note |
|---|
--cz-font-family | "Nunito", ui-rounded, system-ui, sans-serif | Nunito (SIL OFL 1.1): rounded, full Vietnamese and Latin coverage |
--cz-font-weight-regular | 400 | |
--cz-font-weight-thin | 200 | display only, 24px and up |
--cz-font-size-xs | 12px | absolute minimum |
--cz-font-size-sm | 14px | minimum for body copy |
--cz-font-size-md | 16px | |
--cz-font-size-lg | 20px | |
--cz-font-size-xl | 24px | |
--cz-font-size-2xl | 32px | |
--cz-font-size-3xl | 44px | |
--cz-font-line-height | 1.45 | roomy: Vietnamese stacks two diacritics (Ổ, Ấ) |
Motion
| Variable | Value | Note |
|---|
--cz-motion-instant | 80ms | |
--cz-motion-fast | 140ms | hover, press |
--cz-motion-base | 220ms | toggles, tabs, tooltips |
--cz-motion-slow | 360ms | dialogs, toasts, progress |
--cz-motion-ease-out | cubic-bezier(0.2, 0.8, 0.2, 1) | |
--cz-motion-ease-bounce | cubic-bezier(0.34, 1.56, 0.64, 1) | toy-like overshoot; USS: ease-out-back |
--cz-motion-ease-spring | cubic-bezier(0.5, 1.8, 0.4, 0.8) | stronger overshoot for pops |