Dialog Theming

Theming documentation for Dialog component

Styled#

CSS Classes#

List of class names used in the styled mode.

classNamedescription
p-dialog-maskClass name of the mask element
p-dialogClass name of the root element
p-dialog-trigger-buttonClass name of the trigger button element
p-dialog-headerClass name of the header element
p-dialog-titleClass name of the title element
p-dialog-header-actionsClass name of the header actions element
p-dialog-maximize-buttonClass name of the maximize button element
p-dialog-close-buttonClass name of the close button element
p-dialog-contentClass name of the content element
p-dialog-footerClass name of the footer element

Design Tokens#

List of design tokens.

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

Unstyled#

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