
The Design Token Build Pipeline
One token source, many platform outputs. How the build parses, transforms, and formats tokens into CSS custom properties, iOS, and Android — and where it belongs.
TL;DR: A design token build turns one structured source file into many platform outputs — CSS custom properties, iOS, Android, and JSON — through three stages in the conceptual model this article uses: parse and resolve references, transform values per platform, and format the result into each platform's file shape. The browser and the apps never read the source; they read what the build produced. The thing you operate is the build, and its honest cost is the indirection it puts between editing a token and seeing the change render.
Source in, platforms out
A design token system has one source of truth: a structured file (or set of files) that names every design decision and its value. That source is not what any platform consumes. A browser cannot read a token tree, an Android app cannot import your JSON of color decisions, and iOS has its own expectations entirely. Between the source and every platform sits a build.
The build is a transformation step. It takes the single source in and emits a set of platform-specific outputs: CSS custom properties for the web, a color or dimension resource for Android, a Swift or asset representation for iOS, and often a plain JSON output for other tools to consume. Same decisions, many shapes. Change a value once in the source, run the build, and every platform's output updates in lockstep.
This is the mental model that matters for the person operating it: you edit the source, but you ship the outputs, and the build is what connects them. You do not hand-maintain a CSS file and an Android file and keep them in sync by discipline — that is exactly the drift the token build exists to remove. You maintain one source and operate a build that guarantees the outputs agree. The outputs are artifacts; the source and the build are the system.
Parse, transform, format: a conceptual model
The build does its work in three distinct stages, and separating them is what makes it comprehensible.
In the conceptual model used here, parse and resolve comes first. The build reads the source into a token tree and resolves the references between tiers — a semantic token that points at a primitive, a component token that points at a semantic. After this stage every token has a concrete resolved value, and any reference that could not be resolved is a problem the build should surface rather than silently pass along. The tier model itself — primitives, semantics, and how they reference each other — is its own subject; here it is enough that the build resolves those references into final values. Real tools do not all follow this order: Style Dictionary's documentation, for example, describes transforming the tokens first and then resolving references, replacing each reference with the transformed value; the same page notes that value transforms are skipped for a token that references another token, and that since version 3.0 you can define a transitive transform that transforms such a value after its reference has been resolved (as of November 2026).
Transform comes next, and it is per platform. The same resolved value has to become the right thing for each target. A hex color stays hex-like for CSS but becomes a platform color type for Android and iOS. A pixel dimension becomes dp on Android and pt on iOS. Even names transform: a token named in one convention gets re-cased to match each platform's idioms. One value, several platform-appropriate representations.
Format comes last: the transformed tree is written into each platform's file shape — the declaration block a stylesheet expects, the resource file Android expects, the structure iOS expects. The example below shows one primitive color moving through transform-and-format into two outputs. Read it as illustrative shape, not as a config file for any particular tool.
Source token (illustrative shape, not a config):
color.blue.600 = "#2563EB"
Formatted CSS output:
:root { --color-blue-600: #2563eb; }
Formatted Android output (colors.xml):
<color name="color_blue_600">#FF2563EB</color>Notice what changed and what did not. The decision — this exact blue — is constant across both outputs. The syntax differs because each platform's file format demands it. The casing and the alpha representation (#FF prepended for the Android form) are choices the transform makes to match each platform's idioms: Android color resources also accept #RRGGBB without an alpha value, and CSS custom property names are valid in any casing, though case-sensitive. That is the transform-and-format job in one glance.
| Platform output | Transform applied | Formatted shape |
|---|---|---|
| CSS custom properties | Hex kept web-native; name kebab-cased | `--color-...: #2563eb;` on a root or scope |
| Android | Hex to platform color with alpha channel; name snake_cased | `#FF2563EB` |
| iOS | Hex to platform color type; name camelCased | A color asset or Swift constant |
| JSON | Values resolved and flattened | A machine-readable map for other tools |
The DTCG format as the interchange layer
If the source is going to outlive any one build tool, it helps for the source to speak a shared, tool-neutral format rather than a tool-specific one. That is the role of the Design Tokens Community Group format (stable version 2025.10, published October 2025; as of November 2026 an editors' draft is still being revised, so re-verify details). DTCG defines a common way to express tokens — their types, values, and references — as an interchange format that a source can be authored in. It is a Community Group specification: its status section says it is not a W3C Standard nor on the W3C Standards Track.
The value of a shared source format is decoupling. When the source speaks DTCG rather than a particular tool's proprietary shape, the build tool becomes easier to replace. Changing which tool performs the parse-transform-format work then needs less rewriting of your token source, provided the new tool supports the version of the format your source uses. Support is something to check per tool and per version: Style Dictionary, for example, documents first-class support for the DTCG format as of version 4, while noting that the latest format, 2025.10, does not have full support yet and is a work in progress in v5 (as of November 2026). Naming it is market reality, not a recommendation to adopt any specific tool. The point is architectural: a shared interchange layer keeps your decisions portable and your tool choice reversible.
This is also why the build is described here vendor-neutrally. The mechanics — parse, resolve, transform, format — are worth understanding on their own terms, whichever tool runs them and in whatever order. A tool is an implementation of these mechanics, not a substitute for understanding them, and a source authored in a shared format is what lets you keep that understanding independent of any tool's setup.
Where the build belongs
The build is not a script someone runs on their laptop before a release. It belongs in continuous integration, producing versioned outputs that downstream consumers depend on. When the token source changes, CI runs the build, publishes the outputs as a versioned artifact, and the web app, the Android app, and the iOS app pull that artifact like any other dependency. Hand-runs invite exactly the drift the system is supposed to prevent — one person's local output differing from another's.
A build in CI should also validate, because it is the last place to catch a broken token set before it reaches a consumer. Three checks earn their place: unresolved references, where a token points at a name that does not exist; circular aliases, where two tokens reference each other and no concrete value can be produced; and value-type mismatches, where a token typed as a color holds something that is not one. Each of these is a defect that would otherwise surface as a mysterious missing or wrong value in a shipped app, and each is cheap to detect at build time.
The honest cost is worth stating plainly, because it is the trade you accept in exchange for consistency. Introducing a build puts indirection between changing the source and seeing the result. You no longer edit a value and immediately watch the interface update — you edit the source, run the build, and consume the output, and there is a step in the middle. That indirection buys you a single source of truth and platforms that cannot drift apart. It costs you the directness of editing rendered styles by hand. For a system spanning several platforms that trade is usually worth making, but it is a trade, and the person operating the build feels the indirection every day even as they rely on what it guarantees.