UNPKG

512 BTypeScriptView Raw
1export type FontStyleType = 'normal' | 'italic';
2export type FontWeightType = '100' | '200' | '300' | 'normal' | '400' | '500' | '600' | 'bold' | '700' | '800' | '900' | number;
3export interface ParsedFont {
4 fontStyle?: FontStyleType;
5 fontVariant?: string;
6 fontWeight?: FontWeightType;
7 lineHeight?: string;
8 fontSize?: string;
9 fontFamily?: string;
10 fontVariationSettings?: FontVariationSettingsType[];
11}
12export type FontVariationSettingsType = {
13 axis: string;
14 value: number;
15};