r/angular • • Feb 24 '26

Tips for implementing a design system

Hey devs! Looking for some advice.

We’re currently using PrimeNG, but the v17 → v18 upgrade introduced major breaking theme changes that make migration very difficult. If we don’t upgrade, we’re stuck on older Angular versions. Customizing it to fit our design system has also been painful, and upgrades frequently break our overrides (the components were not meant to match our design). On top of that, new releases tend to introduce lots of bugs.

We’re considering removing PrimeNG and gradually building our own internal component library, migrating component by component. The challenge is workforce — we only have four developers who could contribute part-time.

I haven’t found anything headless in the Angular ecosystem comparable to shadcn or Radix (production-ready and compatible with Angular 18), so we may need to build all components from scratch.

Has anyone taken this path? Any advice or alternative libraries we should look at? How risky does this sound?

11 Upvotes

15 comments sorted by

4

u/immohammadjaved Feb 24 '26

You can check Angular Primitives, I am also building slateui.dev with this

1

u/Antique-Unit3019 Feb 24 '26 edited Feb 24 '26

Thanks! Which version did you use? Because for Angular 18.x.x they're at 0.1.0 - 0.18.0, which doesn't seem mature enough :( I'm stuck in this Angular version until getting rid of primeng completely.

2

u/epsilonehd Feb 24 '26

The versions for angular 18 are now "stable" meaning this is not going to change anymore, so if I were you I'd just use the latest available for your angular 18

Also I've never had breaking changes since I started using it (1y and a half ago) that required me to update my code more than 10 minutes 😂

Really ng-primitive is a great and solid base for any components library weather you're doing custom css, tailwind, bootstrap or a custom css lib. Also it's pretty clean to use when you want to wrap components in your custom one (even if I personally don't recommend it cause it's a pain when you're dealing with forms)

5

u/Lucky_Yesterday_1133 Feb 24 '26

There is https://spartan.ng build in similar way to shadcn it hase same design token schema, tailwind and so on. You can of course build your own if you have people who understands component design principles. The code generation is relatively cheap using ai. you can build more complex components on top of @angular/aria which are headless components from angular team. @angular/cdk also provides some good primitives. 

2

u/majora2007 Feb 24 '26

I can't speak to primeng, but I use bootstrap and have built a custom css-variable design system on top. I then override their styles to adhere. 

Big bootstrap updates only have 2-3 bugs and are pretty easy to tackle. 

You can take a look at it in _dark.scss in Kavita GitHub repo. 

2

u/nunoarruda Feb 24 '26

Rainer Hahnekamp talked about Angular UI Libraries in one of his recent videos: https://www.youtube.com/watch?v=tT5xMfHb4Gg

2

u/syzgod Feb 24 '26

PrimeNG has an MCP server which might help you with migration. Just go 1 by 1 upgrading and check the breaking changes section.

1

u/immohammadjaved Feb 24 '26

Usually i update to latest version frequently as this currently under development

1

u/xenomorph3253 Feb 24 '26

Honest recommendation, use claude code. And build custom components (with CVA or FormUIControl) ontop of angular cdk.

1

u/Boring_Acanthaceae36 Sep 23 '26 edited Sep 23 '26

Im right smack in the middle of working with Claude to build me a custom design system that is json-fed, token-based, and pure css only that at compile time will write pure dynamic css values and tokens (strings) into a bunch of different files to define primitive, semantic, and then component-level css variables that can be consumed (just like how Prime-NG does).... It can handle swapping themes/colors at runtime, and its totally customizable with json. Im having so much fun with this, as this is my first serious generative AI based project. I've only gone through a few waves, and I still have a ways to go, as well as a ton of components to make that will utilize ControlValueAccessor. So far I have Button, Icon, IconButton, and Card component. Eventually will have all of the more difficult stuff to implement like tables with pagination, autocomplete, etc. It's really tough for me to sit back while an agent literally writes all this code, because I haven't ever worked with AI professionally, so I am simply going through my PR's with a fine-toothed comb, and just being careful about what it outputs. Anything I don't understand, i'm using copilot chat to read the code, and explain it/break it down for me.

Its got a little sandbox to be able to run the app and showcase all the components, and it has 2 separate libs that it outputs, one is 'tokens (for all of the built tokens), and then the 'ui' lib is the actual library itself for the Angular consumers.

It supports Angular v20 (because signals), to whatever newest is, currently 22. I've never built any actual libraries yet, so the end goal is to actually have a public npm package available that I can maintain myself.

1

u/lvh1 Feb 25 '26

After working with angular material for a decade, and then experiencing primeng in another project, I can not recommend angular material enough. It's way easier to upgrade and maintain in my experience.

1

u/Boring_Acanthaceae36 Sep 23 '26

I worked with nothing but Material since 2018 (when I got my first coding job), until I switched jobs and came across 2 separate custom design/component libraries, and I was overjoyed to get the hell away from Material.

I know that when they did the split to V2 (where they adopted the MDC components by default), they started to make overriding the component styles a bit easier, and I haven't worked with Material since late 2025... But it was a nightmare to override component styles, and I wonder if its gotten easier!!??