№ 02Case study· 13 min read
Design systemDesign tokensDesign to codeB2B SaaS · AI

UBIX turns raw data into predictions without code. As lead design system designer, I led five designers and worked with 15 front-end engineers to build AIgnite in about ten months: tokens in Figma, pushed by Tokens Studio to GitHub and built into the React library. Design consistency rose 50%.

Year
2023–25
Role
Senior Product Designer, design system lead
Company
Ubix Labs (U2 Science Labs)
Sector
B2B SaaS
Platform
Web app
Status
AIgnite 1.5
  1. The problem

    Six workspaces had grown on their own, so the same action could look and behave differently in each, and every new screen started from scratch.

  2. The insight

    A UI kit couldn't fix that. Rules could: tokens, a contract between Figma and code, and a review for every change.

  3. The answer

    AIgnite, built in about ten months by five designers and 15 front-end engineers: Figma variables pushed by Tokens Studio to GitHub and built into the React library. Design consistency rose 50%.

Overview

Problem

UBIX takes analysts from raw data to a deployed prediction without code, across DataSpace, ActionSpace, ModelSpace, SolutionSpace, ProductionSpace and ChatUBIX. Each workspace was built fast, by different hands, so the same button, table or sidebar could behave differently from one to the next, and new users had more to learn.

Solution

AIgnite: one system with rules on both sides of the handoff. Three layers of tokens in Figma, components set from the properties panel, and a pull request for every token change, so developers see it in Storybook straight away.

Team
5 designers (I led) · 15 front-end engineers
Timeline
About 10 months, to version 1.5
Scope
6 workspaces · 193 tokens · 44 text styles
Tools
Figma variables · Tokens Studio · GitHub · Storybook
Handoff
A React component library
My role

Design system lead, with a team of five

I led AIgnite, UBIX's design system: a team of five designers, 15 front-end engineers building from it, and about ten months from the first token to version 1.5. In the words of our VP of Data Science, it made usability and consistency part of the growth strategy.

What I owned
  1. 01The token architecture and the component library
  2. 02The Figma → Tokens Studio → GitHub pipeline, with the front-end team
  3. 03Naming rules, documentation and contribution
  4. 04Design reviews with the five designers on the team
  5. 05UX research for ChatUBIX, which lifted engagement 18%
  6. 06A key feature that helped secure a strategic deal with Oracle

At a glance

5
designers in the team I led
15
front-end engineers on one React library
~10
months to version 1.5
6
workspaces on one system
193
design tokens in Figma
380
Button variants behind one component

Impact

50%
more consistent design across the platform
40%
less time to train new users
Up to 40%
higher team productivity
15
front-end engineers building from one React library
01 · Discover

Six workspaces, six dialects

UBIX takes analysts from raw data to a deployed prediction without code, with generative AI built in. Each workspace grew on its own, with its own idea of what a button is. Then the July 2023 refresh, a new navigation and a brand-new visual style, had to land in all six at once.

the product

Six workspaces, one journey

Five steps from raw data to a live prediction, and an assistant you can ask at any of them.

  1. 01Bring the data in

    DataSpace

    Connect a source or upload a file, then shape it into datasets.

    • Shopify
    • Stripe
    • Salesforce
    • BigQuery
  2. 02Get it ready

    ActionSpace

    Clean, join and reshape data, build features, then train a model and watch it run.

    • Clean
    • Join
    • Train
    • Monitor
  3. 03Keep the work together

    ModelSpace

    Workspaces of solutions, from forecasts to clustering, each with its status.

    • Forecasts
    • Regression
    • Clustering
  4. 04Build the app

    SolutionSpace

    Drag layouts and widgets into an app anyone can use.

    • Layouts
    • Widgets
    • Charts
  5. 05Run it for real

    ProductionSpace

    Scheduled jobs with their last run, duration and state.

    • Success
    • Running
    • Not ready
    • Failed

before and after

Measured in the Figma files

Archived screens from before AIgnite next to the new developer-handoff screens, counted in Figma. Colour binding is still partial: that's the first thing 2.0 fixes.

Text set with a shared text style

  • ActionSpace46%91%
  • ProductionSpace0%95%
  • DataSpace88%89%

Colours bound to a variable or style

  • ActionSpace56%64%
  • ProductionSpace0%54%
  • DataSpace30%41%

