style-dictionary-utils
Version:
Utilities to use in your style dictionary config
11 lines (10 loc) • 317 B
JavaScript
/**
* @name isTypography
* @type filter
* @description only returns tokens of type `typography`
*/
export const isTypographyFilter = (token) => (token === null || token === void 0 ? void 0 : token.$type) === 'typography';
export const isTypography = {
name: 'isTypography',
filter: isTypographyFilter,
};