Skip to main contentCarbon Design System

AI label

The following page documents visual specifications such as color, typography, structure, and sizes.

Color

Default
StateElementPropertyColor token
EnabledLabeltext color$text-primary
Buttonborder$border-inverse
backgroundtransparent
HoverLabeltext color$text-inverse
Buttonborder$border-inverse
background$background-inverse
FocusButtonborder$focus

Inline
StateElementPropertyColor token
EnabledLabeltext color$text-primary
Dotfill$icon-primary
Buttonbackgroundtransparent
HoverLabeltext color$text-secondary
Buttonborder$border-inverse
backgroundtransparent
FocusButtonborder$focus

Explainability popover
ElementPropertyColor token
Popover backgroundbackground$ai-popover-background
linear-gradient: start$ai-aura-start
linear-gradient: end$ai-aura-end
Popover borderlinear-gradient: start$ai-border-start
linear-gradient: end$ai-border-end

Typography

Default
ElementFont-size (px/rem)Font-weightType token
Label text (xl)20 / 1.25SemiBold / 600$heading-03
Label text (sm–lg)16 / 1SemiBold / 600$heading-02
Label text (2xs–xs)12 / 0.75SemiBold / 600
Label text (mini)9 / 0.5625SemiBold / 600

Inline
ElementFont-size (px/rem)Font-weightType token
Label text (lg)16 / 1SemiBold / 600$heading-02
Label text (md)14 / 0.875SemiBold / 600$heading-01
Label text (sm)12 / 0.75SemiBold / 600

Explainability popover
ElementFont-size (px/rem)Font-weightType token
Label14 / 0.875Regular / 400$label-02
Title28 / 1.75Regular / 400$heading-04
Body14 / 0.875Regular / 400$body-01

Structure

Default
ElementPropertyValueSpacing token
Buttonborder1px
Text labelpaddingcentered

Inline
ElementPropertypx/remSpacing token
Text labelpadding-left4px$spacing-02
Buttonborder1px
padding-left, padding-right4px$spacing-02
Button (sm)height16px
dot4px
Button (md)height18px
dot4px
Button (lg)height22px
dot8px

Explainability popover
ElementPropertypx/remSpacing token
Containerpadding24px$spacing-06
Footerheight48px
Structure measurements for default accordion alignment

Structure measurements for default accordion alignment. | px / rem

Sizes

Default
Default sizeHeight (px/rem)
Mini16 / 1
2x small (2xs)20 / 1.25
Extra small (xs)24 / 1.5
Small (sm)32 / 2
Medium (md)40 / 2.5
Large (lg)48 / 3
Extra large (xl)64 / 4

Inline
Inline sizeHeight (px/rem)
Small (sm)12 / 0.75
Medium (md)14 / 0.875
Large (lg)16 / 1