Skip to main content
Praveen Manchi

Case study · Design systems

How I set up, and keep alive, a multi-brand design system

My playbook, shown working: how I structure tokens, components and Figma files from day zero, automate the path to production, and run the system as a product long after launch.

Role
Design Systems Lead
Scope
0 → 1 setup and ongoing operations
Brands and modes
Brand A, Brand B, Dark, High contrast
Rollout
10 weeks across 6 repositories
01 · SOURCEFigmaVariablesModesLibraries02 · PIPELINEToken pipelineTokens Studio.tokens.jsonGitHub ActionsStyle Dictionary03 · DELIVERPackagesnpm packageCSS custom propertiesSwift · ComposeStorybook04 · CONSUMEProductsWebMarketingMobileInternal toolsSETUPTokens, components, Figma filesAUTOMATEA variable edit becomes a versioned releaseMAINTAINRun the system as a productAudits, contributions and releases feed back into the source
Fig. 01The whole system on one line. The gold thread is a single variable travelling from Figma to a shipped button.
  • < 30 minto roll out a full rebrandwas 3–5 days
  • 142usages repainted from one token edit0 component files changed
  • 0hard-coded values across 6 repositorieswas 14 hex values for one blue
  • 0visual regressions during rolloutchecked in all 4 modes

Before

The problem I started with

I audited 6 repositories and 47 components before touching anything. Without a shared system, every team had made local decisions, and the same “primary blue” existed as 14 different hex values.

BEFOREAFTER14 hex values for one “primary blue”6 repositories, 47 components, every team deciding locallycolor-action-primary1 semantic tokenFigma variables are the source of truth142 usages repaint from one editA rebrand takes under 30 minutes. It used to take 3–5 days.
Fig. 02Fourteen local decisions collapse into one semantic token, and one edit reaches every usage.
Before · hard-coded3 files, 3 blues
/* Button.css · Team A */
background: #2563EB;
border-radius: 6px;

/* Card.css · Team B */
border-color: #3B82F6;
border-radius: 8px;

/* Badge.tsx · Marketing */
background: "#1D4ED8"
After · token-bound1 source
/* tokens.css · generated */
--color-action-primary: #3B82F6;
--radius-control: 8px;

/* Button.css */
background: var(--color-action-primary);
border-radius: var(--radius-control);

/* Card.css · same token */
border-color: var(--color-action-primary);

One token replaced fourteen decisions.

Approach

Ten weeks from audit to rollout

Audit first, architect the tokens, set up Figma, automate the pipeline, then migrate teams. Rollout took the longest because adoption is the real work.

01Discovery2 weeksAudit 6 repos,47 components02Tokenarchitecture1 week3-tier modeldefined03Figmasetup1 weekVariables, modes,libraries04CI/CDpipeline2 weeksStyle Dictionary +GitHub Actions05Rollout4 weeksTeams migrated,zero regressionsW1W2W3W4W5W6W7W8W9W10
Fig. 03The 10-week rollout, drawn to scale.

Chapter 01

Setup

The structure everything else depends on: a three-tier token model, an atomic component library, and brands expressed as modes.

Setup · 1.1

Three-tier variable architecture

Primitives, semantics, component tokens. Components bind to semantics only, semantics bind to primitives, and nothing references a raw value.

TIER 1 · PRIMITIVESRaw values. Never used directly.TIER 2 · SEMANTICSPurpose-bound aliases. The contract.TIER 3 · COMPONENT TOKENSLocal to one component.neutral-100#F4F6FAneutral-900#0B1020brand-500#3B82F6accent-500#F59E0Bspace-416pxradius-md8pxcolor-surface-primarycolor-surface-elevatedcolor-text-primarycolor-action-primarycolor-action-accentspacing-inline-sm16pxradius-control8pxbutton-textcard-backgroundinput-borderbutton-backgroundcard-borderbadge-background
Fig. 04Every alias in the system. Follow the gold line: brand-500 → color-action-primary → button-background.
One token, end to endbrand-500color-action-primarybutton-backgroundContinue

Naming convention

colorCATEGORYcolor · spacing · radius-actionCONCEPTwhat the value is for-primaryPROPERTYprimary · accent · sm-hoverSTATEhover · disabled
Fig. 05A token name says what the value is for, never what it looks like.

Components bind to semantics only

No component references a primitive. That one rule is what keeps every mode repaintable.

Purpose over appearance

Purpose-driven paths such as color-action-primary-hover replace names that describe a colour.

Scoped and hidden

Variables are scoped to fill, stroke or radius so they only show up in the right pickers, and primitives are hidden from publishing.

The semantic layer is the contract. Teams argue about hex values; they align on purpose.

Setup · 1.2

Atomic design, with tokens underneath

Tokens are the particle layer every atom is built from. Each rung has a home in Figma and a matching folder in code.

Design tokensbrand-500 · radius-controlAtomsButton · Input · BadgeMoleculesForm row · Search barOrganismsHeader · Card gridTemplatesDashboard shellPagesReal instances
Fig. 06Brad Frost’s five levels, with design tokens added as the step below atoms.

Atoms

