UNPKG

style-dictionary-utils

Version:
11 lines (10 loc) 303 B
/** * @name isGradient * @type filter * @description only returns tokens of type `gradient` */ export const isGradientFilter = (token) => (token === null || token === void 0 ? void 0 : token.$type) === 'gradient'; export const isGradient = { name: 'isGradient', filter: isGradientFilter, };