Insight

The problem wasn't missing components. It was missing agreement: what a button is called, how big “large” is, and what hover means.

One button, before and after

The Execution CTA set, still in the file, next to the AIgnite 1.5 Button.
PropertyExecution CTAAIgnite 1.5 Button
Sizes24, 32, 40, 48, 56 pxsm, md, lg, xl, xxl
Purpose and lookOne list: Ghost, Filled, Borderless, Icon OnlyVariant (Primary, Secondary, Tertiary) × Type (Filled, Outline, Non Padding)
StatesDefault, Hover, Processing, Processing Complete, DisableDefault, Hover, Focused, Processing, Disable, plus Error, Success, Warning
Icon onlyA type of its ownA property of any button
Variants100380

the questions we asked

From questions to goals

  1. How might we · 1

    Make the same action look the same in every workspace?

    One part per job

    One Button, one table, one sidebar, set from the properties panel and never detached.

  2. How might we · 2

    Get a design change into code without a redline?

    Tokens as the single source

    Figma variables, pushed by Tokens Studio, built into CSS and TypeScript.

  3. How might we · 3

    Make dense data readable for everyone?

    Data-ready and accessible

    Tables in two densities, labelled contrast, and status that never relies on colour alone.

  4. How might we · 4

    Make the AI assistant feel like part of the product?

    AI states as components

    ChatUBIX and every long-running job get designed states, built like any other part.

how we worked

Explore, review, hand off, archive

About ten months, five designers and 15 front-end engineers, one way of working.

  1. 01Side by side, in one R&D file

    Explore

    Each designer explored in their own page, from charts to empty states, next to a shared board of chart references.

    • Explorations
    • Chart references
    • Empty states
  2. 02Before anything is final

    Review

    A design-review page where new screens were checked against the system.

    • Design review
  3. 03One file for 15 engineers

    Hand off

    Final screens for every workspace live in a developer-handoff file, built from AIgnite parts.

    • One page per workspace
  4. 04Old screens out of the way

    Archive

    Replaced designs move to archive pages, so nobody builds from an old screen.

    • Archive pages
02 · Design

Rules first, then the parts

Foundations, then tokens, then components: the order developers would use them in.

Five principles, each proven by a component

Principle 01: Configurable

One Button covers every case from the properties panel: no detaching, no local copies.

proof → 380 variants behind one component

Principle 02: Scalable

Four layout grids and one set of parts cover desktop and iPad, with or without a sidebar and drawer.

proof → 4 grids, one library

Principle 03: Accessible

Every colour step is labelled for AA or AAA, and every interactive part has a focused state.

proof → 88 labelled colour steps

Principle 04: Data-ready

Tables in two densities with ten cell types and status chips, plus a 12-colour chart palette.

proof → a 143-part table library

Principle 05: AI-native

The assistant's states are components too, so ChatUBIX behaves the same everywhere it appears.

proof → an AI job in ten designed states

From foundations to screens

The library in five levels, each built only from the level before it.
LevelWhat it holds
Foundations8 colour ramps, a chart palette, 44 text styles, 33 spacing steps, 4 layout grids, 10.6k icons
AtomsIcon, label, hint, avatar, status dot
MoleculesButton (380 variants), field, dropdown, table cells in 40 and 48 px, pagination
OrganismsData table (143 parts), spaces navigation, workspace sidebars, ChatUBIX, toaster
ScreensMain and app grids, DataSpace connectors, ModelSpace projects, job monitor, dashboards

How a name is built

Name things by what they're for. The 1.5 guidelines still show both generations: Orange.500 next to Primary.500, Blue.0 next to Secondary.600.
In FigmaIn codeThe rule
Color's/Primary/500--color-primary-500Family and role, then a step from 25 (lightest) to 900
Background/bg-brand--bg-brandA purpose token says what a value is for
Number Scale/Units/Spacer-08--space-08Spacing in pixels, on a 4 px grid
radius/md--radius-mdSizes as words, so the values can change
_check_iconsnot exportedAn underscore marks a private building block

token architecture

