Project Brief
A themable Figma design system: one component library that takes on any client’s brand and keeps WCAG AA contrast in every theme. It began as a fix for one client’s growing team and became the system Viagio’s own designers prototyped with.
This started as a proposal to a client. They were adding designers to a growing team, and three problems were showing up at once. The same button or form was being drawn several different ways. New designers had no shared library to start from. And engineers were receiving slightly different specs for what was meant to be the same component.
I proposed a design system and built it. It worked well enough that Viagio asked me to replicate it for internal use, so our own design team could produce prototypes quickly. I created that system and maintained it.
Built to change brands
An agency’s design system has a requirement a product company’s does not. It has to serve many clients, each with their own brand. If every new client meant restyling a library by hand, the system would save nothing.
So I structured it around the swap. I split color into two groups. Color variants — the primary, secondary, and accent colors — change with every theme. Color constants — the whites, blacks, and grays — never do. Components referenced those shared color and type styles instead of fixed values, and I used the Themer plugin in Figma to switch them. Change a client’s palette, and the whole library updates with it.
The system included semantic colors, a full typography scale, an icon set, and spacing and grid definitions. On top of those sat responsive core components, page templates for common layouts, and written guidance on when to use each piece.



Accessibility that survives a theme
Swapping in a client’s colors created a problem the swap itself could not solve. A brand color chosen for a logo is not chosen for legibility, and white text on a brand-colored button often failed contrast.
I checked themes against WCAG AA using WebAIM’s Contrast Checker and found a pattern. On certain backgrounds, white button text only passed at a heavier weight. The reason is in the standard itself: AA requires a contrast ratio of 4.5 to 1 for normal text but only 3 to 1 for large text, and bold text qualifies as large at a smaller size.
I built that into the system as rules, so the answer did not depend on each designer remembering to check. Every project that used the library inherited them.



Results
- A reusable, themable design system that Viagio’s design team used to build prototypes and hand off to engineers, who built from its specs.
- Components that meet WCAG AA, with contrast rules built into the system.
- Used on client work including the Medical Case Management system and the StoneAge apps, the second of which shipped on three platforms in six weeks.
Learnings
- Accessibility belongs in the system. Building the contrast rules in once meant every project inherited them, where before each designer had to check by hand.
- A design system is never finished. It kept changing as our needs changed and as I found better ways to organize it.
- It needs other people’s input. Feedback from fellow designers and engineers shaped it more than any decision I made alone.
