@atlaskit/tokens
Version:
Design tokens are the single source of truth to name and store design decisions.
12 lines (11 loc) • 480 B
TypeScript
/**
* Transforms a style dictionary token path to a fully qualified token id
* These Ids are intended to be used internal to this package by style-dictionary
*
* [default] key words will NOT be omitted from the path
*
* @example <caption>Passing a path as a string</caption>
* // Returns color.background.bold.[default]
* getFullyQualifiedTokenId(['color', 'background', 'bold', '[default]'])
*/
export declare const getFullyQualifiedTokenId: (path: string[]) => string;