Skip to main content Skip to docs navigation

Collapsible content sections that organize and display information in a space-efficient vertical layout, allowing users to expand and collapse panels to reveal or hide content.

This documentation is a work in progress and may contain incomplete or outdated information. If you have any feedback or suggestions, please open an issue on GitHub.

Tokens

Design tokens and theming properties that control the visual appearance, spacing, and interaction states of accordion components throughout the design system. These tokens ensure consistent styling and enable systematic customization across different themes and brand implementations.

Theming Tokens

Comprehensive token hierarchy that affects accordion component styling, from granular component-specific properties to system-wide design foundations. These tokens provide flexibility for theme customization while maintaining design consistency and accessibility standards.

Legend:
  • Granular tokens that affect only this component.
  • Granular tokens that affect other components.
  • Semantic tokens that affect the whole application.
  • Base tokens that affect the whole application.

Color

Component TokenBase Token
color.accordion.item-fg-color {color.context.default.fg-main}
color.accordion.item-bg-color {color.context.default.bg-main}
color.accordion.title-fg-idle {color.context.default.fg-main}
color.accordion.title-bg-idle {color.context.default.bg-main}
color.accordion.title-fg-active {color.context.default.fg-main}
color.accordion.title-bg-active {color.context.default.bg-main}
color.accordion.indicator-idle {color.context.default.fg-main}
color.accordion.indicator-active {color.context.default.icon-main}
color.accordion.border-main {color.context.default.border-subtle}

Typography

Component TokenBase Token
font.accordion.medium-title {font.text.medium.strong}
font.accordion.medium-body {font.text.medium.normal}
font.accordion.large-title {font.text.large.strong}
font.accordion.large-body {font.text.large.normal}
font.accordion.small-title {font.text.small.strong}
font.accordion.small-body {font.text.small.normal}

Sizing

Component TokenBase Token
size.accordion.medium-indicator {size.base.24}
size.accordion.large-indicator {size.base.28}
size.accordion.small-indicator {size.base.20}

Spacing

Component TokenBase Token
space.accordion.medium-title-padding-y {space.base.12}
space.accordion.medium-title-padding-x {space.base.16}
space.accordion.medium-body-padding-t {space.base.4}
space.accordion.medium-body-padding-b {space.base.28}
space.accordion.medium-body-padding-s {space.base.56}
space.accordion.medium-body-padding-e {space.base.16}
space.accordion.medium-gap {space.base.16}
space.accordion.large-title-padding-y {space.base.16}
space.accordion.large-title-padding-x {space.base.20}
space.accordion.large-body-padding-t {space.base.12}
space.accordion.large-body-padding-b {space.base.32}
space.accordion.large-body-padding-s {space.base.68}
space.accordion.large-body-padding-e {space.base.20}
space.accordion.large-gap {space.base.20}
space.accordion.small-title-padding-y {space.base.12}
space.accordion.small-title-padding-x {space.base.12}
space.accordion.small-body-padding-t {space.base.2}
space.accordion.small-body-padding-b {space.base.16}
space.accordion.small-body-padding-s {space.base.44}
space.accordion.small-body-padding-e {space.base.12}
space.accordion.small-gap {space.base.12}

Border Width

Component TokenBase Token
borderWidth.accordion.main {borderWidth.context.medium}

Border Radius

Component TokenBase Token
borderRadius.accordion.main {borderRadius.context.medium}