Making the right choice the easy one, for Klue.
Nectar
Our co-founder was Klue’s director of design from 2022 to 2025 and ran this project there with its design system lead.
Klue rebuilt its design system as Nectar after a code scan and a survey showed its designers and engineers working around the old one. Its design system lead and its director of design ran the project through one intensive quarter, and Nectar became the library for all new front-end work at Klue.
- Company
- Klue
- Place
- Vancouver, BC
- Sector
- Software
- Years
- 2024 to 2025
- What Klue’s team built
- A component library rebuilt on Mantine, design tokens that run from Figma into code, a Button named for what it tells the user and a plan to move the product over one component at a time
- Design system lead
- Jamie Totten
- Design direction
- Adam Bognar, Director of Design at Klue
- System contributions
- Travis Kirton & Vira Romanko
- Teaser film
- Concept and key frames by Adam Bognar
- Tools
- Figma, Tokens Studio, Storybook and React Scanner
Outcomes
Variants across Klue’s product fell by 54 percent.
Delivery on the work Klue tracked sped up by about 30 percent.
Customer complaints about the interface dropped by 62 percent.
App Shell holds the product together. Its sidebar marks the page someone is on, and the page changes with each click.
Nectar’s library held32finished components for Klue’s teams to build with.
Password Input keeps the typing private. The button shows its progress, and an Alert confirms the change.
Multi Select keeps every choice on screen. A topic someone ticks joins the field as a pill, and its ✕ takes it out again.
Switch turns a setting on or off. Its thumb slides across and the track takes the colour.
Segmented Control switches the view. Its highlight slides to the option someone picks.
Badge comes in 21 styles. Each of its seven colours has three versions.
What they needed
Klue makes competitive-intelligence software in Vancouver, and by 2024 most of its product ran on a design system called klue-ui. Teams used it on nearly every screen, and overrides and one-off components kept piling up around it.
React Scanner<Button>267 instances
139 of 267
Buttons without a
data-tracking-idWhy are there so many instances without
data-tracking-ids?70
Buttons with a variant named for a place
Why does a button need to know it’s in a
form?55
Buttons with styling overrides
How come there are so many style modifications?
margin23 ·style21 ·alignSelf14 ·fill5 ·color2 ·fontSize117
Buttons passing
hrefWhat’s with all the
hrefs?
The survey found two reasons people worked around the system.
An anonymous survey asked Klue’s designers where they hesitated and its engineers where they overrode the system. Teams were under heavy pressure to ship, and klue-ui took so long to learn that people fell back on building what they already knew.
Klue needed a system that made the right component the quickest one to find, for designers in Figma and for engineers in code. It had to arrive while the product kept shipping, with no rewrite of the app.
What Klue’s team did
Klue’s design system lead and its director of design gave the project one intensive quarter, and the company’s product designers and engineers shaped it with their feedback along the way. They set one goal, to make the right choice easy. The plan aimed to halve the variants across the library and cut complaints about the interface by a tenth.
Anonymous surveyDesign and engineeringQ3 2024
Designers Decision fatigue
- Where do you hesitate?
- Where do you go off-system, and why?
Engineers Implementation friction
- Where do you override?
- Where do the APIs not match what you’re trying to do?
The team asked first. An anonymous survey asked designers about decision fatigue and engineers about the friction of building with klue-ui.Survey · Klue · 2024 React Scanner
<Button>267 instances39 propsStyling overrides and link props
The code answered too. React Scanner counted how often each of the Button’s 39 props appeared across 267 instances, and the overrides showed up in red.React Scanner · Klue · 2024 Make the right choice easy.
50%
fewer component variants
10%
fewer UI complaints from product and customers
1
Button, powered by tokens, as the proof of concept
Audit: survey and scan, Q3 2024
Button proof of concept, Q4 2024
Nectar: Radio, Checkbox, Switch, Q1 to Q2 2025
Migrate component by component, Q1 to Q2 2025
One goal set the plan. The goals asked for half the component variants and a tenth fewer complaints, with one Button built on tokens as the proof.Klue · 2024 Each level of emphasis has a job. The Figma library gives every emphasis a written purpose, such as never more than one high-emphasis button on a screen.Figma · Klue klue-uiIts existing usage narrows as screens move over.
Screens migrate component by component.
NectarIt takes all net-new work from day one.
- Button proof of concept
- Radio, Checkbox and Switch
- 32 components
Nothing had to stop. Nectar took the new work while klue-ui’s share narrowed, one component at a time, with no rewrite of the app.Klue · 2025
The team proved the approach on the Button first.
Each variant of the new Button names what it tells the user. It comes in three themes and four levels of emphasis, and a written rule says when to use each one, such as one high-emphasis button to a screen.
The Button’s 63 variants across four components became 12 in one.
The Button’s CSS shrank from 542 lines to 106.
Mantine gave the library a sturdier base.
klue-ui sat on Grommet, and years of customization had stretched it thin. The team rebuilt the library on Mantine, which needed far less customization and handled much of the accessibility work. Design tokens from Figma set Mantine’s colours, spacing, radius and type.
See how the tokens, the theming and the accessibility worked underneath.
Tokens ran in one chain from Figma to every component.
Designers set the tokens in Tokens Studio, which exported them as one file. The file built into JavaScript, CSS variables and SCSS and set the Mantine theme, and every component read the theme and the variables.
The tiers worked in part.
The primitive tier held a real palette, spacing, radius and type scale, and it worked well. The semantic tier had the right names, such as primary, error and disabled, and each one held a copied value with no link to a primitive, so a change to a primitive didn’t flow through. Linking those names was the next job on the list.
One theme served one product.
Nectar shipped with a light theme for one brand, which suited Klue. More brands would have needed the semantic tier working as references first.
Mantine covered much of the accessibility work.
Four gaps were left to close:
- Screen readers didn’t hear errors announced.
- Nobody had automated the accessibility checks yet.
- Motion ignored the reduced-motion setting.
- The focus ring wasn’t a token.
Design
Code
Figma
Designers set the tokens in Tokens Studio.
JSON
Tokens Studio exports them as one file.
Token package
The file builds into JavaScript, CSS variables and SCSS.
Mantine theme
The package sets the theme’s colour, spacing, radius and type.
Component styles
Each component reads the theme and the variables.
Primitive
The primitives worked well.
Semantic
Each name held a copied value.
A change to a primitive didn’t flow through to the names.
Component
Each component kept its own defaults and sizes.
A lint rule held the Button to these four styles and locked its radius.
.input {
border: var(--tokens-borderWidth-small)
solid var(--tokens-color-neutral-700);
&:checked {
border-color: var(--tokens-color-primary-800);
background-color: var(--tokens-color-primary-800);
}
&:disabled {
border-color: var(--tokens-color-neutral-500);
background-color: var(--tokens-color-neutral-500);
}
}Four calls shaped the system.
The Button went first.
Leadership needed proof that a rebuild was worth it, so the team started with the component people misused most.
Nectar went in beside klue-ui.
Engineering worried that a new system meant rewriting the app. New work used Nectar from the first day, and existing screens moved over later.
An engineer made the case for Mantine.
The team weighed several foundations. One of its engineers pushed hard for Mantine, and the choice held up.
The names describe each button’s job.
A variant once named for a form said where it belonged. Standard at high emphasis tells the user the same thing anywhere in the product.
A guild kept Nectar easy to use.
A guild of designers and engineers looked after Nectar and held office hours for anyone building with it. New components joined through a set path that ran partly on automation.
What changed
Variants across Klue’s product fell by 54 percent. Engineers told the team that components had become quicker to build, and delivery on the work Klue tracked sped up by about 30 percent. Customer complaints about the interface dropped by 62 percent.
Nectar became the library for all new front-end work at Klue, and the company built its brand refresh and its vision for the product on it.