@primer/primitives
Version:
Typography, spacing, and color primitives for Primer design system
15 lines (14 loc) • 612 B
TypeScript
import type { Transform } from 'style-dictionary/types';
/**
* takes a value and returns it if its a string or concats strings in an array quoting strings with spaces
* @param value
* @returns string
*/
export declare const parseFontFamily: (value: unknown) => string;
/**
* @description converts fontFamily tokens value to string
* @type value transformer — [StyleDictionary.ValueTransform](https://github.com/amzn/style-dictionary/blob/main/types/Transform.d.ts)
* @matcher matches all tokens of $type `fontFamily`
* @transformer returns a string
*/
export declare const fontFamilyToCss: Transform;