Theemo / @theemo/figma / isTokenByStyle
Function: isTokenByStyle()
ts
function isTokenByStyle(style): boolean;
Defined in: packages/figma/src/defaults.ts:47
Default implementation for `isTokenByStyle()`
Mimics Figma's behavior on handling styles beginning with a .
Parameters
Parameter | Type | Description |
---|---|---|
style | Style | Figma Style |
Returns
boolean
false
when style starts with a .
, otherwise true