Skip to content

Theemo / @theemo/style-dictionary / isConstrainedByPlatform

Function: isConstrainedByPlatform()

ts
function isConstrainedByPlatform(token): boolean;

Defined in: packages/style-dictionary/src/filters/constrained.ts:60

Matchs the token against constraints given for the platform.

It's using the constraints provided by the theemo/attribute transform

Parameters

ParameterType
tokenTransformedToken

Returns

boolean

See

theemoAttributesTransform