Theming Multiple Brands From a Single Component Library
Semantic tokens move brand identity out of component code entirely.
A team sets out to support three brands from one codebase and starts, sensibly enough, by forking the button component. One button per brand, each with its own padding and radius, living in its own folder. It feels like progress for about a week. The account team lands a fourth brand, and the forks multiply. A design change comes through, a small one, something like adjusting the focus ring on the primary action button, and suddenly it's a ticket that touches every fork in the repository, not a single component file.
The cost compounds exactly this way. A change to button padding requires touching every brand's fork of that component. Adding a new brand means auditing every component for what needs overriding, not creating a new file. The team that started with one library now maintains N slightly different libraries, and the maintenance burden grows linearly with the brand portfolio, while the confidence that anything is consistent shrinks at the same rate. This is not a volume problem that more designers or more files will solve. The root cause is where brand identity is encoded. When a brand's visual decisions live inside component code, every component is a silent hostage to every brand, and the only sustainable alternative is moving brand identity out of components entirely.
That move has a Figma-specific urgency as well. Housing all UI styling, variables, and system components in a single file per brand creates performance issues at scale: the file becomes slow, bloated, and difficult to manage. Design teams experience this as laggy frames and an impossible task of keeping three versions of the same component in sync. The architecture problem appears in the design tool exactly as it appears in the codebase, and the discipline that fixes one fixes the other.
What a semantic token layer is and why it sits between primitives and components

The answer is a semantic token layer, a middle tier where you encode brand identity as named variables, not hard-coded values. Components remain brand-agnostic, and per-brand differences live exactly where they can be swapped without touching component code. The stack has three tiers. Primitives are raw values: blue-700 or #2563eb. Semantic tokens are named intent: --primary, bg-background, color.text.brand. Components sit on top and reference only semantic tokens, never raw primitives.
The discipline is absolute, and its fragility is the point. A developer writing color: #2563eb directly in a component has broken the contract and reintroduced the coupling the layer was designed to eliminate, even if that value happens to match the current brand. Semantic naming encodes intent, not value. --primary means "the primary action color for whichever brand is active," and the component does not need to know what that color is. The component needs to know that this action is primary. The token layer supplies the rest.
A style guide and design tokens carry the same brand information, but they differ in form. A style guide is a human-readable document, a set of pages meant to be read and interpreted. Design tokens are machine-readable variables from that style guide, so automated systems can consume them. The distinction matters more now than it did a few years ago, because the systems consuming brand information increasingly include software, not just designers.
How brand packs and CSS custom properties implement the token layer in practice
The implementation that ships in production pairs CSS custom properties with a data-brand attribute on the HTML root. The root declares which brand is active, and the correct token values cascade down automatically, with no component code changing. The pattern is direct: <html class="dark" data-brand="teal">. Light and dark mode and brand identity are separate dimensions, handled by separate mechanisms, never conflated. Color mode changes with one selector. Brand identity changes with another.
A brand pack is a set of token overrides scoped to one brand, and it has hard boundaries. It must never touch --status-danger, --status-warning, or other status tokens. Status meaning is global UX, not brand styling, and recoloring a warning state for brand fashion breaks accessibility semantics system-wide. The brand pack may restyle the primary button. It may not restyle what "error" means. Every implementation also keeps four dimensions cleanly separated: color mode, brand identity, persona or shape such as border radius and shadow softness, and component look. Each gets a distinct mechanism so they cannot fight each other.
The anti-pattern that appears in teams migrating from JavaScript-driven theming is a theme context that redeclares the palette in JavaScript. It becomes a second source of truth, fighting the CSS token system rather than extending it, and it produces the dual-design-system debt the architecture was meant to avoid. For white-label at scale, you either ship a CSS pack per tenant or generate a pack from a --brand-h hue variable plus a ramp recipe. Both remain CSS variables, not per-button props.
Its Magic Picker is a visual interface inside the CMS that lets non-technical users apply and preview brand styling instantly. They update component styles without writing code by selecting from utility-compatible token values. All styles in that system are mapped to JSON files, updatable via Git, with changes reflected across CMS styling options and Figma component themes. The brand decision lives in one structured place, and every surface inherits it.
Structuring the token file hierarchy so adding a brand does not touch anything else

