Theemo / @theemo/figma / FigmaToken
Interface: FigmaToken<T>
Defined in: figma/src/token.ts:10
The FigmaToken used in the figmaReader.
Extends the Token from @theemo/token with additional Figma properties
Extends
Token<T>
Type Parameters
| Type Parameter | Default type |
|---|---|
T extends TokenType | "unknown" |
Properties
description?
optional description: string;Defined in: tokens/dist/index.d.ts:357
The description for the token
See
Inherited from
Token.descriptionfigma
figma: object;Defined in: figma/src/token.ts:14
The extended Figma properties
file
file: GetFileResult;The file from where the token was sourced
node?
optional node: Node;The respective node at which the token was found
style?
optional style: Style;The related Style node the token was found
variable?
optional variable: FigmaVariable;The related FigmaVariable the token token was found
name
name: string;Defined in: tokens/dist/index.d.ts:351
The tokens name
See
Inherited from
Token.nametype?
optional type: keyof TokenTypeRegistry | T;Defined in: tokens/dist/index.d.ts:369
The type helps token translation tools to generate the respective value in the appropriate format.
Remarks
Resources:
See
Inherited from
Token.typevalue?
optional value: `{${string}}` | ValueFor<T>;Defined in: tokens/dist/index.d.ts:379
The tokens computed value
Remarks
References:
See
DTCG Glossary (Design Token Value)
Inherited from
Token.value