Panel Theming

Theming documentation for Panel component

Styled#

Panel CSS Classes#

List of class names used in the styled mode.

classNamedescription
p-panelClass name of the root element
p-panel-headerClass name of the header element
p-panel-titleClass name of the title element
p-panel-header-actionsClass name of the header actions element
p-panel-toggle-buttonClass name of the toggle button element
p-panel-contentClass name of the content element

Design Tokens#

List of design tokens.

tokenCSS Variabledescription
panel.background
--p-panel-background
Background of root
panel.border.color
--p-panel-border-color
Border color of root
panel.color
--p-panel-color
Color of root
panel.border.radius
--p-panel-border-radius
Border radius of root
panel.header.background
--p-panel-header-background
Background of header
panel.header.color
--p-panel-header-color
Color of header
panel.header.padding
--p-panel-header-padding
Padding of header
panel.header.border.color
--p-panel-header-border-color
Border color of header
panel.header.border.width
--p-panel-header-border-width
Border width of header
panel.header.border.radius
--p-panel-header-border-radius
Border radius of header
panel.toggleable.header.padding
--p-panel-toggleable-header-padding
Padding of toggleable header
panel.title.font.weight
--p-panel-title-font-weight
Font weight of title
panel.content.padding
--p-panel-content-padding
Padding of content
panel.footer.padding
--p-panel-footer-padding
Padding of footer

Unstyled#

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