token alias

A token whose value is a reference to another token, written in curly braces such as {semantic.action.bg}.

In more detail

Aliases chain the three token tiers together and avoid copying the same value into many places. A resolver follows each reference until it reaches a literal value. It must also detect cycles, where tokens point at each other in a loop, and stop with an error.

Example

"component.btn.primary": { "$value": "{semantic.action.bg}" } resolves through semantic.action.bg to #3b82f6.

Related terms

Taught in

References