style-dictionary-utils
Version:
Utilities to use in your style dictionary config
15 lines (14 loc) • 574 B
TypeScript
import { Transform } from 'style-dictionary/types';
import { DimensionTokenValue } from './dimension-css.js';
import { FontWeightNumeric, FontWeightString } from './fontWeight-css.js';
export type TypographyTokenValue = {
fontFamily: string | string[];
fontSize: DimensionTokenValue;
fontWeight: FontWeightString | FontWeightNumeric;
lineHeight: number;
letterSpacing: DimensionTokenValue;
};
/**
* @description convert a w3c `typography` token to a value that can be used with the css `font` property
*/
export declare const typographyCss: Transform;