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

Properties

description?

ts
optional description: string;

The description for the token

See

Design Tokens Format Module

Inherited from

Token.description

Source

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


figma

ts
figma: object;

The extended Figma properties

MemberTypeDescription
fileFileThe file from where the token was sourced
nodeNodeThe respective node at which the token was found
styleStyleThe related Style node the token was found
variableFigmaVariableThe 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