A small Angular app built with PrimeNG: a top bar with a dark mode switch, a panel that changes the preset and the surface colors, and a dashboard with a chart, a product table and a few stat cards. It uses styled mode with the Aura preset.
npm install
npm startThen open http://localhost:4200.
src/app/app.config.tssets up PrimeNG withprovidePrimeNG, the Aura preset and the.p-darkdark mode selector.src/app/components/app.config.tsis the panel that changes the preset and the surface colors withupdatePresetandupdateSurfacePalette.src/app/service/layout.service.tsswitches dark mode.
Read more in the PrimeNG installation guide.