Skip to content

Theemo / @theemo/tokens / isColor

Function: isColor()

ts
function isColor(token): boolean

Checks whether the token is a color token

Parameters

ParameterTypeDescription
tokenToken<"unknown">the Token

Returns

boolean

true if the token is of type color or false if not

Source

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