Foundations

Foundations

The package has 400 tokens in three layers: 126 primitives, 151 semantic tokens and 123 component tokens. These pages show the semantic layer, the one you write CSS against, with values for the brand this site wears.

Foundation pages

Other tokens

The semantic tokens that don’t need a page of their own. None of them change between light and dark.

Radius

Corner rounding by role: components, interactive controls, images and pills.

TokenValueUsed by
--border-radius-component12px0px24pxAlert, Card, CommandPalette, Dialog and 21 more
--border-radius-interactive12px2px9999pxAlert, Dialog, Drawer, Menu and 24 more
--border-radius-image0.75rem0px24pxCard, AspectRatio, Image
--border-radius-pill9999px9999px9999pxMobileNav, Stepper, Avatar, Badge and 10 more

Border width

The default border and the border on interactive controls.

TokenValueUsed by
--border-width-interactive1px1px1pxMenu, NavigationMenu, Popover, ChatComposer and 13 more
--border-width-default1px2px1pxAlert, Card, CommandPalette, Dialog and 29 more

Shadow

Elevation by component: cards, dropdowns, dialogs and toasts.

TokenValueUsed by
--shadow-card0 1px 2px 0 rgba(0,0,0,0.05)none0 1px 2px 0 rgba(36,31,58,0.06), 0 8px 24px 0 rgba(36,31,58,0.08)Card
--shadow-card-hover0 1px 3px 0 rgba(0,0,0,0.10), 0 1px 2px -1px rgba(0,0,0,0.10)none0 2px 4px 0 rgba(36,31,58,0.08), 0 12px 32px 0 rgba(36,31,58,0.10)Card
--shadow-dropdown0 4px 6px -1px rgba(0,0,0,0.10), 0 2px 4px -2px rgba(0,0,0,0.10)0 4px 6px -1px rgba(0,0,0,0.10), 0 2px 4px -2px rgba(0,0,0,0.10)0 4px 6px -1px rgba(0,0,0,0.10), 0 2px 4px -2px rgba(0,0,0,0.10)CommandPalette, Menu, NavigationMenu, Popover and 3 more
--shadow-dialog0 4px 6px -1px rgba(0,0,0,0.10), 0 2px 4px -2px rgba(0,0,0,0.10)0 4px 6px -1px rgba(0,0,0,0.10), 0 2px 4px -2px rgba(0,0,0,0.10)0 4px 6px -1px rgba(0,0,0,0.10), 0 2px 4px -2px rgba(0,0,0,0.10)Drawer
--shadow-toast0 10px 15px -3px rgba(0,0,0,0.10), 0 4px 6px -4px rgba(0,0,0,0.10)0 10px 15px -3px rgba(0,0,0,0.10), 0 4px 6px -4px rgba(0,0,0,0.10)0 10px 15px -3px rgba(0,0,0,0.10), 0 4px 6px -4px rgba(0,0,0,0.10)Toast, Tooltip

Size

The focus ring, icon sizes, the default dialog width and the container widths for text, media and pages.

TokenValueUsed by
--focus-ring-width2px2px2pxAlert, Card, Dialog, Drawer and 44 more
--focus-ring-offset4px4px4pxAlert, Card, Dialog, Drawer and 32 more
--size-icon-xs12px12px12pxIcon, Link, SelectableCard, Tag
--size-icon-sm16px16px16pxCommandPalette, Menu, NavigationMenu, SideNav and 7 more
--size-icon-md20px20px20pxAlert, CommandPalette, Toast, Accordion and 12 more
--size-icon-lg24px24px24pxFileUpload, Icon, Image, Spinner
--size-icon-xl32px32px32pxIcon
--size-dialog-default560px560px560px—
--size-container-text45rem45rem45remChatMessage, FormLayout, Markdown, PromptForm and 1 more
--size-container-media60rem60rem60remSection
--size-container-wide80rem80rem80remSection
--size-container-page90rem90rem90remSection
--size-container-site90vw90vw90vw—

Opacity

The overlay behind a dialog, and disabled controls.

TokenValueUsed by
--opacity-overlay0.30.30.3—
--opacity-disabled0.10.10.1—

Z-index

Stacking order, lowest to highest. The skip link sits above everything.

TokenValueUsed by
--z-sticky100100100MobileNav, TopNav
--z-dropdown200200200NavigationMenu
--z-overlay300300300CommandPalette, Dialog, Drawer, Lightbox and 3 more
--z-modal400400400—
--z-toast500500500Toast
--z-tooltip600600600Tooltip
--z-skip-link700700700SkipLink

How the tokens are layered

Primitives are raw values: a gray ramp, a 4px spacing step. Components never use them; the linter fails the build if one does. Semantic tokens name a role, like --color-text-secondary or --space-element-gap, and point at a primitive. A brand or dark mode changes what they point at. Component tokens name one component’s decisions, like --button-padding-x, and are listed on each component’s page.

Every token, primitives included, with all four resolved values, is in tokens.json.