Background
| Token | Role | Value |
|---|---|---|
$background |
|
|
$layer-background-0-1 |
|
|
$background-hover |
|
|
$background-active |
|
|
$background-selected |
|
|
$background-selected-hover |
|
|
$background-inverse |
|
|
$background-inverse-hover |
|
|
$background-brand |
|
|
Layer
| Token | Role | Value |
|---|---|---|
$layer-0-1 |
|
|
$layer-0-2 |
|
|
$layer-0-3 |
|
|
$layer-background-0-2 |
|
|
$layer-background-0-3 |
|
|
$layer-hover-0-1 |
|
|
$layer-hover-0-2 |
|
|
$layer-hover-0-3 |
|
|
$layer-active-0-1 |
|
|
$layer-active-0-2 |
|
|
$layer-active-0-3 |
|
|
$layer-selected-0-1 |
|
|
$layer-selected-0-2 |
|
|
$layer-selected-0-3 |
|
|
$layer-selected-hover-0-1 |
|
|
$layer-selected-hover-0-2 |
|
|
$layer-selected-hover-0-3 |
|
|
$layer-selected-inverse |
|
|
$layer-selected-disabled |
|
|
Layer accent
| Token | Role | Value |
|---|---|---|
$layer-accent-0-1 |
|
|
$layer-accent-0-2 |
|
|
$layer-accent-0-3 |
|
|
$layer-accent-hover-0-1 |
|
|
$layer-accent-hover-0-2 |
|
|
$layer-accent-hover-0-3 |
|
|
$layer-accent-active-0-1 |
|
|
$layer-accent-active-0-2 |
|
|
$layer-accent-active-0-3 |
|
|
Field
| Token | Role | Value |
|---|---|---|
$field-0-1 |
|
|
$field-0-2 |
|
|
$field-0-3 |
|
|
$field-hover-0-1 |
|
|
$field-hover-0-2 |
|
|
$field-hover-0-3 |
|
|
Border
| Token | Role | Value |
|---|---|---|
$border-interactive |
|
|
$border-subtle-0-0 |
|
|
$border-subtle-0-1 |
|
|
$border-subtle-0-2 |
|
|
$border-subtle-0-3 |
|
|
$border-subtle-selected-0-1 |
|
|
$border-subtle-selected-0-2 |
|
|
$border-subtle-selected-0-3 |
|
|
$border-strong-0-1 |
|
|
$border-strong-0-2 |
|
|
$border-strong-0-3 |
|
|
$border-tile-0-1 |
|
|
$border-tile-0-2 |
|
|
$border-tile-0-3 |
|
|
$border-inverse |
|
|
$border-disabled |
|
|
Text
| Token | Role | Value |
|---|---|---|
$text-primary |
|
|
$text-secondary |
|
|
$text-placeholder |
|
|
$text-on-color |
|
|
$text-on-color-disabled |
|
|
$text-helper |
|
|
$text-error |
|
|
$text-inverse |
|
|
$text-disabled |
|
|
Link
| Token | Role | Value |
|---|---|---|
$link-primary |
|
|
$link-primary-hover |
|
|
$link-secondary |
|
|
$link-inverse |
|
|
$link-inverse-hover |
|
|
$link-inverse-active |
|
|
$link-inverse-visited |
|
|
$link-visited |
|
|
Syntax
| Token | Role | Value |
|---|---|---|
$syntax-comment |
|
|
$syntax-line-comment |
|
|
$syntax-block-comment |
|
|
$syntax-doc-comment |
|
|
$syntax-doc-string |
|
|
$syntax-keyword |
|
|
$syntax-operator-keyword |
|
|
$syntax-control-keyword |
|
|
$syntax-definition-keyword |
|
|
$syntax-module-keyword |
|
|
$syntax-variable |
|
|
$syntax-name |
|
|
$syntax-variable-name |
|
|
$syntax-label-name |
|
|
$syntax-attribute |
|
|
$syntax-attribute-name |
|
|
$syntax-property-name |
|
|
$syntax-tag |
|
|
$syntax-tag-name |
|
|
$syntax-type |
|
|
$syntax-type-name |
|
|
$syntax-class-name |
|
|
$syntax-namespace |
|
|
$syntax-macro-name |
|
|
$syntax-atom |
|
|
$syntax-literal |
|
|
$syntax-bool |
|
|
$syntax-null |
|
|
$syntax-self |
|
|
$syntax-number |
|
|
$syntax-integer |
|
|
$syntax-float |
|
|
$syntax-unit |
|
|
$syntax-string |
|
|
$syntax-character |
|
|
$syntax-attribute-value |
|
|
$syntax-special-string |
|
|
$syntax-regexp |
|
|
$syntax-escape |
|
|
$syntax-url |
|
|
$syntax-color |
|
|
$syntax-operator |
|
|
$syntax-deref-operator |
|
|
$syntax-arithmetic-operator |
|
|
$syntax-logic-operator |
|
|
$syntax-bitwise-operator |
|
|
$syntax-compare-operator |
|
|
$syntax-update-operator |
|
|
$syntax-definition-operator |
|
|
$syntax-type-operator |
|
|
$syntax-control-operator |
|
|
$syntax-modifier |
|
|
$syntax-punctuation |
|
|
$syntax-separator |
|
|
$syntax-bracket |
|
|
$syntax-angle-bracket |
|
|
$syntax-square-bracket |
|
|
$syntax-paren |
|
|
$syntax-brace |
|
|
$syntax-content |
|
|
$syntax-list |
|
|
$syntax-emphasis |
|
|
$syntax-strong |
|
|
$syntax-monospace |
|
|
$syntax-strikethrough |
|
|
$syntax-heading |
|
|
$syntax-heading-1 |
|
|
$syntax-heading-2 |
|
|
$syntax-heading-3 |
|
|
$syntax-heading-4 |
|
|
$syntax-heading-5 |
|
|
$syntax-heading-6 |
|
|
$syntax-content-separator |
|
|
$syntax-quote |
|
|
$syntax-link |
|
|
$syntax-invalid |
|
|
$syntax-meta |
|
|
$syntax-document-meta |
|
|
$syntax-annotation |
|
|
$syntax-processing-instruction |
|
|
$syntax-definition |
|
|
$syntax-constant |
|
|
$syntax-function |
|
|
$syntax-standard |
|
|
$syntax-local |
|
|
$syntax-special |
|
|
Icon
| Token | Role | Value |
|---|---|---|
$icon-primary |
|
|
$icon-secondary |
|
|
$icon-on-color |
|
|
$icon-on-color-disabled |
|
|
$icon-interactive |
|
|
$icon-inverse |
|
|
$icon-disabled |
|
|
Support
| Token | Role | Value |
|---|---|---|
$support-error |
|
|
$support-success |
|
|
$support-warning |
|
|
$support-info |
|
|
$support-error-inverse |
|
|
$support-success-inverse |
|
|
$support-warning-inverse |
|
|
$support-info-inverse |
|
|
$support-caution-minor |
|
|
$support-caution-major |
|
|
$support-caution-undefined |
|
|
Focus
| Token | Role | Value |
|---|---|---|
$focus |
|
|
$focus-inset |
|
|
$focus-inverse |
|
|
Miscellaneous
| Token | Role | Value |
|---|---|---|
$interactive |
|
|
$highlight |
|
|
$toggle-off |
|
|
$overlay |
|
|
$skeleton-element |
|
|
$skeleton-background |
|
|
Component Tokens
Some components have their own specific color tokens, known as component tokens. They represent the properties associated with a particular component. They are not global tokens like the core tokens and should never be used for anything other than their own component. For more information on how to use component tokens, see the developer documentation.
Button
| Token | Role | Value |
|---|---|---|
$button-primary |
|
|
$button-primary-hover |
|
|
$button-primary-active |
|
|
$button-secondary |
|
|
$button-secondary-hover |
|
|
$button-secondary-active |
|
|
$button-tertiary |
|
|
$button-tertiary-hover |
|
|
$button-tertiary-active |
|
|
$button-danger-primary |
|
|
$button-danger-secondary |
|
|
$button-danger-hover |
|
|
$button-danger-active |
|
|
$button-separator |
|
|
$button-disabled |
|
|
Content switcher
| Token | Role | Value |
|---|---|---|
$content-switcher-background |
|
|
$content-switcher-background-hover |
|
|
$content-switcher-selected |
|
|
Tag
| Token | Role | Value |
|---|---|---|
$tag-background-gray |
|
|
$tag-color-gray |
|
|
$tag-hover-gray |
|
|
$tag-border-gray |
|
|
$tag-background-cool-gray |
|
|
$tag-color-cool-gray |
|
|
$tag-hover-cool-gray |
|
|
$tag-border-cool-gray |
|
|
$tag-background-warm-gray |
|
|
$tag-color-warm-gray |
|
|
$tag-hover-warm-gray |
|
|
$tag-border-warm-gray |
|
|
$tag-background-red |
|
|
$tag-color-red |
|
|
$tag-hover-red |
|
|
$tag-border-red |
|
|
$tag-background-magenta |
|
|
$tag-color-magenta |
|
|
$tag-hover-magenta |
|
|
$tag-border-magenta |
|
|
$tag-background-purple |
|
|
$tag-color-purple |
|
|
$tag-hover-purple |
|
|
$tag-border-purple |
|
|
$tag-background-blue |
|
|
$tag-color-blue |
|
|
$tag-hover-blue |
|
|
$tag-border-blue |
|
|
$tag-background-cyan |
|
|
$tag-color-cyan |
|
|
$tag-hover-cyan |
|
|
$tag-border-cyan |
|
|
$tag-background-teal |
|
|
$tag-color-teal |
|
|
$tag-hover-teal |
|
|
$tag-border-teal |
|
|
$tag-background-green |
|
|
$tag-color-green |
|
|
$tag-hover-green |
|
|
$tag-border-green |
|
|
Notification
| Token | Role | Value |
|---|---|---|
$notification-background-error |
|
|
$notification-background-success |
|
|
$notification-background-info |
|
|
$notification-background-warning |
|
|
$notification-action-hover |
|
|
$notification-action-tertiary-inverse |
|
|
$notification-action-tertiary-inverse-active |
|
|
$notification-action-tertiary-inverse-hover |
|
|
$notification-action-tertiary-inverse-text |
|
|
$notification-action-tertiary-inverse-text-on-color-disabled |
|
|
AI Tokens
To accommodate for the new AI styles, we have introduced a new suite of color tokens that can be found within the main Carbon themes. These tokens should only be used when building custom AI components, variants, or instances in your UI. For more information on how to use the AI tokens, see the Carbon for AI documentation.
General AI
| Token | Role | Value |
|---|---|---|
$ai-aura-start |
|
|
$ai-aura-start-sm |
|
|
$ai-aura-end |
|
|
$ai-aura-hover-start |
|
|
$ai-aura-hover-end |
|
|
$ai-aura-hover-background |
|
|
$ai-border-start |
|
|
$ai-border-end |
|
|
$ai-border-strong |
|
|
$ai-drop-shadow |
|
|
$ai-inner-shadow |
|
|
$ai-popover-background |
|
|
$ai-popover-shadow-outer-0-1 |
|
|
$ai-popover-shadow-outer-0-2 |
|
|
$ai-skeleton-background |
|
|
$ai-overlay |
|
|
Chat
| Token | Role | Value |
|---|---|---|
$chat-avatar-bot |
|
|
$chat-avatar-agent |
|
|
$chat-avatar-user |
|
|
$chat-bubble-user |
|
|
$chat-bubble-agent |
|
|
$chat-bubble-agent-text |
|
|
$chat-bubble-border |
|
|
$chat-bubble-user-text |
|
|
$chat-prompt-background |
|
|
$chat-prompt-border-start |
|
|
$chat-prompt-border-end |
|
|
$chat-prompt-text |
|
|
$chat-shell-background |
|
|
$chat-header-background |
|
|
$chat-header-text |
|
|
Chat button
| Token | Role | Value |
|---|---|---|
$chat-button |
|
|
$chat-button-hover |
|
|
$chat-button-text-hover |
|
|
$chat-button-active |
|
|
$chat-button-selected |
|
|
$chat-button-text-selected |
|
|