Client login
Case study 5 of 5

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.

Play the teaser
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-id

    Why 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?

    margin 23 · style 21 · alignSelf 14 · fill 5 · color 2 · fontSize 1

  • 17

    Buttons passing href

    What’s with all the hrefs?

A scan of the code turned what it found in 267 Buttons into questions for the team.React Scanner · Klue · 2024

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.

Five documents from the project show how the team worked

  • 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 props

    Styling overrides and link props

    1. variant247
    2. onClick235
    3. size167
    4. label156
    5. data-tracking-id128
    6. data-test-id113
    7. icon70
    8. leftSlot65
    9. disabled57
    10. rightSlot30
    11. dropContent27
    12. title26
    13. dropProps25
    14. margin23, a styling override or link prop
    15. style21, a styling override or link prop
    16. dropContentVisible20
    17. dropState17
    18. href17, a styling override or link prop
    19. loading17
    20. active15
    1. alignSelf14, a styling override or link prop
    2. a11yTitle13
    3. dropAlign11
    4. target8, a styling override or link prop
    5. key7
    6. tip7
    7. id6
    8. fill5, a styling override or link prop
    9. onMouseEnter4
    10. onMouseLeave4
    11. truncate4
    12. counter3
    13. badge2
    14. color2, a styling override or link prop
    15. autoCapitalize1
    16. download1, a styling override or link prop
    17. focusIndicator1
    18. fontSize1, a styling override or link prop
    19. referrerPolicy1, a styling override or link prop
    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.

    1. Button proof of concept
    2. Radio, Checkbox and Switch
    3. 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.

Nectar’s twelve buttons set three themes against four levels of emphasis.Nectar · Klue
  • 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.

Nectar’s Radio, Checkbox and Switch extend Mantine’s components and take their colours from Klue’s tokens.Nectar · Klue · 2025
Labels name every part of Nectar’s navigation component.Nectar · Klue
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

  1. Figma

    Designers set the tokens in Tokens Studio.

  2. JSON

    Tokens Studio exports them as one file.

  3. Token package

    The file builds into JavaScript, CSS variables and SCSS.

  4. Mantine theme

    The package sets the theme’s colour, spacing, radius and type.

  5. Component styles

    Each component reads the theme and the variables.

Design tokens ran in one chain from Figma to every component.Nectar · Klue
  1. Primitive

    The primitives worked well.

  2. Semantic

    Each name held a copied value.

    A change to a primitive didn’t flow through to the names.

  3. Component

    Each component kept its own defaults and sizes.

    A lint rule held the Button to these four styles and locked its radius.

The primitive tier worked, and the semantic names held copied values that a change to the palette couldn’t reach.Nectar · Klue
.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);
  }
}
The Checkbox takes each of its states from a Klue token.Nectar · Klue · 2025

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.

Sixty-three button variants in four components gave way to twelve in one.klue-ui and Nectar · Klue