Skip to content

Interface: CssTokenConsumed ​

Defined in: packages/core/src/model.ts:290

A design token the component consumes via var(--*). The set is derived from the CSS; an authored @tokens tag annotates one with prose (and may add a token not literally found via var()). Type and resolved value are not modeled here — an emitter resolves them via its own token source (e.g. a resolveToken hook).

Properties ​

description? ​

ts
description?: string;

Defined in: packages/core/src/model.ts:294

Prose from an @tokens doc tag, when authored.


name ​

ts
name: string;

Defined in: packages/core/src/model.ts:292

The custom-property name, e.g. --color-primary.

Released under the MIT License