Skip to content

Theemo / @theemo/figma / isTokenByVariable

Function: isTokenByVariable()

ts
function isTokenByVariable(variable): boolean

Default implementation for isTokenByVariable()

Considers the variable to a token when:

  • It is a published variable
  • The variable is not of type boolean

Parameters

ParameterTypeDescription
variableFigmaVariableFigma Variable

Returns

boolean

true when the variable should be considered as token

See

Documentation

Defined in

packages/@theemo/figma/src/defaults.ts:117