Skip to main contentCarbon Design System

Select

Color

ClassPropertyColor token
.bx--select-inputbackground$field *
.bx--select-inputborder-bottom$border-strong *
.bx--select--inlinebackgroundtransparent
.bx--labeltext color$text-primary
.bx--select-inputtext color$text-primary
.bx--select--inlinetext color$icon-primary
.bx--select__arrowfill$icon-primary

* Denotes a contextual color token that will change values based on the layer it is placed on.

Default and new selection state examples for Select

Examples of default and new selection select states

Interaction states

ClassPropertyColor token
.bx--select-input:focusborder$focus
.bx--select-input[data-invalid]border$support-error
.bx--form-requirementtext color$support-error
.bx--select-input:disabledbackground$field *
.bx--select-input:disabledborder-bottomtransparent
.bx--select-input:disabledtext color$text-disabled
Open, disabled, and more information/help state examples for Select

Examples of open, disabled, and help select states

Typography

Select text should be set in sentence case, with only the first word in a phrase and any proper nouns capitalized. Select text should be three words or less.

ElementFont-size (px/rem)Font-weightType token
Label12 / 0.75Regular / 400$label-01
Field text14 / 0.875Regular / 400$body-compact-01
Error message12 / 0.75Regular / 400$label-01

Structure

Select

ClassPropertypx / remSpacing token
.bx--labelmargin-bottom8 / 0.5$spacing-03
.bx--select-inputpadding-left16 / 1$spacing-05
.bx--select__arrowpadding-left, padding-right16 / 1$spacing-05
.bx--select-inputborder-bottom1px–
.bx--select-input:focusborder2px–
Structure and spacing measurements for select

Structure and spacing measurements for select | px / rem

Inline select

ClassPropertypx / remSpacing token
.bx--select-inputpadding-left8 / 0.5$spacing-03
.bx--select__arrowpadding-left, padding-right8 / 0.5$spacing-03
Structure and spacing measurements for Inline Select

Structure and spacing measurements for inline select (focused) | px / rem

Size

ElementSizeHeight (px / rem)
InputSmall (sm)32 / 2
Medium (md)40 / 2.5
Large (lg)48 / 3
Sizes for select

Sizes for default select | px / rem

Sizes for select

Sizes for inline select | px / rem