UNPKG

@primer/primitives

Version:

Typography, spacing, and color primitives for Primer design system

15 lines (14 loc) 716 B
import type { Config, Transform, TransformedToken } 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: (token: TransformedToken, fontFamilies: Record<string, string> | undefined, options: Config) => 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 fontFamilyToFigma: Transform;