@primer/primitives
Version:
Typography, spacing, and color primitives for Primer design system
10 lines (9 loc) • 472 B
TypeScript
import type { Transform } from 'style-dictionary/types';
export declare const parseFontWeight: (value: unknown) => number;
/**
* @description converts fontWeight tokens value to numeric value
* @type value transformer — [StyleDictionary.ValueTransform](https://github.com/amzn/style-dictionary/blob/main/types/Transform.d.ts)
* @matcher matches all tokens of $type `fontWeight`
* @transformer returns a number
*/
export declare const fontWeightToNumber: Transform;