Skip to content

Theemo / @theemo/figma / FigmaVariable

Interface: FigmaVariable

A FigmaVariable is a Variable which has their VariableCollection attached.

See

Figma Variable Documentation

Remarks

Figma itself treats variables and collections as two objects. As you might need to have access to both when in sync mode, a FigmaVariable does exactly that.

Extends

  • Variable

Properties

codeSyntax

ts
readonly codeSyntax: VariableCodeSyntax;

Inherited from

Variable.codeSyntax

Source

packages/@theemo/figma/src/-figma-variable-types.ts:68


collection

ts
readonly collection: VariableCollection;

Source

packages/@theemo/figma/src/-figma-variable-types.ts:84


description

ts
readonly description: string;

Inherited from

Variable.description

Source

packages/@theemo/figma/src/-figma-variable-types.ts:65


hiddenFromPublishing

ts
readonly hiddenFromPublishing: boolean;

Inherited from

Variable.hiddenFromPublishing

Source

packages/@theemo/figma/src/-figma-variable-types.ts:66


id

ts
readonly id: string;

Inherited from

Variable.id

Source

packages/@theemo/figma/src/-figma-variable-types.ts:56


key

ts
readonly key: string;

Inherited from

Variable.key

Source

packages/@theemo/figma/src/-figma-variable-types.ts:58


name

ts
readonly name: string;

Inherited from

Variable.name

Source

packages/@theemo/figma/src/-figma-variable-types.ts:57


remote

ts
readonly remote: boolean;

Inherited from

Variable.remote

Source

packages/@theemo/figma/src/-figma-variable-types.ts:64


resolvedType

ts
readonly resolvedType: VariableResolvedDataType;

Inherited from

Variable.resolvedType

Source

packages/@theemo/figma/src/-figma-variable-types.ts:60


scopes

ts
readonly scopes: VariableScope[];

Inherited from

Variable.scopes

Source

packages/@theemo/figma/src/-figma-variable-types.ts:67


valuesByMode

ts
readonly valuesByMode: object;

Index signature

[modeId: string]: VariableValue

Inherited from

Variable.valuesByMode

Source

packages/@theemo/figma/src/-figma-variable-types.ts:61


variableCollectionId

ts
readonly variableCollectionId: string;

Inherited from

Variable.variableCollectionId

Source

packages/@theemo/figma/src/-figma-variable-types.ts:59