Skip to content

Theemo / @theemo/tokens / isGradient

Function: isGradient()

ts
function isGradient(token): boolean

Checks whether the token is a gradient

Parameters

ParameterTypeDescription
tokenToken<"unknown">the token

Returns

boolean

true if the token is a gradient or false if not

Source

packages/@theemo/tokens/src/filters/is-gradient.ts:9