Skip to main content

Color

ClassPropertySCSSHEX
.bx--accordion__titlecolor$text-01#152935
.bx--accordion__contentcolor$text-01#152935
.bx--accordion__arrowfill$ui-05#5a6872
.bx--accordion__itemborder-top$ui-03#dfe3e6

Typography

All Accordion labels are set in sentence case and should not exceed three words. Set body text appropriately based on content.

ClassFont-size (px/rem)Font-weightText style
.bx--accordion__title16 / 1Normal / 400p
.bx--accordion__content14 / 0.875Normal / 400-

Structure

There is no limit to the height of an open row, however, the padding specs below should be followed. The width of an Accordion varies based on the content, layout, and page design. The chevron icon can be found on the iconography library page. Avoid having any text within 16px / 1rem of the Accordion's sides. Additionally, include padding between labels, body copy, and separation lines to provide breathing room between elements.

ClassPropertypx/remSpacing token
.bx--accordion__headingheight40 / 2.5-
.bx--accordion__arrowwidth10 / 0.635-
.bx--accordion__itemborder-top1-
.bx--accordion__titlemargin-left16 / 1$spacing-md
.bx--accordion__contentpadding-right, padding-top16 / 1$spacing-md
.bx--accordion__contentpadding-left40 / 2.5$spacing-2xl
.bx--accordion__item--activepadding-bottom24 / 1.5$spacing-lg

Structure and spacing measurements for Accordion Structure and spacing measurements for Accordion | px / rem