Skip to content

    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.

    spacing-2xsp-2xs2px
    spacing-xsp-xs4px
    spacing-smp-sm8px
    spacing-mdp-md12px
    spacing-lgp-lg16px
    spacing-xlp-xl24px
    spacing-2xlp-2xl32px
    spacing-3xlp-3xl48px
    spacing-4xlp-4xl64px
    spacing-5xlp-5xl96px
    spacing-safe-topp-safe-topenv(safe-area-inset-top, 0px)
    spacing-safe-rightp-safe-rightenv(safe-area-inset-right, 0px)
    spacing-safe-bottomp-safe-bottomenv(safe-area-inset-bottom, 0px)
    spacing-safe-leftp-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.

    size-element-sm28px
    size-element-md32px
    size-element-lg36px
    size-element-xl44px
    size-target-min24px
    size-inline-xs16px
    size-inline-sm20px
    size-inline-md24px

    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-smsize-icon-sm12px
    size-icon-mdsize-icon-md16px
    size-icon-lgsize-icon-lg20px

    Panel 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).

    size-panel-sidebarw-panel-sidebar256px
    size-panel-popoverw-panel-popover288px
    size-panel-smw-panel-sm320px
    size-panel-mdw-panel-md384px
    size-panel-lgw-panel-lg448px

    Radius

    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.

    radius-nonerounded-none0px
    radius-innerrounded-inner6px
    radius-itemrounded-item11px
    radius-elementrounded-element12px
    radius-containerrounded-container16px
    radius-pagerounded-page20px
    radius-fullrounded-full9999px
    corner-smoothing0.6

    Border 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.

    dark
    borderborder-border-strongfocus-ring
    light
    borderborder-border-strongfocus-ring
    tokendarklight
    color-focus-ring#f5f5f5#111111
    border-width1px1px
    outline-width-focus-ring2px2px
    outline-offset-focus-ring2px2px

    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 workspace
    text-heading-2Invite people to your workspace
    text-heading-3Invite people to your workspace
    text-bodyInvite people to your workspace
    tokenvalue
    font-family-sansGeist, ui-sans-serif, system-ui, sans-serif
    font-family-mono'JetBrains Mono', ui-monospace, monospace
    font-size-xs12px
    font-size-sm14px
    font-size-md16px
    font-size-lg18px
    font-size-xl20px
    font-size-input14px
    font-weight-regular400
    font-weight-medium500
    font-weight-semibold600
    heading-1-size32px
    heading-1-weight500
    heading-1-leading40px
    heading-2-size24px
    heading-2-weight500
    heading-2-leading32px
    heading-3-size20px
    heading-3-weight500
    heading-3-leading28px
    body-size14px
    body-weight400
    body-leading20px
    line-height-xs16px
    line-height-sm20px
    line-height-md24px
    line-height-lg28px
    line-height-xl28px
    line-height-input20px

    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.

    Each dot travels the same distance with one duration and one easing.
    ease-standardease-enterease-exit
    duration-fast
    duration-medium
    duration-slow
    Press feedback: scale-pressed with duration-fast and ease-standard, plus the pressed overlay. No movement under reduced motion.
    tokenvalue
    duration-fast160ms
    duration-medium250ms
    duration-slow400ms
    duration-loop2000ms
    duration-spring650ms
    ease-standardcubic-bezier(0.2, 0, 0, 1)
    ease-entercubic-bezier(0.05, 0.7, 0.1, 1)
    ease-exitcubic-bezier(0.3, 0, 0.8, 0.15)
    ease-springlinear(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)
    scale-pressed0.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.

    dark
    shadow-low
    shadow-med
    shadow-high
    shadow-inset
    light
    shadow-low
    shadow-med
    shadow-high
    shadow-inset
    tokendarklight
    shadow-low0px 1px 3px 0px #00000066, inset 0px 1px 0px 0px #ffffff1a0px 1px 2px 0px #0000000f, 0px 1px 3px 0px #0000001a
    shadow-med0px 4px 16px 0px #00000080, inset 0px 1px 0px 0px #ffffff1a0px 2px 4px 0px #0000000f, 0px 8px 16px 0px #0000001a
    shadow-high0px 16px 40px 0px #00000099, inset 0px 1px 0px 0px #ffffff1a0px 4px 8px 0px #00000014, 0px 24px 48px 0px #00000029
    shadow-insetinset 0px 1px 3px 0px #000000b3inset 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.

    dark

    material-thin

    Bar

    backdrop-blur-smbackdrop-blur-mdbackdrop-blur-lg

    material-thick

    Secondary text stays readable over anything behind it.

    light

    material-thin

    Bar

    backdrop-blur-smbackdrop-blur-mdbackdrop-blur-lg

    material-thick

    Secondary text stays readable over anything behind it.

    dark

    material-clear

    See-through glass that bends the colors at its edge. Primary text only, over Werewolf colors.

    light

    material-clear

    See-through glass that bends the colors at its edge. Primary text only, over Werewolf colors.

    tokendarklight
    color-background-material-thin#111111d9#fafafae6
    color-background-material-thick#181818e6#ffffffd9
    color-background-material-refract#181818e6#ffffffd9
    color-background-material-clear#18181880#ffffff33
    color-border-material-edge#ffffff1f#ffffff59
    color-overlay-highlight-on-material#ffffff29#ffffff80
    blur-sm4px4px
    blur-md12px12px
    blur-lg24px24px
    blur-material-thin8px8px
    blur-material-thick16px16px
    blur-material-refract20px20px
    blur-material-clear6px6px
    saturate-material-thin1.61.6
    saturate-material-thick1.81.8
    saturate-material-refract22
    saturate-material-clear22

    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.

    dark
    opacity-disabled
    opacity-pending
    opacity-subtle
    light
    opacity-disabled
    opacity-pending
    opacity-subtle
    tokenvalue
    opacity-disabled0.4
    opacity-pending0.6
    opacity-subtle0.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.

    tokenvalue
    z-index-base0
    z-index-sticky10
    z-index-overlay20
    z-index-popover30
    z-index-toast40
    z-index-tooltip50

    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.

    dark
    filldefaulthoverpressed
    accentDefaultHoverPressed
    dangerDefaultHoverPressed
    successDefaultHoverPressed
    warningDefaultHoverPressed
    infoDefaultHoverPressed
    surfaceDefaultHoverPressed
    danger softDefaultHoverPressed
    disabledDisabled
    light
    filldefaulthoverpressed
    accentDefaultHoverPressed
    dangerDefaultHoverPressed
    successDefaultHoverPressed
    warningDefaultHoverPressed
    infoDefaultHoverPressed
    surfaceDefaultHoverPressed
    danger softDefaultHoverPressed
    disabledDisabled
    tokendarklight
    color-background-disabled#1e1e1e#ededed
    color-text-disabled#484848#b7b7b7
    color-icon-disabled#484848#b7b7b7
    color-overlay-hover#ffffff0f#0000000a
    color-overlay-pressed#ffffff1a#00000014
    color-overlay-hover-on-accent#00000012#ffffff0d
    color-overlay-pressed-on-accent#00000024#ffffff1a
    color-overlay-hover-on-danger#0000001f#0000001f
    color-overlay-pressed-on-danger#0000003b#0000003b
    color-overlay-hover-on-success#ffffff2b#ffffff29
    color-overlay-pressed-on-success#ffffff52#ffffff4f
    color-overlay-hover-on-warning#00000017#ffffff29
    color-overlay-pressed-on-warning#0000002b#ffffff52
    color-overlay-hover-on-info#0000001f#0000001f
    color-overlay-pressed-on-info#0000003d#0000003d