The smallest usable UI. Every visual property is bound to a semantic token, never a raw value.

Molecules and organisms

Composition adds layout tokens such as spacing and stack gaps, but no new colours. Organisms own responsive behaviour and content slots.

Templates

Organisms arranged into a page structure with placeholder content. This is where modes are QA’d.

Setup · 1.3

Multi-brand through Figma modes

I structure collections so a brand is just a mode. Switching a mode rebinds values; component logic is untouched.

SEMANTIC TOKENBrand ABrand BDarkHigh contrastcolor-action-primary#3B82F6#10B981#60A5FA#FFD400color-action-accent#F59E0B#EC4899#FBBF24#00E0FFcolor-surface-primary#F4F6FA#EEF6F1#0B0F19#000000color-text-primary#0B1020#0E1512#E5E7EB#FFFFFFradius-control8px12px8px4pxSAME COMPONENTValues swap. Logic doesn’t.CheckoutContinueNEWCheckoutContinueNEWCheckoutContinueNEWCheckoutContinueNEW
Fig. 07One semantic collection, four modes. The card underneath is the same component in each.

Primitives: one mode

Raw values never fork per brand.

Semantics: four modes

brand-a, brand-b, dark, hc. Each mode rebinds the same aliases to different primitives.

Applied per frame or page

Modes cascade, so previewing a whole brand is one dropdown change.

Modes per collection
Professional10
Organization20
Enterpriseunlimited, with extended collections for brand portfolios

A rebrand is a variable change, not a project.

Chapter 02

Automate

No manual handoff anywhere between a Figma variable edit and a versioned release.

Automate · 2.1

The token pipeline

A design change travels as a pull request. Status checks gate the merge, and a release workflow publishes one versioned package.

FIGMAdesignGITHUBrepositoryGITHUB ACTIONSon pull requestGITHUB ACTIONSon merge to mainPACKAGEwhat shipspush JSONon: pull_requestfail: fix on the branchon: pushFigma variablescollections + modesTokens Studioplugin · Git syncAlternative on Enterprise: the Variables REST API,called from a scheduled workflow..tokens.jsonDTCG, on a branchPull requesttoken diff + reviewMerge to mainrequired checks greenStyle Dictionarytransforms · 4 platformsStatus checks4 required checksRelease workflowChangesets · npm@org/design-tokensone versioned packageCSS custom propertiesTailwind themeSwift · ComposeStorybook docs
Fig. 08Who does what. The gold node is the gate: nothing merges until lint, contrast, accessibility and visual checks are green.

Format

Tokens are stored as .tokens.json in the Design Tokens Format Module 2025.10, the first stable version of the DTCG spec.

Build

Style Dictionary v5 runs transforms per platform: CSS custom properties, a Tailwind theme through a custom format, Swift and Compose.

Release

Changesets ties releases to semver. A new token is a minor, a value tweak is a patch, a rename is a major.

Automation is adoption. Teams migrated because the pipeline made tokens easier than hard-coding.

Automate · 2.2

Design to Storybook to production

The story is the contract between design and code: what ships is what was reviewed.

Figma componentvariants + propertiesStoryone per state · CSFAccessibility testsaddon-a11y · axe-coreInteraction testsplay functions · Vitest addonVisual testsChromatic · all 4 modesUIReviewdesign +engineeringapprovedenyVersioned releasenpm · Storybook docs deployBack to the branchmerge stays blocked
Fig. 09Three automated test types converge on one human decision.

What the visual review looks like

Baseline · main

Continue

New snapshot · branch

Continue

Diff

Continue

Stories mirror Figma

One story per state. Controls match the Figma variant properties one to one, and the frame is embedded through the Designs addon.

Every mode, every time

A visual change has to be approved in all four modes before the pull request can merge.

Storybook is the documentation

Each release deploys Storybook, so the docs can never drift from what shipped.

Chapter 03

Maintain

The part that keeps a system alive after launch: predictable files, a contribution path, accessibility gates and a steady rhythm.

Maintain · 3.1

Files and branches

A predictable file layout plus Figma branches gives a design change the same audit trail as code.

DS · FoundationsPUBLISHED LIBRARYVariablesPrimitivesSemanticsComponentType stylesModestokens/DS · ComponentsPUBLISHED LIBRARYBasePatternsTemplatespackages/react/DS · IconsPUBLISHED LIBRARYIcon set · 24px basepackages/icons/DS · DocsDOCUMENTATIONUsage, do and don’tAccessibility notesapps/storybook/MIRRORED IN THE REPOSITORY
Fig. 10Four libraries in Figma, four folders in the repository. One mental model, two tools.

Every change goes through a branch

branchfeature/button-radius-tweakeditchange + test in a sandbox framereviewDS team + engineering reviewermainpublished source of truthmergeconflicts resolved, squashpublishlibrary + release notes
Fig. 11The Figma branch workflow. Publishing is the only step that reaches other teams.

Code syntax

Each variable carries its per-platform code name, so Dev Mode shows the real token instead of a Figma path.

Code Connect

Maps Figma component properties to code parameters, so Dev Mode shows the real import and a working snippet.

Extended collections

On Enterprise, a brand collection inherits a published parent and overrides only what differs.

