| |
| |
| |
| |
| |
| |
| |
|
|
| |
| |
| |
| |
|
|
| export interface PaperTextVariant { |
| variant: string; |
| description: string; |
| } |
|
|
| export const paperTextVariants: readonly PaperTextVariant[] = [ |
| { variant: 'displayLarge', description: '57px / β1.25 tracking' }, |
| { variant: 'displayMedium', description: '45px / β1.25 tracking' }, |
| { variant: 'displaySmall', description: '36px / 0 tracking' }, |
| { variant: 'headlineLarge', description: '32px / 0 tracking' }, |
| { variant: 'headlineMedium', description: '28px / 0 tracking' }, |
| { variant: 'headlineSmall', description: '24px / 0 tracking' }, |
| { variant: 'titleLarge', description: '22px / 0 tracking' }, |
| { variant: 'titleMedium', description: '16px / 0.15 tracking, medium weight' }, |
| { variant: 'titleSmall', description: '14px / 0.1 tracking, medium weight' }, |
| { variant: 'bodyLarge', description: '16px / 0.5 tracking' }, |
| { variant: 'bodyMedium', description: '14px / 0.25 tracking' }, |
| { variant: 'bodySmall', description: '12px / 0.4 tracking' }, |
| { variant: 'labelLarge', description: '14px / 0.1 tracking, medium weight' }, |
| { variant: 'labelMedium', description: '12px / 0.5 tracking, medium weight' }, |
| { variant: 'labelSmall', description: '11px / 0.5 tracking, medium weight' }, |
| ] as const; |
|
|
| |
| export type PaperVariant = (typeof paperTextVariants)[number]['variant']; |
|
|
| |
| |
|
|
| export const fontFamily = { |
| regular: 'System', |
| medium: 'System', |
| bold: 'System', |
| light: 'System', |
| thin: 'System', |
| } as const; |
|
|
| |
| |
| |
| |
| export const fontSizes: Record<PaperVariant, number> = { |
| displayLarge: 57, |
| displayMedium: 45, |
| displaySmall: 36, |
| headlineLarge: 32, |
| headlineMedium: 28, |
| headlineSmall: 24, |
| titleLarge: 22, |
| titleMedium: 16, |
| titleSmall: 14, |
| bodyLarge: 16, |
| bodyMedium: 14, |
| bodySmall: 12, |
| labelLarge: 14, |
| labelMedium: 12, |
| labelSmall: 11, |
| }; |
|
|