Multi-Brand Variable System
Consolidated 45+ scattered library files into one source of truth: a Figma variable architecture that resolves the same components for five brands, two color modes, three devices and two typefaces.
- Role
- Lead Product Designer · System architecture and consolidation
- Timeline
- 1 week, 2026
- Stack / Tools
- Figma Variables
- Variable modes
- Figma API
- Storybook
- JavaScript resolver
- JSON export
01
The Problem
The design system was spread over 45+ library files. Mobile typography sat in one file, desktop typography in another, tokens in a third, components in a fourth and complex components in a fifth. Nobody could point to one place and say: this is the system.
- Issue 01
No single source
With tokens, type and components split across dozens of libraries, a change in one place did not reach the others, and it was hard to tell which file was current.
- Issue 02
Contexts the system could not express
Multi-brand worked only partly. There was no Light or Dark mode and no responsive typography: the H1 variable was 24 / 28 everywhere.
- Issue 03
Development nobody could see
Storybook ran only on a local build. Seeing a component meant cloning the repo, getting DevOps permissions and building it, so designers and everyone else worked blind.
02
Architecture
My first task was to get Storybook published for the whole company, so progress was visible to everyone. Then I consolidated the libraries into one file built on four independent collections: Brand, Mode, Device and Typeface. Components bind to stable public roles and aliases route each role to the right brand decision, which gives 5 × 2 × 3 × 2 = 60 contexts of one system, not 60 libraries.
One role,
five results
H1 at 24 / 27 · radius 8
- Typography / font / family / heading
- Geist
- Typography / font / family / body
- Geist
- Typography / weight (reg / med / semi)
- 400 / 500 / 600
- Typography / heading / h1 (size / line)
- 24 / 27
- Brand / radius / alt / sm
- 8
Sans serif values from the Figma snapshot of 5 Nov 2026. Sample text is set in this site’s typeface.
| Area | Before | After |
|---|---|---|
| Library files | 45+ separate files | One source for everyone |
| Typography | Mobile and desktop in different files, one size per role | Responsive, selected by Device mode |
| Color modes | None | Light and Dark |
| Brands | Worked only partly | Five, each a Brand mode |
| Storybook | Local build only | Published to the whole company |
| Component docs | No per-component tabs | About, props and examples tabs, fetched from the Figma API |
| Collection | Turbo UI Core | Standalone |
|---|---|---|
| Primitive | 200 | 470 |
| Theme / Brand | 49 | 717 |
| Semantic / Mode | 162 | 162 |
| Typography | 56 | 66 |
| Device | No separate collection | 76 |
| Typeface | No separate collection | 66 |
| Layout | No separate collection | 49 |
| Utility | 97 | 107 |
| Misc | 83 | 83 |
Mode / bg / brand / base-alt↓ Light or DarkBrand / theme / {light|dark} / bg / brand / base-alt↓ selected BrandPrimitive color
Typography / line-height / heading / h1↓ aliasTypeface / line-height / heading / h1↓ Sans serifDevice / sans-serif / line-height / heading / h1↓ M-webBrand / type / sans-serif / line-height / m-web / heading / h1↓ selected BrandPrimitive / line-height / {value}
const tokens = createResolver(data, {
Brand: 'Team BHP',
Mode: 'Dark',
Device: 'M-web',
Typeface: 'Sans serif',
});
tokens.get('Typography', 'font/family/heading'); // Archivo
tokens.get('Typography', 'line-height/heading/h1'); // 34
tokens.get('Mode', 'bg/brand/base-alt'); // RGBA- Decision 01
Publish Storybook before anything else
Once everyone in the company could open Storybook in a browser, designers, PMs and developers were looking at the same components and tokens.
CostIt took DevOps permissions and developer goodwill, so the relationship work came before the design work.
- Decision 02
One source, not 45 libraries
Tokens, typography, components and complex components now live in one system that every team reads from.
CostOne file is a single point of failure, so it needs clear ownership and review.
- Decision 03
Independent context collections
Brand, color mode, device and typeface are separate selections, so it is always clear which one changed.
CostMore alias hops and more modes to test.
- Decision 04
Explicit per-brand metrics
CarInfo’s regular / medium / semibold are 500 / 600 / 700. Storing each brand’s numbers keeps differences like that intact.
CostThe Brand collection is the largest layer at 717 definitions.
- Decision 05
Descriptions on everything, written for AI
Every component, every variant and every token, primitives and surfaces included, carries a description, so an AI agent can read the system and design in context.
CostDescriptions are one more thing to keep current with every change.
- Decision 06
Storybook docs fetched from Figma
Each component in Storybook has About, props and examples tabs populated from the Figma API, so documentation is not written twice.
CostThe docs are only as accurate as the Figma file.
- Decision 07
Local ownership of variables
The file resolves entirely from its own definitions. Two CarInfo colors with no exact palette match were kept as direct Brand values, not swapped for a near match.
CostLocal copies can drift from the upstream library.
03
Impact
One system where there were 45+ files, visible to the whole company and readable by AI. The numbers below come from the files and the validation reports.
45+
Library files consolidated
Into one source of truth
5
Brands, one system
Cars24, CarInfo, Vehicle Info, Team BHP, Kiwi
60
Resolvable contexts
5 brands × 2 modes × 3 devices × 2 typefaces
0
Broken or external references
107,760 evaluations across 1,796 variables