Skip to main content
Light Dark System

More Design Tokens

All of the design tokens described herein are considered relatively stable. However, some changes might occur in future versions to address mission critical bugs or improvements. If such changes occur, they will not be considered breaking changes and will be clearly documented in the changelog.

Most design tokens are consistent across the light and dark theme. Those that vary will show both values.

Focus Rings

Focus ring tokens control the appearance of focus rings. Note that form inputs use --sc-input-focus-ring-* tokens instead.

Token Value
--sc-focus-ring-color var(--sc-color-primary-600) (light theme)
var(--sc-color-primary-700) (dark theme)
--sc-focus-ring-style solid
--sc-focus-ring-width 3px
--sc-focus-ring var(--sc-focus-ring-style) var(--sc-focus-ring-width) var(--sc-focus-ring-color)
--sc-focus-ring-offset 1px

Buttons

Button tokens control the appearance of buttons. In addition, buttons also currently use some form input tokens such as --sc-input-height-* and --sc-input-border-*. More button tokens may be added in the future to make it easier to style them more independently.

Token Value
--sc-button-font-size-small var(--sc-font-size-x-small)
--sc-button-font-size-medium var(--sc-font-size-small)
--sc-button-font-size-large var(--sc-font-size-medium)

Form Inputs

Form input tokens control the appearance of form controls such as input, select, textarea, etc.

Token Value
--sc-input-height-small 1.875rem (30px @ 16px base)
--sc-input-height-medium 2.5rem (40px @ 16px base)
--sc-input-height-large 3.125rem (50px @ 16px base)
--sc-input-background-color var(--sc-color-neutral-0)
--sc-input-background-color-hover var(--sc-input-background-color)
--sc-input-background-color-focus var(--sc-input-background-color)
--sc-input-background-color-disabled var(--sc-color-neutral-100)
--sc-input-border-color var(--sc-color-neutral-300)
--sc-input-border-color-hover var(--sc-color-neutral-400)
--sc-input-border-color-focus var(--sc-color-primary-500)
--sc-input-border-color-disabled var(--sc-color-neutral-300)
--sc-input-border-width 1px
--sc-input-required-content *
--sc-input-required-content-offset -2px
--sc-input-required-content-color var(--sc-input-label-color)
--sc-input-border-radius-small var(--sc-border-radius-medium)
--sc-input-border-radius-medium var(--sc-border-radius-medium)
--sc-input-border-radius-large var(--sc-border-radius-medium)
--sc-input-font-family var(--sc-font-sans)
--sc-input-font-weight var(--sc-font-weight-normal)
--sc-input-font-size-small var(--sc-font-size-small)
--sc-input-font-size-medium var(--sc-font-size-medium)
--sc-input-font-size-large var(--sc-font-size-large)
--sc-input-letter-spacing var(--sc-letter-spacing-normal)
--sc-input-color var(--sc-color-neutral-700)
--sc-input-color-hover var(--sc-color-neutral-700)
--sc-input-color-focus var(--sc-color-neutral-700)
--sc-input-color-disabled var(--sc-color-neutral-900)
--sc-input-icon-color var(--sc-color-neutral-500)
--sc-input-icon-color-hover var(--sc-color-neutral-600)
--sc-input-icon-color-focus var(--sc-color-neutral-600)
--sc-input-placeholder-color var(--sc-color-neutral-500)
--sc-input-placeholder-color-disabled var(--sc-color-neutral-600)
--sc-input-spacing-small var(--sc-spacing-small)
--sc-input-spacing-medium var(--sc-spacing-medium)
--sc-input-spacing-large var(--sc-spacing-large)
--sc-input-focus-ring-color hsl(198.6 88.7% 48.4% / 40%)
--sc-input-focus-ring-offset 0

Filled Form Inputs

Filled form input tokens control the appearance of form controls using the filled variant.

Token Value
--sc-input-filled-background-color var(--sc-color-neutral-100)
--sc-input-filled-background-color-hover var(--sc-color-neutral-100)
--sc-input-filled-background-color-focus var(--sc-color-neutral-100)
--sc-input-filled-background-color-disabled var(--sc-color-neutral-100)
--sc-input-filled-color var(--sc-color-neutral-800)
--sc-input-filled-color-hover var(--sc-color-neutral-800)
--sc-input-filled-color-focus var(--sc-color-neutral-700)
--sc-input-filled-color-disabled var(--sc-color-neutral-800)

Form Labels

Form label tokens control the appearance of labels in form controls.

Token Value
--sc-input-label-font-size-small var(--sc-font-size-small)
--sc-input-label-font-size-medium var(--sc-font-size-medium)
--sc-input-label-font-size-large var(--sc-font-size-large)
--sc-input-label-color inherit

Help Text

Help text tokens control the appearance of help text in form controls.

Token Value
--sc-input-help-text-font-size-small var(--sc-font-size-x-small)
--sc-input-help-text-font-size-medium var(--sc-font-size-small)
--sc-input-help-text-font-size-large var(--sc-font-size-medium)
--sc-input-help-text-color var(--sc-color-neutral-500)

Toggles

Toggle tokens control the appearance of toggles such as checkbox, radio, switch, etc.

Token Value
--sc-toggle-size-small 0.875rem (14px @ 16px base)
--sc-toggle-size-medium 1.125rem (18px @ 16px base)
--sc-toggle-size-large 1.375rem (22px @ 16px base)

Overlays

Overlay tokens control the appearance of overlays as used in dialog, drawer, etc.

Token Value
--sc-overlay-background-color hsl(240 3.8% 46.1% / 33%)

Panels

Panel tokens control the appearance of panels such as those used in dialog, drawer, menu, etc.

Token Value
--sc-panel-background-color var(--sc-color-neutral-0)
--sc-panel-border-color var(--sc-color-neutral-200)
--sc-panel-border-width 1px

Tooltips

Tooltip tokens control the appearance of tooltips. This includes the tooltip component as well as other implementations, such range tooltips.

Token Value
--sc-tooltip-border-radius var(--sc-border-radius-medium)
--sc-tooltip-background-color var(--sc-color-neutral-800)
--sc-tooltip-color var(--sc-color-neutral-0)
--sc-tooltip-font-family var(--sc-font-sans)
--sc-tooltip-font-weight var(--sc-font-weight-normal)
--sc-tooltip-font-size var(--sc-font-size-small)
--sc-tooltip-line-height var(--sc-line-height-dense)
--sc-tooltip-padding var(--sc-spacing-2x-small) var(--sc-spacing-x-small)
--sc-tooltip-arrow-size 6px