UNPKG

@tokens-studio/sd-transforms

Version:

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

41 lines (40 loc) 1.78 kB
export { register, getTransforms } from './register.js'; export { addFontStyles } from './preprocessors/add-font-styles.js'; export { alignTypes } from './preprocessors/align-types.js'; export { excludeParentKeys } from './preprocessors/exclude-parent-keys.js'; export { parseTokens } from './preprocessors/parse-tokens.js'; export { mapDescriptionToComment } from './mapDescriptionToComment.js'; export { checkAndEvaluateMath } from './checkAndEvaluateMath.js'; export { transformDimension } from './transformDimension.js'; export { transformFontWeight } from './transformFontWeight.js'; export { transformColorModifiers } from './color-modifiers/transformColorModifiers.js'; export { transformLineHeight } from './transformLineHeight.js'; export type { TransformOptions } from './TransformOptions.js'; export { transformOpacity } from './transformOpacity.js'; export { transformHEXRGBaForCSS } from './css/transformHEXRGBa.js'; export { transformLetterSpacingForCSS } from './css/transformLetterSpacing.js'; export { transformShadow } from './css/transformShadow.js'; export { transformTypographyForCompose } from './compose/transformTypography.js'; export { permutateThemes } from './permutateThemes.js'; /** * Some of the Tokens Studio typography/shadow props need to be aligned * when expanding them through StyleDictionary expand */ export declare const expandTypesMap: { typography: { paragraphSpacing: string; paragraphIndent: string; lineHeight: string; letterSpacing: string; }; composition: { boxShadow: string; spacing: string; sizing: string; borderRadius: string; borderWidth: string; paragraphSpacing: string; paragraphIndent: string; text: string; }; };