Skip to content

pantoken / packages/core/src / Token

Interface: Token

Beta

A single design token in the canonical @property-aligned IR.

Properties

name

name: string

The custom-property name, e.g. --instui-color-background-base.


syntax

syntax: string

The @property syntax descriptor ("<color>", "<length>", "<image>", …) or "*" for contextual values.


inherits

inherits: boolean

The @property inherits flag.


value

value: string

A concrete value, a var(...) reference, or a light-dark(a, b) pair.


themed?

optional themed?: boolean

Beta

True when the light and dark resolutions differ (value is a light-dark()).


refersTo?

optional refersTo?: string

Beta

The token this one references, when value is a single var(...).


meta?

optional meta?: TokenMeta

Beta

Non-value metadata.