Design Tokens
Every token in matix/ui — resolved live for the active theme. Switch the theme or appearance from the top bar to see values update.
Colors
Backgrounds, foregrounds, primary, semantic states, borders, and overlays.
Backgrounds
Surface colors for layering content.
Foregrounds
Text and icon colors with accessible contrast.
Primary
Primary interactive color for buttons, links, and focus rings.
Semantic
Communicates status — destructive, success, warning, info.
Destructive
Success
Warning
Info
Borders
Dividers, outlines, and focus indicators.
Overlays
Backdrop scrim used behind modals and drawers.
Layout
Spatial primitives — spacing scale and corner radii.
Spacing
Padding, gap, and margin scale used by every component.
Radii
Border-radius scale — sm/md for controls, lg+ for surfaces.
Typography
Type scale, weights, leading, tracking, and font stacks.
Font size
Type scale — base 14px (compact UI), grows to 36px display.
Font weight
Four-step weight scale — prefer weight over size for emphasis.
Line height
Leading scale — tight for headings, relaxed for long-form.
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
Letter spacing
Tracking — tighten large headings, loosen all-caps labels.
Font family
System UI stacks — zero font download, native OS feel.
Elevation
Visual depth — surfaces, shadows, and stacking order. Surface tokens drive elevated panels (Card, Dialog, Popover, Menu, Toast) and are the primary theming hook for Liquid Glass and Claymorphic looks.
Surface
Background, blur, border, and inner glow for elevated surface components.
Shadows
Elevation scale — xs for cards, xl for modals. Plus focus rings.
Z-index
Stacking layers — gap of 100 between each for safe customisation.
Animation
Motion timing — durations and easing curves.
Duration
Animation durations — exits faster than enters.
Easing
Timing functions — enter, exit, spring, iOS-style drawer.