-
This week I updated my first app with the latest 19 both Angular and PrimeNG. I’m having difficulty in getting the theme completely configured. I’ve only found this article 'Dark theme switch in Angular with PrimeNG 18 and Tailwind', the PrimeNG Theming documentation and the PrimeNG source on github. I've had some progress, but I'm currently stuck on the setting the background and text colors of the dialog header and footer (see bottom of code). This is what I've placed in my app.component called from the constructor:
I've created a StackBlitz working example, a variant of dialog docs. With this example, one can see that the content color has been changed to blue-50, but the header and footer was not changed to blue-100 as I have configured. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The default PrimeNG dialog theming configuration is as follows:
My translation of the situation is that my override of theming configuration is limited to what is in the above default configuration. That is to say, since .dialog-header background is not in the default, therefore one needs to use SCC to configure the background values. In my toggle of theming, I set the following data attribute in index.html:
I use the data-color-scheme data attribute in the style.css. My style.css is as follows:
I use a service to toggle the theme as follows:
|
Beta Was this translation helpful? Give feedback.
The default PrimeNG dialog theming configuration is as follows: