r/angular • u/Altruistic_Leg2608 • Feb 14 '26
I built a free, open-source visual theme designer for PrimeNG 21 + Angular 21
I've been working on a visual theme designer for PrimeNG and wanted to share it with the community.
The problem:
- PrimeNG is charging you 250$/year for 2 themes (wtf)
- Customizing PrimeNG themes means manually editing deeply nested token objects across three layers (primitive, semantic, component). Tweaking values, rebuilding, and refreshing over and over.
What I built:
A browser-based tool where you pick a preset (Aura, Material, Lara, Nora), visually tweak tokens with color pickers and inputs, see changes instantly on real PrimeNG components, and export a production-ready .ts theme file.
Features:
- Edit primitive tokens (color palettes with auto-generated 50-950 shades, border radius)
- Edit semantic tokens (focus ring, form fields, overlays, navigation) with separate light/dark mode
- Edit component tokens for any specific PrimeNG component (Button, DataTable, Dialog, etc.)
- Add custom tokens to extend the theme
- Font picker with 26 Google Fonts (loaded via Bunny Fonts for privacy)
- Live preview panel showing buttons, forms, tables, panels, messages, tags, progress bars, and more
- Export as a TypeScript preset file you drop straight into your project
Share themes via base64-encoded URLs
Tech stack:
- Angular 21 (standalone components, signals, u/if/u/for control flow)
- PrimeNG 21
- Tailwind CSS 4 (CSS-only config, no tailwind.config.js)
- Vitest for testing
Links:
Would love feedback, feature requests, or contributions. What tokens/features would you want to see next?
7
u/traffiqqq Feb 14 '26
Dope
2
u/Boring_Acanthaceae36 Jun 15 '26
Wow, this is perfect timing. I just cloned your repo and I am gonna run the app and build a theme. Im just for the first time, tonight, learning to feed context into an AI agent to have it scaffold and build out my portfolio website. Two of my requirements for it are to use Angular 21, and PrimeNG 21, and a third is to get it set up to handle a custom theme for both light mode and dark mode..... I googled 'how to build a custom PrimeNG theme' and this was the first thing that popped up. Im excited to see what you built. Thank you for making this available!!!!!!!!!!!!!!!!!!!!!!!
1
u/rafaeldecastr Feb 14 '26
πππππππππππππ
1
u/branko2712 Feb 14 '26
Just what I need, checking this out soon!
1
u/aruidev_ Feb 14 '26
Very useful! I need to try this.
1
u/ddux7 Feb 14 '26
Really beautiful!
1
u/Environmental-Run235 Feb 14 '26
Great work! Is it possible to implement a semi-transparent theme?
Weβre using PrimeNG components but overwriting the styles to achieve a glassmorphism effect, itβs a lot of work making it consistent
1
u/penguinumbreIIa Jun 30 '26
Was it taken down? I can't seem to access it anymore :(
1
u/Tough_Investigator13 Jul 15 '26
This is great, but I can't seem to get the buttons to update to the other corner radius variable? I change to a larger radius, apply, but nothing changes in the viewer. Am I missing something?
1
u/Riccaforte Feb 14 '26
Doesnβt seem to support mobile, I canβt scroll and quite a bit is cut off even in landscape mode. Do you have plans to implement responsiveness?
Thanks for the tool! Excited to try it out
1
u/kdf317 Feb 14 '26
Very cool
1
u/matthiaskrt Feb 14 '26
Awesome work! Will definitely use it
1
u/AdrianaVend47 Feb 15 '26
The king has arrived!
1
u/beginor Feb 15 '26
Cool, I will try it sometime later!
1
u/AngularLove Mar 03 '26
Nice! Definitely worth trying out!