Accordion Theming

Theming documentation for accordion component

Styled#

Accordion CSS Classes#

List of class names used in the styled mode.

classNamedescription
p-accordionClass name of the root element
p-accordioncontentClass name of the content element
p-accordionheaderClass name of the header element
p-accordionpanelClass name of the panel element
p-accordionheader-toggle-iconClass name of the toggle icon element

Design Tokens#

List of design tokens.

tokenCSS Variabledescription
accordion.transition.duration
--p-accordion-transition-duration
Transition duration of root
accordion.panel.border.width
--p-accordion-panel-border-width
Border width of panel
accordion.panel.border.color
--p-accordion-panel-border-color
Border color of panel
accordion.header.color
--p-accordion-header-color
Color of header
accordion.header.hover.color
--p-accordion-header-hover-color
Hover color of header
accordion.header.active.color
--p-accordion-header-active-color
Active color of header
accordion.header.active.hover.color
--p-accordion-header-active-hover-color
Active hover color of header
accordion.header.padding
--p-accordion-header-padding
Padding of header
accordion.header.font.weight
--p-accordion-header-font-weight
Font weight of header
accordion.header.border.radius
--p-accordion-header-border-radius
Border radius of header
accordion.header.border.width
--p-accordion-header-border-width
Border width of header
accordion.header.border.color
--p-accordion-header-border-color
Border color of header
accordion.header.background
--p-accordion-header-background
Background of header
accordion.header.hover.background
--p-accordion-header-hover-background
Hover background of header
accordion.header.active.background
--p-accordion-header-active-background
Active background of header
accordion.header.active.hover.background
--p-accordion-header-active-hover-background
Active hover background of header
accordion.header.focus.ring.width
--p-accordion-header-focus-ring-width
Focus ring width of header
accordion.header.focus.ring.style
--p-accordion-header-focus-ring-style
Focus ring style of header
accordion.header.focus.ring.color
--p-accordion-header-focus-ring-color
Focus ring color of header
accordion.header.focus.ring.offset
--p-accordion-header-focus-ring-offset
Focus ring offset of header
accordion.header.focus.ring.shadow
--p-accordion-header-focus-ring-shadow
Focus ring shadow of header
accordion.header.toggle.icon.color
--p-accordion-header-toggle-icon-color
Toggle icon color of header
accordion.header.toggle.icon.hover.color
--p-accordion-header-toggle-icon-hover-color
Toggle icon hover color of header
accordion.header.toggle.icon.active.color
--p-accordion-header-toggle-icon-active-color
Toggle icon active color of header
accordion.header.toggle.icon.active.hover.color
--p-accordion-header-toggle-icon-active-hover-color
Toggle icon active hover color of header
accordion.header.first.top.border.radius
--p-accordion-header-first-top-border-radius
First top border radius of header
accordion.header.first.border.width
--p-accordion-header-first-border-width
First border width of header
accordion.header.last.bottom.border.radius
--p-accordion-header-last-bottom-border-radius
Last bottom border radius of header
accordion.header.last.active.bottom.border.radius
--p-accordion-header-last-active-bottom-border-radius
Last active bottom border radius of header
accordion.content.border.width
--p-accordion-content-border-width
Border width of content
accordion.content.border.color
--p-accordion-content-border-color
Border color of content
accordion.content.background
--p-accordion-content-background
Background of content
accordion.content.color
--p-accordion-content-color
Color of content
accordion.content.padding
--p-accordion-content-padding
Padding of content

Unstyled#

Theming is implemented with the pass through properties in unstyled mode.