Three layers of tokens

  1. Base

    What values exist?

    162 primitives: 8 colour ramps of 11 steps, a chart palette, 33 spacing steps and the type scale.

  2. Purpose

    What is a value for?

    Tokens that point at a base value, like bg-brand → Primary/500, so a change happens once.

  3. Component

    Where is it used?

    Each part binds fill, label, icons and corners to tokens, never to a typed value.

try it

Rebrand UBIX in one click

Try it · rebrand the card
Brand colour
How it's built
--color-primary-500: #f3590c;--bg-brand: var(--color-primary-500);/* 6 components read --bg-brand */

6 of 6 parts updated · White text on UBIX orange: 3.4:1, AA Large only

Everything is UBIX orange. Pick another colour.

A demo built for this page with AIgnite's values. The contrast check is calculated live.

Foundations

8 colour ramps of 11 steps, 44 Inter text styles and a 4 px spacing scale with 33 steps.

try it

380 variants, a handful of props

In Figma, a designer needs a variant for every look they might place. In code, a developer only sets what they choose. Pick any combination and see both.

Try it · every combination here exists in the Figma file
Variant
Type
State
Size
Icon

FigmaVariant=Primary, Type=Filled, State=Default, Size=md, Icon=Default

React
<Button
  iconLeft={<Verified />}
  iconRight={<ArrowUpRight />}
>
  Button
</Button>

1 of 380 variants in Figma → 2 props in code

The defaults (primary, filled, md) are left out, so the everyday button is the shortest to write.

Every option uses the real colours and sizes from the Figma file. Crossed-out options don't exist there: Tertiary comes Filled only.

The Button, documented

Anatomy, states, sizes, variants and status, all set from the properties panel.

try it

The data table, 143 parts

AIgnite's hardest component has its own page: ten cell types in two row heights, four statuses, header variants and logos for 17 data sources. Switch the row height, or pick a cell type to find it.

Try it · the table library, rebuilt for this page
Row height
Find a cell type
SelectDatasetSchemaStart dateAvg. durationStatusActiveLogs
Shopify_live_ownerNoisy moons dataJul 12, 2023 10:53pm123355SuccessView logs
HubSpot_live_ownerHourly aggregated dataJul 12, 2023 10:53pm23456RunningView logs
Salesforce_quotesCredit card fraudJul 12, 2023 10:53pm3556Not ReadyView logs
Stripe_paymentsBaseline locationsJul 12, 2023 10:53pm12456FailedView logs

Rebuilt for this page from the AIgnite table library; the rows are the demo data used in the UBIX files.

ai-native

An AI platform spends a lot of its time thinking.So waiting got components too.

try it

Ten states of one AI job

The Execution chip tracks a job the assistant wants to run: ask, accept, run, then pass or fail. Around it sit a loading indicator in 32 variants, toasts in four tones, and a run state on every production job.

Try it · a simulation with the real states
Execution No: 3Started: 14:35, 12.22.23

filter_json_objectJSON object

filter_json_objectJSON object

Ended: —

FigmaStage=Open, Type=[Open] Ask

Press Accept Execute to run the job, or tap any state to see it.

Open
Closed

1 of 10 states seen

Open Ask

From the AIgnite file, with Figma's own variant names. The dataset steps come from the job monitor screen.

Accessible by default

Contrast

Labelled for AA or AAA

All 88 colour steps carry the text colour that passes on them, white or black.

Focus

One shared focus style

Every button and field has a focused state.

States

Documented once

Hover, focus, processing and disabled are defined once and used everywhere.

Colour

Never colour alone

Status always pairs colour with a word, and the chart palette works for colour-blind readers.

03 · Design to code

A design system is a set of rules, not a UI kit

Tokens travel from Figma to the React library through GitHub, so developers see a change the moment it's proposed.

how a change reaches developers

From a Figma variable to Storybook

Nothing reaches the product without a review, and nobody copies a value by hand. Pick a step, or let it play; the example is a patch to Primary/500.

01 / 06FigmaA designer changes a variable

Tokens in, CSS out

tokens/semantic.json
{
  "Background": {
    "bg-brand": {
      "$value": "{Color's.Primary.500}",
      "$type": "color"
    },
    "bg-brand-light": {
      "$value": "{Color's.Neutral.White}",
      "$type": "color"
    },
    "bg-Primary": {
      "$value": "{Color's.Primary.100}",
      "$type": "color"
    },
    "bg-Primary-light": {
      "$value": "{Color's.Primary.800}",
      "$type": "color"
    }
  }
}
Exported from the AIgnite 1.5 Figma variables, then built. A purpose token points at a base token, and references stay references in CSS.