Maintain · 3.2

Governance

I run the system as a product, with owners, a contribution path and a public changelog.

A team needs UIdesigner or developerPRODUCT TEAMIn the library?noCan one flex?noNew componentbranch + sandbox frame + casesFEDERATEDCONTRIBUTORyesUse ityesPropose a variantDesign + engineering reviewall 4 modes · WCAG 2.2 AA contrastDESIGN + ENGINEERING REVIEWERSPublishlibrary · changelog · semverDS COREnow it is in the library
Fig. 12How a need becomes part of the system. Most requests end at “Use it”.

Who owns what

DS coreToken architecture, library publishing, releases
Federated contributorsPatterns from product teams, as pull requests into the system
Design reviewersVisual changes, accessibility, cross-brand checks
Engineering reviewersToken diffs and the breaking-change flag

Contribution rules

  • mustBind through semantic tokens, never raw primitives.
  • mustNew components land in a branch with a sandbox frame and cases.
  • mustAll 4 modes are reviewed visually before publish.
  • shouldContrast ratios are checked against WCAG 2.2 AA.
  • shouldBreaking changes bump the major version of the token package.
  • neverHard-code hex values inside components.

Dev handoff checklist

  • Component published to the Figma library with variants and properties
  • Token package version bumped on npm, with a changelog entry
  • A Storybook story and controls for each variant
  • Accessibility notes in the component doc: role, keyboard, focus order
  • Visual regression snapshot committed
  • Breaking change? A migration guide is linked in the release notes

Maintain · 3.3

Two examples from the job

What the system looks like when it is doing its work.

Use case 01

Pushing a colour change across the system

  1. Brand asks for brand-500 to move from #3B82F6 to #2D6AE0.
  2. A designer creates the branch brand/primary-refresh in Figma.
  3. One primitive value changes. Nothing else is touched.
  4. The sandbox frame updates every button, card border and focus ring.
  5. Dark and High contrast are reviewed in the same branch.
  6. Merge, publish the library, and CI opens a pull request in @org/design-tokens.
  7. Apps upgrade the package. No component code changes.
variable touched
1
component files changed
0
usages repainted
142

Use case 02

Running a quarterly component audit

  1. Every library component is inventoried.
  2. Usage data is pulled from Figma through the REST API and a plugin.
  3. Each component is flagged healthy (over 20 uses), stale (5–20) or orphan (under 5).
  4. Each one is checked for raw-hex leaks and missing variants.
  5. A scorecard is published to the DS docs page.
  6. Orphans are deprecated with a one-release warning; stale ones go to the owning team.
components scored in Q2
47
deprecated safely
6
upgraded to semantic tokens
11

Maintain · 3.4

Accessibility, built into the tokens

I treat WCAG 2.2 AA as a token constraint. Contrast is enforced at the primitive level and re-checked in CI, never patched in components.

AA body text · 4.5:13:1 large text + UIAaBrand A17.5:1AaBrand B16.8:1AaDark15.5:1AaHigh contrast21:11:121:1
Fig. 13Primary text on primary surface in each mode, computed from the token values. Every pair clears AA with room to spare.

Accessibility gates in the pipeline

1AUTOToken lintNo primitive referenced directlyin a component token2AUTOContrast checkRatio check on every semantictext and surface pair3AUTOStorybook a11y addonaxe-core runs on every storyin CI4MANUALDesign reviewA reviewer verifies all 4 modesbefore publish
Fig. 14Automated checks catch only part of the problems, which is why the last gate is a person.

Compliance

WCAG 2.2 AA is the bar: 4.5:1 for text, 3:1 for large text and for UI components.

Perception

Internal token checks also use APCA, which accounts for font weight, size and background context.

Focus

color-focus-ring is a 2px solid brand-500 line with a 2px offset. Every interactive component exposes it through :focus-visible.

Maintain · 3.5

The operating rhythm

A system stays healthy through routine, not heroics. Three beats cover it.

ONE QUARTER13 WEEKSWeeklyPer releaseQuarterly
Fig. 15One quarter of maintenance. Release positions are illustrative.

Weekly

  • Triage contribution requests from product teams
  • Review token pull requests for naming and contrast
  • Office hours to unblock teams adopting components

Per release

  • Chromatic visual review in all 4 modes
  • Changelog entry and semver bump through Changesets
  • A migration guide if anything breaking ships

Quarterly

  • Component audit: healthy, stale, orphan scorecard
  • Deprecation cycle with a one-release warning
  • Contrast re-check of every semantic surface pair

Outcome

Learnings

The system pays for itself on the first rebrand. The real product is the operating rhythm that keeps it healthy after launch.

  1. The semantic layer is the contract

    Naming workshops in week 1 saved months of renames. Teams argue about hex values; they align on purpose.

  2. Automation is adoption

    Teams did not migrate because of a mandate. They migrated because the pipeline made tokens easier than hard-coding.

  3. Governance beats tooling

    Contribution rules and quarterly audits kept the system from becoming a component dumping ground.

  4. Treat it as a product

    Versioned releases, a changelog and migration guides earned engineering trust faster than any design review.