Theemo / @theemo/figma / FigmaToken
Interface: FigmaToken<T>
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;The description for the token
See
Inherited from
Token.description
Defined in
packages/@theemo/tokens/dist/index.d.ts:315
figma
figma: object;The extended Figma properties
file
file: File;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
Defined in
packages/@theemo/figma/src/token.ts:14
name
name: string;The tokens name
See
Inherited from
Token.name
Defined in
packages/@theemo/tokens/dist/index.d.ts:309
type?
optional type: keyof TokenTypeRegistry | T;The type helps token translation tools to generate the respective value in the appropriate format.
Remarks
Resources:
See
Inherited from
Token.type
Defined in
packages/@theemo/tokens/dist/index.d.ts:327
value?
optional value: string | ValueFor<T>;The tokens computed value
Remarks
References:
See
DTCG Glossary (Design Token Value)
Inherited from
Token.value
Defined in
packages/@theemo/tokens/dist/index.d.ts:337