Skip to content

Theemo / @theemo/tokens / isGradient

Function: isGradient()

ts
function isGradient(token): boolean;

Defined in: packages/tokens/src/filters/is-gradient.ts:9

Checks whether the token is a gradient

Parameters

ParameterTypeDescription
tokenTokenthe token

Returns

boolean

true if the token is a gradient or false if not