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