Skip to main contentCarbon Design System

Checkbox

Color

ClassPropertyColor token
.bx--labeltext color$text-secondary
.bx--checkbox-labeltext color$text-primary
.bx--checkboxborder$icon-primary
.bx--checkbox:uncheckedbackground-colortransparent
.bx--checkbox:checkedbackground-color$icon-primary
.bx--checkbox:checkedcheckmark$text-inverse
Checkbox states

Interactive states

StatePropertyColor token
:focusborder$focus
:disabledtext color$text-disabled
:disabledborder$icon-disabled
Checkbox interactive states

Typography

Checkbox labels should be sentence case, with only the first word in a phrase and any proper nouns capitalized. Checkbox labels should not exceed three words.

ElementFont-size (px/rem)Font-weightType token
Group label12 / 0.75Regular / 400$label-01
Checkbox label14 / 0.875Regular / 400$body-compact-01

Structure

ClassPropertypx / remSpacing token
.bx--checkboxheight & width16px–
.bx--checkboxborder1px–
.bx--checkbox:focusborder2px–
.bx--labelmargin-bottom8 / 0.5$spacing-03
.bx--checkbox-labelpadding-left8 / 0.5$spacing-03
.bx--form-item.bx--checkbox-wrappermargin-bottom8 / 0.5$spacing-03
Structure and spacing measurements for checkbox

Structure and spacing measurements for checkbox | px / rem