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
Parameter | Type | Description |
---|---|---|
variable | FigmaVariable | Figma Variable |
Returns
boolean
true
when the variable should be considered as token