Theemo / @theemo/figma / isTokenByVariable
Function: isTokenByVariable()
ts
function isTokenByVariable(variable): boolean;
Defined in: packages/figma/src/defaults.ts:117
Default implementation for `isTokenByVariable()`
Considers the variable to a token when:
- It is a published variable
- The variable is not of type boolean
Parameters
Parameter | Type | Description |
---|---|---|
variable | FigmaVariable | Figma Variable |
Returns
boolean
true
when the variable should be considered as token