Skip to content

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 ParameterDefault type
T extends TokenType"unknown"

Properties

description?

ts
optional description: string;

The description for the token

See

Design Tokens Format Module

Inherited from

Token.description

Defined in

packages/@theemo/tokens/dist/index.d.ts:315


figma

ts
figma: object;

The extended Figma properties

file

ts
file: File;

The file from where the token was sourced

node?

ts
optional node: Node;

The respective node at which the token was found

style?

ts
optional style: Style;

The related Style node the token was found

variable?

ts
optional variable: FigmaVariable;

The related FigmaVariable the token token was found

Defined in

packages/@theemo/figma/src/token.ts:14


name

ts
name: string;

The tokens name

See

Inherited from

Token.name

Defined in

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

Defined in

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

Defined in

packages/@theemo/tokens/dist/index.d.ts:337