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

Defined in

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


collection

ts
readonly collection: VariableCollection;

Defined in

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


description

ts
readonly description: string;

Inherited from

Variable.description

Defined in

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


hiddenFromPublishing

ts
readonly hiddenFromPublishing: boolean;

Inherited from

Variable.hiddenFromPublishing

Defined in

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


id

ts
readonly id: string;

Inherited from

Variable.id

Defined in

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


key

ts
readonly key: string;

Inherited from

Variable.key

Defined in

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


name

ts
readonly name: string;

Inherited from

Variable.name

Defined in

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


remote

ts
readonly remote: boolean;

Inherited from

Variable.remote

Defined in

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


resolvedType

ts
readonly resolvedType: VariableResolvedDataType;

Inherited from

Variable.resolvedType

Defined in

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


scopes

ts
readonly scopes: VariableScope[];

Inherited from

Variable.scopes

Defined in

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


valuesByMode

ts
readonly valuesByMode: object;

Index Signature

[modeId: string]: VariableValue

Inherited from

Variable.valuesByMode

Defined in

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


variableCollectionId

ts
readonly variableCollectionId: string;

Inherited from

Variable.variableCollectionId

Defined in

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