ThemeTypography constructor
const
ThemeTypography({
- String fontFamily = 'system-ui, sans-serif',
- String monoFamily = 'ui-monospace, SFMono-Regular, Menlo, Monaco, monospace',
- double xs = 12,
- double sm = 14,
- double md = 16,
- double lg = 18,
- double xl = 20,
- double xl2 = 24,
- double xl3 = 32,
- double xl4 = 40,
- double xl5 = 48,
- double xl6 = 56,
- double xl7 = 64,
- double xl8 = 96,
- double xl9 = 128,
- int weightRegular = 400,
- int weightMedium = 500,
- int weightSemiBold = 600,
- int weightBold = 700,
- Map<
String, String> custom = const {},
Implementation
const ThemeTypography({
this.fontFamily = 'system-ui, sans-serif',
this.monoFamily = 'ui-monospace, SFMono-Regular, Menlo, Monaco, monospace',
this.xs = 12,
this.sm = 14,
this.md = 16,
this.lg = 18,
this.xl = 20,
this.xl2 = 24,
this.xl3 = 32,
this.xl4 = 40,
this.xl5 = 48,
this.xl6 = 56,
this.xl7 = 64,
this.xl8 = 96,
this.xl9 = 128,
this.weightRegular = 400,
this.weightMedium = 500,
this.weightSemiBold = 600,
this.weightBold = 700,
this.custom = const {},
});