Drawer Theming

Theming documentation for Drawer component

Styled#

CSS Classes#

List of class names used in the styled mode.

classNamedescription
p-drawer-maskClass name of the mask element
p-drawerClass name of the root element
p-drawer-trigger-buttonClass name of the trigger button element
p-drawer-headerClass name of the header element
p-drawer-titleClass name of the title element
p-drawer-close-buttonClass name of the close button element
p-drawer-contentClass name of the content element
p-drawer-footerClass name of the footer element

Design Tokens#

List of design tokens.

tokenCSS Variabledescription
drawer.background
--p-drawer-background
Background of root
drawer.border.color
--p-drawer-border-color
Border color of root
drawer.color
--p-drawer-color
Color of root
drawer.shadow
--p-drawer-shadow
Shadow of root
drawer.header.padding
--p-drawer-header-padding
Padding of header
drawer.title.font.size
--p-drawer-title-font-size
Font size of title
drawer.title.font.weight
--p-drawer-title-font-weight
Font weight of title
drawer.content.padding
--p-drawer-content-padding
Padding of content
drawer.footer.padding
--p-drawer-footer-padding
Padding of footer

Unstyled#

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