Skip to content

Theemo / @theemo/figma / isTokenByStyle

Function: isTokenByStyle()

ts
function isTokenByStyle(style): boolean

Default implementation for isTokenByStyle()

Mimics Figma's behavior on handling styles beginning with a .

Parameters

ParameterTypeDescription
styleStyleFigma Style

Returns

boolean

false when style starts with a ., otherwise true

See

Documentation

Source

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