Skip to content

Theming - Changing background color of dialog headers and footers #3472

Answered by PHuhn
PHuhn asked this question in PrimeNG
Discussion options

You must be logged in to vote

The default PrimeNG dialog theming configuration is as follows:

import { DialogDesignTokens } from '../../../../types/dialog';

export default {
    root: {
        background: '{overlay.modal.background}',
        borderColor: '{overlay.modal.border.color}',
        color: '{overlay.modal.color}',
        borderRadius: '{overlay.modal.border.radius}',
        shadow: '{overlay.modal.shadow}'
    },
    header: {
        padding: '{overlay.modal.padding}',
        gap: '0.5rem'
    },
    title: {
        fontSize: '1.25rem',
        fontWeight: '700'
    },
    content: {
        padding: '0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}'
    },
    footer: {
   …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by PHuhn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant