Ultima Angular 19 PrimeNG 19 #3271
Replies: 2 comments
-
rimeNG({ What preset do I have to set in ultima theme? Or what alternative approach do i need, to fix primeng.min.css. Please Guide. In PrimeNG 19, the way themes are applied has indeed changed compared to previous versions. The primeng.min.css file no longer exists in the same way, and themes now need to be imported using the new configuration format. Solution Overview: Using the Ultima Theme in PrimeNG 19: Since you are using the Ultima theme and want to keep the look and feel similar, you should ensure that you import the correct Ultima theme and apply it properly within the new theming structure in PrimeNG 19. For example, if you're downloading a custom Ultima theme from a source, you can add it to your styles.scss like this: Update your appConfig like this: export const appConfig: ApplicationConfig = { Handle Custom Styling (Optional): If you have any custom styles specific to Ultima that were previously in the primeng.min.css, you’ll need to port those styles over to your current application. This may include any custom CSS or SCSS that was part of Ultima’s design. Summary: Ensure the Ultima theme is installed and available. |
Beta Was this translation helpful? Give feedback.
-
Hello, |
Beta Was this translation helpful? Give feedback.
-
I am trying to update ultima version 17 to Angular 19. For Minimum impact, I removed some Pages to to reduce my impact and focused on layout components only. That was done successfully by changing components to standalone.
Now I am trying to update PrimeNG version.
We had primeng.min.css in styles.scss file like this;
@import "../node_modules/primeng/resources/primeng.min.css";
But After updating to Primeng 19, this folder doesn't exist. As per PrimeNG Documentation we have have to initialize theme like this
import { ApplicationConfig } from '@angular/core';
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
import { providePrimeNG } from 'primeng/config';
import Aura from '@primeng/themes/aura';
export const appConfig: ApplicationConfig = {
providers: [
provideAnimationsAsync(),
providePrimeNG({
theme: {
preset: Aura
}
})
]
};
What preset do I have to set in ultima theme? Or what alternative approach do i need, to fix primeng.min.css.
Please Guide.
Beta Was this translation helpful? Give feedback.
All reactions