Tokens
The --global-* variables define the look of every component and of the app. A
theme changes their values; components stay the same.
Values of the default Aurora theme. Every color has a light and a dark value (light-dark()): the mode follows the operating system and setMode() forces it. Derived tokens (-strong, -soft, -glow, focus ring, fills) are computed from the base color: if you change --global-color-primary, they follow. --global-fill-* are backgrounds that carry text: text on them (on-*) meets WCAG AA contrast.
Surfaces
--global-color-bg--global-color-bg-2--global-color-surface--global-color-surface-2--global-color-surface-3--global-color-surface-solid--global-color-surface-pop--global-color-border--global-color-border-strongText
--global-color-text--global-color-text-2--global-color-text-3Brand
--global-color-primary--global-color-primary-strong--global-color-primary-soft--global-color-primary-glow--global-color-on-primary--global-color-accent--global-color-accent-softStates
--global-color-success--global-color-success-soft--global-color-warning--global-color-warning-soft--global-color-error--global-color-error-soft--global-color-error-glow--global-color-on-success--global-color-on-warning--global-color-on-errorData
--global-color-data-1--global-color-data-2--global-color-data-3--global-color-data-4--global-color-data-5--global-color-data-6Fills
--global-gradient--global-gradient-soft--global-fill-primary--global-fill-error--global-fill-gradientShape
--global-radius-scale--global-radius-xs--global-radius-sm--global-radius-md--global-radius-lg--global-radius-xl--global-radius-full--global-border-widthElevation
--global-shadow-sm--global-shadow-md--global-shadow-lg--global-shadow-fill--global-focus-ring-width--global-focus-ring-offset--global-focus-ring-color--global-color-overlay--global-overlay-blurInputs
--global-input-height--global-input-padding-x--global-input-gap--global-input-font-size--global-input-radius--global-input-border-width--global-input-background--global-input-color--global-input-placeholder-color--global-input-icon-color--global-input-border-color--global-input-hover-border-color--global-input-focus-border-color--global-input-focus-ring-color--global-input-shadow--global-input-disabled-background--global-input-disabled-opacity--global-input-error-color--global-input-success-color--global-input-label-color--global-input-label-font-size--global-input-label-font-weight--global-input-hint-color--global-input-hint-font-sizeTypography
--global-font-family--global-font-family-display--global-font-family-monoMotion
--global-ease--global-ease-spring--global-duration-fast--global-duration--global-duration-slowFonts
The library does not download fonts: the tokens --global-font-family, --global-font-family-display and --global-font-family-mono name Geist, Bricolage Grotesque and Geist Mono, falling back to the system font. For the Aurora look the app loads them itself, for example from Google Fonts in the <head>. When self-hosting, declare the same families with @font-face, or change the tokens to your own fonts.
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500..800&family=Geist:wght@400..700&family=Geist+Mono:wght@400..600&display=swap" />Themes
Import the theme CSS and activate it with setTheme('name'). Try them on the Themes page or with the picker at the bottom right.
aurora— default theme, intokens.css.classic