Return to DX

DX token engine

Explicit design definitions, musical and mathematical calculations, and inspectable token specimens.

Token engine

DX is a token engine. It turns an explicit definition into a coordinated design system: scales, color, typography, spacing, semantic roles, and the artifacts those values become.

The methods are musical and mathematical. Type, space, radius, and related families are registers of one generating system, not independent lists. An agent operates that system. A person describes how a design should feel and reads the result as pages.

DX calculates tokens. Components, application layouts, utility classes, and frontend validation belong to Engine, LMIR, Work IR, and the frontend workflow that consumes the token artifact.

Design definition

The definition is the source. It retains the rules that produce the system so a revision changes generation, not exported CSS.

ConceptWhat it retains
ScalesMethod, parameters, named steps, and references
ColorBase colors, generation parameters, and semantic assignments
TypographyTypeface references and roles tied to generated values
SpacingNamed values and references to scale steps
Themes and breakpointsRole mappings, overrides, and named thresholds
TargetsAdapters that serialize the compiled system, such as CSS custom properties

Compilation resolves the definition into a target-independent system with provenance, then emits artifacts and a build manifest. The same definition, engine, and adapter versions produce the same artifact content. Exported values cannot substitute for authoring rules: they lose the information needed to regenerate the system.

Musical relationships

Music theory supplies the grammar of relationship: scale, degree, interval, filter, consonance.

A scale pattern and a filter choose which degrees ship. Families of tokens are registers of that scale. Interval identification names the ratio between two values — unison, fifth, tritone — and grades consonance as a property of the system. Nesting asks whether outer radius − padding lands on another step.

These calculations are deterministic. They describe the system. They do not certify that a composition is beautiful, accessible, or finished. Harmony is a readable relationship; looking at the specimen remains the judgment.

Operators

A person speaks in the ordinary language of design: stronger, quieter, noisier, bolder. That language does not become a table of phrase-to-parameter rules. The agent interprets the request against the current definition and specimen, then changes explicit parameters.

DX exposes the same operations through a CLI and through MCP. Adapters invoke one engine. Skillex makes the methods discoverable: packs teach scale choice, revision, diagnostics, and how to read a specimen. Packs carry guidance, not the engine.

MCP gives the agent structured results. It does not, by itself, give the agent a view of pixels. Sight of the specimen is a separate capability; a person can always open the page.

Specimens

A specimen is a DX output, not a separate design application. It consumes the same compiled tokens and token CSS as any downstream artifact. It shows palettes, type, spacing, relationships, and differences on stable illustrative markup.

The portable form is a page that can be opened or shared. The served form is that page kept current as the definition changes, including changes made by an agent. A failed compilation leaves the last successful specimen visible and labelled. The displayed page always identifies the successful build it represents.

Scope

The definition is the source; CSS is an export. Grid composition, component libraries, and application validation sit downstream of the token artifact. A hosted service may expose the same operations; identity and tenancy belong to that service, not to the calculation.

Token diagnostics describe the generated system. They do not establish that a consuming application is correct.

Example: make the type quieter

A person says the type feels too loud for an editorial page.

The agent retrieves DX method guidance through Skillex and inspects the definition, the compiled tokens, and the specimen. It records a baseline and opens the live page. Using the guidance and what the page shows, it changes the system — a quieter scale filter, a reduced type register, a different role mapping — rather than editing generated CSS.

DX compiles the definition. The specimen updates from the same tokens that would be exported. Person and agent review that identified build against the baseline. Accepted tokens become artifacts. Provenance points to the generating method and step, not to the word “quieter.”

The request stays in the language of design. The definition stays the machine interface. DX calculates the system the agent specified.

Further reading