The Token Chain
Component Slots
Layer 3 — named openings inside a component's variable collections.
Definition
Component slots are named openings inside a component's variable collections. Each slot declares which semantic token fills this role under a given combination of dimensions.
How Slots Work
// Button component slots (examples)
background/rest → --background-neutral-weak-rest (neutral, low emphasis)
background/rest → --background-brand-rest (neutral, high emphasis)
background/hover → --background-neutral-weak-hoverSlots are the named contract between a component and its token system. They are the vocabulary the resolver speaks.
Design to Code Flow
- Designer defines variable collections per component
- Transformer extracts collections into a manifest
- Component manifest publishes the compiled slots
- Resolver reads slots at runtime to resolve the correct token
Strategic Sampling
Rather than generating every possible dimensional combination per component, the manifest can contain a set of strategic samples covering the most common real-world configurations. The resolver interpolates from these samples for uncovered combinations.