UNPKG

@tokens-studio/sd-transforms

Version:

Custom transforms for Style-Dictionary, to work with Design Tokens that are exported from Tokens Studio

10 lines (9 loc) 426 B
import { excludeParentKeys } from './exclude-parent-keys.js'; import { addFontStyles } from './add-font-styles.js'; import { alignTypes } from './align-types.js'; export function parseTokens(tokens, transformOpts) { const excluded = excludeParentKeys(tokens, transformOpts); const alignedTypes = alignTypes(excluded); const withFontStyles = addFontStyles(alignedTypes, transformOpts); return withFontStyles; }