@primer/primitives
Version:
Typography, spacing, and color primitives for Primer design system
10 lines (9 loc) • 635 B
TypeScript
import type { PlatformConfig, Transform, TransformedToken } from 'style-dictionary/types';
export declare const transformNamePathToFigma: (token: TransformedToken, options?: PlatformConfig) => string;
/**
* @description converts the [TransformedToken's](https://github.com/amzn/style-dictionary/blob/main/types/TransformedToken.d.ts) `.path` array to a specific figma name
* @type name transformer — [StyleDictionary.NameTransform](https://github.com/amzn/style-dictionary/blob/main/types/Transform.d.ts)
* @matcher omitted to match all tokens
* @transformer returns `string`
*/
export declare const namePathToFigma: Transform;