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 | Value |
---|---|
T extends TokenType | "unknown" |
Properties
description?
ts
optional description: string;
The description for the token
See
Inherited from
Token.description
Source
packages/@theemo/tokens/dist/index.d.ts:315
figma
ts
figma: object;
The extended Figma properties
Member | Type | Description |
---|---|---|
file | File | The file from where the token was sourced |
node | Node | The respective node at which the token was found |
style | Style | The related Style node the token was found |
variable | FigmaVariable | The related FigmaVariable the token token was found |
Source
packages/@theemo/figma/src/token.ts:14
name
ts
name: string;
The tokens name
See
Inherited from
Token.name
Source
packages/@theemo/tokens/dist/index.d.ts:309
type?
ts
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
Source
packages/@theemo/tokens/dist/index.d.ts:327
value?
ts
optional value: string | ValueFor<T>;
The tokens computed value
Remarks
References:
See
DTCG Glossary (Design Token Value)
Inherited from
Token.value
Source
packages/@theemo/tokens/dist/index.d.ts:337