
Typography Design Tokens
Tokenize type as atoms and composites. Here is why splitting family, size, weight, line-height, and letter-spacing helps, how composite text styles bundle them, and how roles enable theming.
TL;DR: Tokenize type in two layers. The atomic tokens — family, size, weight, line-height, letter-spacing — are the primitives, and splitting them apart is what lets line-height and size move independently per role. Above them, composite text-style tokens bundle the atoms into named roles like heading-lg and body-default, which is what components should consume; the DTCG format has a typography composite type for exactly this. Semantic text roles let a brand or density theme remap type without touching components. Keep the set governable by naming the roles the product actually uses, not every combination the atoms allow. The honest caveat: tokens encode the type system but do not decide the hierarchy for you. This guide covers the atoms, the composites, theming, and how to keep the set usable.
The atomic type tokens
The primitives of a type system are five properties: font family, font size, font weight, line-height, and letter-spacing. Each is its own token — font.family.sans, font.size.400, font.weight.semibold, font.lineHeight.snug, font.letterSpacing.tight — and each holds one raw value with no opinion about where it goes. These compile down to the corresponding CSS properties in the output — font-family, font-size, font-weight, line-height, and letter-spacing — but the token set holds them as independent atoms.
Size is a scale of its own, the same way spacing is: a deliberate progression of steps rather than every point size someone typed. The math that generates a modular type scale — the ratio between steps, the base size — is a broader typography topic and is referenced here, not re-derived. What matters at the token level is that size is a chosen set of steps, and the other atoms are chosen sets too.
Splitting the atoms apart is the move that pays off, and it is worth being concrete about why. If type lived as one monolithic value per style, changing the line-height of body text would mean editing the whole style, and a role that wanted the same size at a looser line-height would have to duplicate everything else. Split, the atoms compose freely: two roles can share a size token while pointing at different line-height tokens, and a weight can change across a family without disturbing size. Line-height and size move independently because they are independent tokens, which is precisely the flexibility a real type system needs.
Composite text-style tokens
Atoms are not what a component wants to consume. A heading does not ask for a family, a size, a weight, a line-height, and a letter-spacing separately — it asks for "the large heading style." That bundle is a composite text-style token: one named role that gathers the atoms into a single unit. text.heading.lg, text.body.default, text.caption each name a role the product actually uses and pack the five atoms behind it.
The DTCG format models this directly as a composite typography token type, which groups the atomic sub-values under one token (Design Tokens Format Module 2025.10, typography composite type, as of November 2026). Naming the format's shape matters because the composite is where a text style becomes a single consumable thing instead of five references a component has to assemble correctly every time.
{
"text": {
"heading": {
"lg": {
"$type": "typography",
"$value": {
"fontFamily": "{font.family.sans}",
"fontSize": "{font.size.700}",
"fontWeight": "{font.weight.bold}",
"lineHeight": "{font.lineHeight.tight}",
"letterSpacing": "{font.letterSpacing.tight}"
}
}
}
}
}The composite text.heading.lg references the atoms rather than inlining values, so a change to font.family.sans flows into every style that uses it, and the component only ever names the role. That is the property that keeps the type system coherent: one role, one name, atoms behind it.
Type tokens and theming
Semantic text roles are what make type themeable. Because a component consumes text.heading.lg rather than a bundle of raw values, a theme can remap what that role resolves to — a brand can swap the family, a density theme can tighten the line-heights — and every heading follows without a single component change. The swap mechanic itself is covered in the article on theming; the relevant point here is that composite roles are the seam theming works along, exactly as semantic color and spacing roles are.
What varies across brands and what stays shared can be split along structural lines. Weight and family are natural candidates to vary by brand — a brand can express itself through its typeface and its weight choices without changing its line-heights. The structural atoms — the size scale, the line-height steps — can stay shared, giving multiple brands a common typographic skeleton under different faces. A brand layer that supplies family and weight while inheriting the shared size and line-height scale is one economical arrangement.
Fluid and responsive type can be represented in tokens through its bounds — a floor and a ceiling held as separate size tokens. In the DTCG 2025.10 format, a dimension value is a number with a unit that may only be px or rem, so an expression that scales between those bounds is not itself a valid DTCG size value. The breakpoint and viewport-scaling mechanics that make type respond belong to layout areas, not here. The tokens hold the bounds; the responsive behavior is deferred.
Keeping the type set usable
The failure mode of a type token set is not too few styles but too many. The atoms compose into an enormous number of possible combinations, and a set that names them all is unusable — nobody can choose between forty heading styles, and the ones that differ by a single point become a source of inconsistency rather than a cure for it. Name the roles the product actually uses. A small set of well-chosen text styles can cover a product's real roles — a dozen is an illustration of the scale, not a measured benchmark; the discipline is to add a style because a real role needs it, not because the atoms allow it.
| Symptom | What it signals | The move |
|---|---|---|
| Dozens of near-identical text styles | The set names combinations, not roles | Collapse to the roles the product uses |
| Components assembling raw atoms | The composite layer is being bypassed | Have components consume composite styles |
| A new style per one-off design | The set is growing by exception | Reuse an existing role or justify a real new one |
The governing rule is the same one that keeps every token tier honest: components consume composites, not raw atoms. A component that reaches past text.body.default to assemble a family, size, and line-height itself has cut the type system out of the loop and can miss a theme that remaps the role. Consuming the named role keeps the set small enough to reason about and the product consistent by construction.
And the honest limit sits at the edge of what tokens can do. Tokens encode a type system faithfully — the atoms, the composites, the roles — but they do not decide the typographic hierarchy. What the heading scale should be, how many levels the product needs, which role carries emphasis and which recedes — those are design decisions the tokens record, not decisions the tokens make. A type token set is a precise, enforceable encoding of a hierarchy someone designed. It is not a substitute for designing one.