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