Token reference
Choose names by their purpose, then assign values from your own design.
92 tokens
No matching tokens. Try a different name or choose another tier.
Surfaces
Give each surface a role, from the page canvas to raised cards and inset fields. Map these roles to your own palette, and choose text colors for the surface they appear on.
-
--bg-bodycorePage or application canvas behind main content.
Usage: html/body background -
--bg-maincorePrimary content surface.
Usage: main column, article, panel -
--bg-insetcoreRecessed surface below the main background.
Usage: asides, wells, form fields, inputs -
--bg-raisedcoreSurface elevated above the main background.
Usage: cards, menus, dropdowns, raised panels -
--bg-inset-strongextendedDeeper inset than inset when two recessed levels are needed.
-
--bg-raised-strongextendedStronger elevation than raised when two raised levels are needed.
-
--bg-brandcoreBackground filled with the primary brand color.
Usage: call-to-action buttons -
--bg-brand-secondarycoreBackground filled with a secondary brand color.
-
--bg-successcoreBackground for success state regions.
Usage: banners, badges -
--bg-warningcoreBackground for warning state regions.
-
--bg-dangercoreBackground for danger/error state regions.
-
--bg-infocoreBackground for informational state regions.
-
--bg-disabledcoreBackground for disabled controls or inert regions.
-
--bg-inversecoreContrasting surface inverted from the current theme (e.g. dark on light themes).
Text colors
Express emphasis, interaction, and status without coupling copy to a palette step. Check contrast against the actual background; a pairing describes intent, not a guarantee of accessibility.
-
--text-primarycoreMain body and default copy text.
Usage: body, headings by default -
--text-secondarycoreSupporting copy with less emphasis than primary.
Usage: subtitles, metadata, secondary labels -
--text-subtlecoreQuietest text for hints, captions, and de-emphasized content.
Usage: captions, placeholder-adjacent hints -
--text-interactivecoreDefault color for text links and text-styled controls. Hover/active use text-interactive-hover and text-interactive-active.
Usage: links, text buttons -
--text-interactive-hovercoreHover state for interactive text.
-
--text-interactive-activecoreActive/pressed state for interactive text.
-
--text-brandcoreText colored with the primary brand accent.
-
--text-brand-secondarycoreText colored with a secondary brand accent.
-
--text-successcoreText for success messaging and status.
-
--text-warningcoreText for warning messaging and status.
-
--text-dangercoreText for danger/error messaging and status.
-
--text-infocoreText for informational messaging and status.
-
--text-disabledcoreText on disabled controls or unavailable actions.
-
--text-inversecoreText intended for inverse or high-contrast surfaces.
Border colors
Use neutral dividers for structure and status colors to reinforce meaning. Border color is separate from border width and radius.
-
--border-colorcoreDefault border and divider color.
Usage: cards, inputs, separators -
--border-color-subtlecoreQuieter border for low-emphasis dividers.
-
--border-brandcoreBorder accent using the primary brand color.
-
--border-brand-secondarycoreBorder accent using a secondary brand color.
-
--border-successcoreBorder for success state outlines.
-
--border-warningcoreBorder for warning state outlines.
-
--border-dangercoreBorder for danger/error state outlines.
-
--border-infocoreBorder for informational state outlines.
Icon colors
Extended tokens give icons their own color roles when inheriting text color is not enough. Use currentColor in SVGs to pick up the assigned role.
-
--icon-primaryextendedDefault icon color.
-
--icon-successextendedIcon color for success status.
-
--icon-warningextendedIcon color for warning status.
-
--icon-dangerextendedIcon color for danger/error status.
-
--icon-infoextendedIcon color for informational status.
-
--icon-disabledextendedIcon color when the control is disabled.
-
--icon-inverseextendedIcon color on inverse or brand-filled surfaces.
Chart colors
Extended series colors provide consistent references for data visualization. Choose a distinguishable palette and supplement color with labels, patterns, or shapes.
-
--chart-color-1extendedFirst chart series color.
-
--chart-color-2extendedSecond chart series color.
-
--chart-color-3extendedThird chart series color.
-
--chart-color-4extendedFourth chart series color.
-
--chart-color-5extendedFifth chart series color.
-
--chart-color-6extendedSixth chart series color.
Typography
Define typefaces, a size scale, weights, and text rhythm once. Components can then describe their typographic role without repeating font values.
-
--font-bodycoreDefault typeface for body copy and UI text.
-
--font-displaycoreTypeface for titles and display headings.
-
--font-monocoreMonospace typeface for code and tabular data.
-
--font-size-xscoreSmallest text size.
Usage: captions, fine print -
--font-size-smcoreSmall text size.
Usage: secondary labels -
--font-size-mdcoreDefault body text size.
-
--font-size-lgcoreLarge text size.
Usage: lead paragraphs, subheads -
--font-size-xlcoreExtra-large text size.
Usage: section headings -
--font-size-xxlcoreLargest display text size when an size is needed.
Usage: page titles -
--font-weight-lightcoreLight font weight.
-
--font-weight-normalcoreRegular/normal font weight.
-
--font-weight-boldcoreBold font weight.
-
--line-height-normalcoreDefault line height for body text.
-
--line-height-tightcoreTighter line height for headings and compact UI.
-
--letter-spacing-uppercasecoreTracking for uppercase or small-caps labels.
Spacing
Apply a shared scale to gaps, padding, and margins. The steps describe relative size; assign values that fit your design rather than treating them as a prescribed numeric scale.
-
--space-xscoreTightest spacing step.
Usage: icon gaps, dense stacks -
--space-smcoreSmall spacing step.
-
--space-mdcoreDefault spacing step for common layout padding or gaps.
-
--space-lgcoreLarge spacing step for section padding.
-
--space-xlcoreExtra-large spacing step.
-
--space-xxlcoreLargest spacing step for major layout separation.
Border shape & width
Keep corner treatments consistent with core radius tokens. Extended width tokens are available when your design benefits from shared stroke weights.
-
--border-radius-smcoreSmall corner radius.
Usage: chips, dense controls -
--border-radius-mdcoreDefault corner radius.
Usage: buttons, inputs, cards -
--border-radius-lgcoreLarge corner radius.
Usage: panels, hero media -
--border-widthextendedDefault border width.
-
--border-width-thickextendedThicker border width for emphasis or stylistic variety.
Motion
Pair durations with easing curves to give transitions a consistent feel. Honor reduced-motion preferences; assigning a duration does not make every animation necessary.
-
--ease-incoreAccelerating easing curve.
Usage: system-initiated animations -
--ease-outcoreDecelerating easing curve.
Usage: user-initiated animations -
--ease-linearcoreConstant-rate easing; defaults to the CSS keyword linear.
Usage: fades or color transitions -
--duration-fastcoreShort motion duration.
Usage: micro-interactions, hover -
--duration-normalcoreDefault motion duration for most UI transitions.
Layout & layering
Share content widths and a deliberate stacking order. Z-index values only compare within their stacking context, and do not override the browser’s top layer.
-
--content-max-widthcoreMax width for primary page content.
Usage: main layout container, nav header -
--overlay-max-widthcoreMax width for overlays such as dialogs.
Usage: modals, dialogs -
--z-menucoreZ-index for menus and dropdowns.
-
--z-stickycoreZ-index for sticky headers or bars.
-
--z-fixedcoreZ-index for fixed-position chrome.
-
--z-drawercoreZ-index for drawers and side panels.
-
--z-dialogcoreZ-index for modal dialogs.
-
--z-popovercoreZ-index for tooltips and popovers.
-
--z-tooltipcoreZ-index for tooltips.
-
--z-toastcoreZ-index for toasts and global notifications.
Focus & shadow
Make keyboard focus visible and use a shared shadow for elevation. This example assigns a color to the focus-ring token and supplies outline width and style at the point of use.
-
--focus-ringcoreFocus indicator color or shorthand used for :focus-visible outlines.
Usage: keyboard focus rings on interactive elements -
--box-shadowcoreDefault elevation shadow for raised surfaces.