@primer/primitives
Version:
Typography, spacing, and color primitives for Primer design system
9 lines (8 loc) • 418 B
TypeScript
import type { Transform } from 'style-dictionary/types';
/**
* @description converts duration tokens string value to number with `ms` unit
* @type value transformer — [StyleDictionary.ValueTransform](https://github.com/amzn/style-dictionary/blob/main/types/Transform.d.ts)
* @matcher matches all tokens of $type `duration`
* @transformer returns a css duration
*/
export declare const durationToCss: Transform;