A well-structured token hierarchy makes adding a brand a matter of creating one new override file. No auditing existing components, no duplicating a library, no negotiating with another brand's tokens. The canonical separation is three parts: one master component library that is brand-agnostic and references only semantic tokens, one shared primitive token file, and one token override file per brand containing only the values that differ. The fifth brand and the fifteenth brand cost the same.
Figma mirrors this structure. A vanilla, unbranded style guide is the source of truth, design tokens are managed via Figma Local Variables, and those tokens are dynamically themed across brands. The result is less file duplication and faster onboarding for new brands and components, because a new designer inherits a structure where the brand-specific decisions are already quarantined.
Naming conventions are load-bearing in a system like this. If a junior team member cannot locate the brand color for a primary action without asking, the taxonomy has failed, no matter how correct the architecture is in principle. Intuitive, consistent naming is what makes the system navigable at scale. Tooling supports the export path: Style Dictionary translates the token structure into platform-agnostic outputs such as CSS variables, iOS values, and Android values from one source, with Token Studio serving as the token management and sync layer that feeds it. The same token file drives web, mobile, and email without manual translation. Figma Dev Mode closes the loop between design and build, giving designers and developers the same token structure and eliminating the drift that accumulates when design files and code diverge over time.
The governance requirements must be built in from the start. A clear changelog, semantic versioning on the token package, and a defined process for accepting new patterns are not optional polish. Without them, the token system accretes unofficial additions until it replicates the chaos it replaced, only now the chaos lives in the token layer instead of the components.
Where the architecture breaks when AI agents need to consume and apply brand tokens
A token system that is well-structured for human developers is not automatically consumable by AI agents. The gap between machine-readable and agent-ready is where most token architectures fail in automated workflows, and it is a gap the discipline of the previous sections does not close. The root cause sits in the format of most brand assets. A PDF brand guidelines document is static, readable once a year by a human, and produces output at high marginal cost per asset. That format is invisible to an agent that needs to generate on-brand output autonomously. It can read the PDF, but it cannot act on it as structured data.
The contrast that matters is format. A brand kit stored as JSON, tokens, and structured references is continuously versioned and supports high-volume asset generation at near-zero marginal cost per additional asset. The format difference determines whether an agent can act on the brand or merely approximate it. Large language models can ingest JSON-based design tokens and produce fully on-brand layouts without human intervention, but only if the tokens are structured for that consumption, not just for CSS output. The failure mode in production is now familiar: agents that receive brand context as a pasted PDF or a prompt fragment produce output that approximates the brand rather than adhering to it. Every new agent session, every new tool, every new workflow recreates the same approximation problem from scratch.
The infrastructure direction is already visible. The Figma Dev Mode MCP Server, released in beta June 4, 2025, lets AI-powered IDE tools pull real design data, including components, tokens, and layouts, directly from Figma and generate accurate code rather than inferring from screenshots or descriptions. It is middleware that connects the structured design system to the agent that needs to work from it, and it points to what the next layer of the architecture most do.
What it means to make a token system agent-ready: structured context, versioning, and retrieval
You need three additions beyond good file structure to make a token system agent-ready. The brand context must be structured for machine consumption, versioned so agents always pull the current state, and retrievable through a standard interface, not manually supplied per session. Structured for machine consumption means moving from a human-readable style guide to a format agents can parse: a brand voice document, a body-of-work reference, and a visual design token spec, each in a form the model can act on rather than just read. Without versioning, agents working on different tasks at different times produce output that reflects different states of the brand, which is the same compounding inconsistency as file-per-brand duplication, recreated at the prompt level.
Retrieval through a standard interface is where MCP enters. Model Context Protocol launched under Anthropic in November 2024 and now sits with the Agentic AI Foundation, a directed fund under the Linux Foundation, as of December 2025, with the current specification dated July 28, 2026. MCP eliminates the integration problem: rather than each AI tool requiring a custom connector to brand assets, one MCP server exposes the token system to any MCP-compatible environment. For design systems, MCP is the bridge that allows tools like Figma to talk to AI models in real time, enabling automated brand adaptation, instant audits, and design governance at scale.
The context-window caveat matters for multi-brand work. Tool definitions for every connected MCP server load into the chat context on the first message, so more tools means more context consumed before any task begins. The practical implication is that brand context exposed to an agent should be scoped: the active brand's tokens, not the entire token library, so context usage scales with the task rather than with the size of the brand portfolio.
Rainbrand functions as this retrieval layer for brand infrastructure. It ingests existing brand assets, including guidelines, token files, design systems, websites, and social profiles, and transforms them into a structured Brand Skill that any connected agent or product can pull from via API or MCP. The brand context lives in the workflow, not pasted into each prompt by hand. For multi-brand operators and agencies, Rainbrand's workspace supports multiple brands, with each brand's context versioned and updated so every downstream system inherits the latest state automatically. It is the agent-ready analog of the semantic token architecture: the same discipline of single-sourcing and overrides, applied to the brand context itself.
The governance habits that keep a multi-brand token system from decaying over time
A semantic token architecture without active governance accumulates the same debt it was designed to eliminate: unofficial token additions, undocumented exceptions, and stale brand context that agents act on as if it were current. A design system is a living organism. After each release, components are reviewed, tokens updated, and documentation refined. A system that is not actively maintained is not stable, it is decaying.
The minimum governance process has three artifacts. Semantic versioning on every token package release tells consuming products whether an update is a patch, a minor addition, or a breaking change. A changelog records what changed, which brand it affects, and when, so any agent or automated workflow that cached a prior state knows it is out of date. A defined RFC or review process for accepting new patterns ensures the token system does not grow by informal addition and produce a second informal taxonomy alongside the canonical one. For multi-brand operators, governance extends to who owns each brand's token file, and whether a change to one brand's tokens can accidentally affect the shared primitive layer that all brands depend on.
The agent-workflow addition is new, and it belongs in the same system. Agents that can publish autonomously represent a different risk profile from agents that draft for human approval. The established best practice is that agents generate and stage content, and a human must approve it before publication. Brand token governance and content approval governance are two layers of the same system, and they require the same discipline to stay reliable.
That discipline has one test, and it applies to the taxonomy and the governance process alike. A new team member or a newly connected agent can find and apply the correct brand context without asking. When that is true, the architecture is doing what it was built to do. The brand identity has been moved out of the components, into a structured layer that both humans and agents can read, and the system stays coherent as the portfolio grows.