style-dictionary-utils
Version:
Utilities to use in your style dictionary config
12 lines (11 loc) • 343 B
JavaScript
/**
* @name isSource
* @type filter
* @description only returns tokens that are coming from a `source` file and
* not from an `included` file
*/
export const isSourceFilter = (token) => (token === null || token === void 0 ? void 0 : token.isSource) === true;
export const isSource = {
name: 'isSource',
filter: isSourceFilter,
};