Tokens
Every token except colors, grouped by what it sets. Values follow the theme and accent settings at the top of the page. Colors have their own page, Colors; the state and material colors also show here next to their demos. A table shows dark and light only where they differ.
Spacing
The spacing scale is 2, 4, 8, 12, 16, 24, 32, 48, 64 and 96px. The endpoints are spacing-2xs and spacing-5xl. The four spacing-safe-* tokens are the safe area insets of the screen (env(safe-area-inset-*, 0px)), 0 except on devices with a notch or a home indicator when the page sets viewport-fit=cover. Add them to a component's own padding at the screen edge it touches, as Sheet and Toast do: pb-[calc(var(--spacing-xl)+var(--spacing-safe-bottom))]. They are web only.
p-2xs2pxp-xs4pxp-sm8pxp-md12pxp-lg16pxp-xl24pxp-2xl32pxp-3xl48pxp-4xl64pxp-5xl96pxp-safe-topenv(safe-area-inset-top, 0px)p-safe-rightenv(safe-area-inset-right, 0px)p-safe-bottomenv(safe-area-inset-bottom, 0px)p-safe-leftenv(safe-area-inset-left, 0px)Size
Control heights, one ladder of four steps, used as h-element-md, and the smallest hit area. md is the default control; for a dense region set size="sm" on its controls. On touch screens size-element-md grows to 36px, size-element-lg to 44px, size-element-xl to 48px and size-target-min to 44px, so the values below change on a touch screen. size-element-sm stays 28px.
Icon sizes: size-icon-sm 12px (Badge and Token icons), size-icon-md 16px (icons in sm, md and lg controls, inputs, selects and menus), size-icon-lg 20px (icons in xl controls). The same on touch: the icon does not grow, its hit area does. Use them as size-icon-md, h-icon-md or w-icon-md.
size-icon-sm12pxsize-icon-md16pxsize-icon-lg20pxPanel widths by role: size-panel-sidebar 256px (Sidebar), size-panel-popover 288px (Popover, mobile Sidebar), size-panel-sm 320px (Tooltip maximum, HoverCard, small Sheet), size-panel-md 384px (Toast), size-panel-lg 448px (medium Sheet). Use them as w-panel-sidebar, max-w-panel-sm or min-w-panel-md. Dialog keeps container widths (max-w-md).
w-panel-sidebar256pxw-panel-popover288pxw-panel-sm320pxw-panel-md384pxw-panel-lg448pxRadius
Set by seed.radius-base. Nest smaller inside larger: inner in element, element in container. Rows inside a padded menu use item, so their corners line up with the menu's. corner-smoothing is the curve of those corners: 0 is a circular arc, 0.6 is the iOS continuous corner.
rounded-none0pxrounded-inner6pxrounded-item11pxrounded-element12pxrounded-container16pxrounded-page20pxrounded-full9999pxBorder and focus ring
The 2px outline has a 2px gap in --ring-offset-color, which defaults to the page background. Raised surfaces set their own offset color; material uses its opaque fallback surface. The gap composes with elevation shadows. Forced colors keep only the outline. Ring contrast is at least 3:1 in both modes.
| token | dark | light |
|---|---|---|
| #f5f5f5 | #111111 | |
| 1px | 1px | |
| 2px | 2px | |
| 2px | 2px |
Typography
Geist for UI text, JetBrains Mono for code. Size/line-height: xs 12/16, sm 14/20, md 16/24, lg 18/28, xl 20/28px. Every text size includes its line-height token. Body stays 14/20px. Headings: h3 20/28, h2 24/32, h1 32/40px. Inputs stay 14px on mouse and 16px on touch.
text-heading-1Invite people to your workspacetext-heading-2Invite people to your workspacetext-heading-3Invite people to your workspacetext-bodyInvite people to your workspace| token | value |
|---|---|
| Geist, ui-sans-serif, system-ui, sans-serif | |
| 'JetBrains Mono', ui-monospace, monospace | |
| 12px | |
| 14px | |
| 16px | |
| 18px | |
| 20px | |
| 14px | |
| 400 | |
| 500 | |
| 600 | |
| 32px | |
| 500 | |
| 40px | |
| 24px | |
| 500 | |
| 32px | |
| 20px | |
| 500 | |
| 28px | |
| 14px | |
| 400 | |
| 20px | |
| 16px | |
| 20px | |
| 24px | |
| 28px | |
| 28px | |
| 20px |
Motion
duration-fast for state changes in place, duration-medium for menus and popovers, duration-slow for dialogs and sheets. ease-enter for things arriving, ease-exit for things leaving.
| token | value |
|---|---|
| 160ms | |
| 250ms | |
| 400ms | |
| 2000ms | |
| 650ms | |
| cubic-bezier(0.2, 0, 0, 1) | |
| cubic-bezier(0.05, 0.7, 0.1, 1) | |
| cubic-bezier(0.3, 0, 0.8, 0.15) | |
| linear(0, 0.001 0.5%, 0.005 1.3%, 0.018 2.5%, 0.03 3.3%, 0.043 4%, 0.058 4.8%, 0.081 5.8%, 0.119 7.2%, 0.161 8.8%, 0.361 15.5%, 0.453 18.8%, 0.499 20.5%, 0.542 22.3%, 0.583 24%, 0.621 25.8%, 0.657 27.5%, 0.689 29.3%, 0.719 31%, 0.747 32.8%, 0.772 34.5%, 0.798 36.5%, 0.819 38.3%, 0.84 40.3%, 0.861 42.5%, 0.88 44.8%, 0.898 47.3%, 0.913 49.8%, 0.927 52.5%, 0.94 55.3%, 0.951 58.3%, 0.96 61.5%, 0.975 68.3%, 0.985 76%, 0.993 86.3%, 0.997 99.8%, 1) | |
| 0.96 |
Shadow
Floating layers only. Light shadows pair a tight contact layer with a soft spread layer. Dark shadows keep their existing drop layer and inset top edge. Cards on the page use a border.
| token | dark | light |
|---|---|---|
| 0px 1px 3px 0px #00000066, inset 0px 1px 0px 0px #ffffff1a | 0px 1px 2px 0px #0000000f, 0px 1px 3px 0px #0000001a | |
| 0px 4px 16px 0px #00000080, inset 0px 1px 0px 0px #ffffff1a | 0px 2px 4px 0px #0000000f, 0px 8px 16px 0px #0000001a | |
| 0px 16px 40px 0px #00000099, inset 0px 1px 0px 0px #ffffff1a | 0px 4px 8px 0px #00000014, 0px 24px 48px 0px #00000029 | |
| inset 0px 1px 3px 0px #000000b3 | inset 0px 1px 2px 0px #00000033 |
Blur and material
Glass blur: thin 8px, thick 16px, refract 20px, clear 6px. Saturation: 1.6, 1.8, 2 and 2. Each material utility includes its fill, blur, a 1px border and solid fallbacks. Glass layers come in four levels, one class each: material-thin for bars, material-thick for sheets, popovers, dialogs and menus, material-refract for fixed-size elements only, material-clear for see-through showcase glass over Werewolf colors. The class draws the fill, the backdrop blur and saturation, a real 1px border lighter on top, and turns solid where backdrop blur is missing, under reduced transparency and in forced colors. Each fill is solved so primary and secondary text keep 4.5:1 over any backdrop, blur not counted, so it is less see-through than decorative glass. material-clear is solved over the page backgrounds and every hue instead, so it carries primary text only and never sits on photos. material-refract and material-clear bend the backdrop at their edge in Chromium-based browsers. At most two glass layers on a screen, never on list rows, cards or the page.
material-thin
Bar
backdrop-blur-smbackdrop-blur-mdbackdrop-blur-lgmaterial-thin
Bar
backdrop-blur-smbackdrop-blur-mdbackdrop-blur-lgmaterial-clear
See-through glass that bends the colors at its edge. Primary text only, over Werewolf colors.
material-clear
See-through glass that bends the colors at its edge. Primary text only, over Werewolf colors.
| token | dark | light |
|---|---|---|
| #111111d9 | #fafafae6 | |
| #181818e6 | #ffffffd9 | |
| #181818e6 | #ffffffd9 | |
| #18181880 | #ffffff33 | |
| #ffffff1f | #ffffff59 | |
| #ffffff29 | #ffffff80 | |
| 4px | 4px | |
| 12px | 12px | |
| 24px | 24px | |
| 8px | 8px | |
| 16px | 16px | |
| 20px | 20px | |
| 6px | 6px | |
| 1.6 | 1.6 | |
| 1.8 | 1.8 | |
| 2 | 2 | |
| 2 | 2 |
Opacity
Three roles and no free scale: opacity-pending on content kept on screen while the next content loads, opacity-disabled on non-text content in a disabled control (a swatch, an image), opacity-subtle on decorative imagery. Never use opacity to make text lighter; secondary text uses color-text-secondary, which keeps its contrast.
| token | value |
|---|---|
| 0.4 | |
| 0.6 | |
| 0.3 |
Z-index
Six stacking steps, 10 apart. A layer that can open from inside another sits above it: Popover and menus above Dialog and Sheet, Toast above modals, Tooltip above everything. Use them as z-sticky, z-overlay, z-popover, z-toast and z-tooltip; never a number like z-50. The focused skip link uses z-tooltip. Web only.
| token | value |
|---|---|
| 0 | |
| 10 | |
| 20 | |
| 30 | |
| 40 | |
| 50 |
Hover, pressed and disabled
Accent and status solids get their own hover and pressed layers (overlay-hover-on-accent, ...). Neutral fills keep overlay-hover and overlay-pressed.
| fill | default | hover | pressed |
|---|---|---|---|
| accent | Default | ||
| danger | Default | ||
| success | Default | ||
| warning | Default | ||
| info | Default | ||
| surface | Default | ||
| danger soft | Default | ||
| disabled | Disabled | ||
| fill | default | hover | pressed |
|---|---|---|---|
| accent | Default | ||
| danger | Default | ||
| success | Default | ||
| warning | Default | ||
| info | Default | ||
| surface | Default | ||
| danger soft | Default | ||
| disabled | Disabled | ||
| token | dark | light |
|---|---|---|
| #1e1e1e | #ededed | |
| #484848 | #b7b7b7 | |
| #484848 | #b7b7b7 | |
| #ffffff0f | #0000000a | |
| #ffffff1a | #00000014 | |
| #00000012 | #ffffff0d | |
| #00000024 | #ffffff1a | |
| #0000001f | #0000001f | |
| #0000003b | #0000003b | |
| #ffffff2b | #ffffff29 | |
| #ffffff52 | #ffffff4f | |
| #00000017 | #ffffff29 | |
| #0000002b | #ffffff52 | |
| #0000001f | #0000001f | |
| #0000003d | #0000003d |