The contract between Figma and code

contracts/Button.contract.ts
export type ButtonVariant = "primary" | "secondary" | "tertiary"
export type ButtonAppearance = "filled" | "outline" | "ghost"
export type ButtonSize = "sm" | "md" | "lg" | "xl" | "xxl"
export type ButtonTone = "error" | "success" | "warning"

type Base = {
    variant?: ButtonVariant // Figma: Variant
    appearance?: ButtonAppearance // Figma: Type (Non Padding → ghost)
    size?: ButtonSize // Figma: Size
    tone?: ButtonTone // Figma: State Error | Success | Warning
    loading?: boolean // Figma: State Processing
    disabled?: boolean // Figma: State Disable
    onClick?: () => void
}

// …

// Icon "Only": no visible label, so an accessible name is required.
type IconOnly = Base & {
    iconOnly: true
    icon: ReactNode
    "aria-label": string
}

// Figma State values that are handled by the browser, not by props.
export const RUNTIME_STATES = ["Default", "Hover", "Focused"] as const
Mapped from the Figma Button's properties. Hover and focus stay in CSS, and an icon-only button won't compile without a label.

the calls we made

Four rules, and what each one cost

Every rule traded something away. These are the trade-offs we chose.

  1. 01

    Purpose tokens point at base tokens

    You getChange the orange once, and every button, chip and chart follows.

    It costsOne more layer to name, and names have to be agreed before anything is built.

  2. 02

    Hover and focus stay in CSS

    You getThe browser already knows what's hovered or focused, so the code stays small.

    It costsFigma keeps those variants for review, so it has more variants than code has props.

  3. 03

    Tokens Studio, not redlines

    You getDesigners push tokens themselves, as JSON a developer can review line by line.

    It costsOne more tool to learn, and its file structure becomes the repo's.

  4. 04

    A pull request for every token change

    You getDevelopers see exactly what changed, and nothing ships unreviewed.

    It costsSlower than editing a value in place: even a small fix waits for review.

How versions work

A token being removed is marked deprecated for one minor release first.
ChangeVersionExample
Rename or remove a tokenMajorbg-Primary-light → bg-primary-strong
Add a tokenMinorA new text/ purpose token
Change a valuePatchPrimary/500 moves to a new orange

Documentation and contribution

One documentation template, names a developer can read, and six steps from a squad's request to a release.

on request

See AIgnite inside the product

This page shows the system. The full case is a 26-page PDF with AIgnite at work in all six workspaces: data connectors, the job monitor, model predictions, dashboards and ChatUBIX. Email me and I'll send it.

Request the full case

I reply within a day.

Cover of the full case PDFA page from the full case PDFA product page from the PDF, blurred26 pages · PDF
04 · Reflect

A system is never finished

What 1.5 got right, and what 2.0 has to fix.

looking back

Put purpose tokens in front of every component

1.5 has 162 base tokens and only 13 purpose tokens, so some parts still point straight at a base value: the Button's fill is Primary/500, not bg-brand, and its padding borrows a radius token. It works today, but dark mode would mean editing parts one by one. 2.0 starts with the missing purpose tokens, then rebinds every component to them.

Jahangir

What 2.0 fixes

UBIX kept adding spaces after these six: CloudSpace, TrainingSpace and AgenticSpace, for AI agents. So 2.0 starts with the three gaps the 1.5 audit found.

One source of truth, even for docs

The colour guideline says Primary is #F55B3D; the variable says #F3590C. Hand-written docs drift.

A higher accessibility bar

1.5 set text contrast at 3:1 (AA Large) and showed focus as a darker fill.

Publish, don't copy

The 380-variant Button lives twice in the file.

Illustration for the quote

“Jahangir spearheaded work on our design system to ensure that usability and consistency was a key part of our growth strategy.”

— Peter Caron, VP of Data Science, UbixLabs
What's next

Have a similar problem? Let's talk.

If anything here sounds like the work you need shipped, get in touch. I reply within a day.

Start a conversation
Based in
Berlin
--:--
© 2026
Md. Jahangir Alam
All rights reserved