Imported Tailwind and config to mix it with PrimeNG

This commit is contained in:
AdamBtech
2025-05-19 16:55:11 +02:00
parent 98cc83148d
commit eb6ab8f07a
5 changed files with 626 additions and 26 deletions

View File

@@ -1,12 +1,24 @@
import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';
import { ApplicationConfig } from '@angular/core';
import { provideRouter } from '@angular/router';
import { routes } from './app.routes';
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
import { providePrimeNG } from 'primeng/config';
import Aura from '@primeng/themes/aura';
import { routes } from './app.routes';
import Aura from '@primeng/themes/aura'; // Choisissez votre thème
export const appConfig: ApplicationConfig = {
providers: [provideZoneChangeDetection({ eventCoalescing: true }), provideRouter(routes), provideAnimationsAsync(),
providePrimeNG({ theme: { preset: Aura } })]
providers: [
provideRouter(routes),
provideAnimationsAsync(),
providePrimeNG({
theme: {
preset: Aura,
options: {
cssLayer: {
name: 'primeng',
order: 'tailwind-base, primeng, tailwind-utilities'
}
}
}
})
]
};