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