Design Systems & Architecture
Government Design System Used by 400+ Projects
Built the official component library for a national social security institute. It's used across 400+ government projects. The hardest part wasn't building the components - it was solving the HTTP interceptor nightmare and making Web Components play nice with Angular.

Government websites are a mess. Every agency builds their own buttons, their own dropdowns, and half of them fail basic accessibility audits. I was part of the team that built the official component library for a national social security institute. It's now used across 400+ government projects, forcing WCAG 2.1 AA compliance by default.
01 / Why this matters
Forcing accessibility across 400+ projects
When you build a component library for government use, accessibility isn't a nice-to-have - it's the law. Italy has strict WCAG 2.1 AA requirements for public services. Before the library, every team was building their own dropdowns and dialogs, and most of them were completely unusable with a keyboard or screen reader.
The whole point of the library is that if you use our components, you get accessibility for free. Every dialog, every autocomplete, every dropdown is keyboard-navigable and screen-reader-friendly out of the box. When 400+ projects use your library, that's 400+ projects that are now accessible by default. That's the real impact.
02 / The architecture
Web Components with Angular wrappers
Here's the problem: we had teams using Angular 11, Angular 12, Angular 13, and some still on AngularJS. We couldn't just build an Angular library because it would only work for one version. We needed something framework-agnostic.
The solution: build the core components as Web Components using Lit. Web Components are just custom HTML elements - they work in any framework, any version. But Web Components don't integrate well with Angular's reactive forms, change detection, and dependency injection. So I wrote dedicated Angular wrapper libraries for each Angular version we supported. The wrappers handle all the Angular-specific integration (reactive properties, form control integration, event payloads), while the underlying Web Component stays the same.
It's more work upfront, but it means a team on Angular 11 and a team on Angular 14 can both use the exact same component, with the exact same API, and get the exact same accessibility guarantees.
03 / The war story
The HTTP interceptor nightmare
Here's a bug that took me two weeks to figure out. Our library needed to fetch an SVG icon from a CDN. Simple, right? But the host application (the government app using our library) had an HTTP interceptor that added a specific auth token to every single request. Suddenly, our library's CDN request was failing with a 401 Unauthorized because it was carrying the host app's auth token, which the CDN didn't recognize.
The problem: Angular's HttpClient applies interceptors globally. There's no built-in way to say "don't apply interceptors to this specific request." I needed a way for the library to make HTTP requests without being affected by the host app's interceptors.
The solution: I used Angular's `HttpBackend` directly instead of `HttpClient`. `HttpBackend` is the lowest-level HTTP API in Angular - it bypasses all interceptors entirely. Now our library's internal requests (fetching icons, loading translations) work perfectly regardless of what interceptors the host app has configured. It's a tiny detail, but it saves every consuming team hours of debugging weird 401 errors.
Evidence & further reading