@tokens-studio/sd-transforms
Version:
Custom transforms for Style-Dictionary, to work with Design Tokens that are exported from Tokens Studio
7 lines (6 loc) • 330 B
TypeScript
import type { DesignToken } from 'style-dictionary/types';
/**
* Helper: Maps the token description to a style dictionary comment attribute - this will be picked up by some Style Dictionary
* formats and automatically output as code comments
*/
export declare function mapDescriptionToComment(token: DesignToken): DesignToken;