MinTypography.defaultSans constructor
MinTypography.defaultSans(
{ - String? fontFamily,
- Color? mutedColor,
})
Implementation
factory MinTypography.defaultSans({String? fontFamily, Color? mutedColor}) {
return MinTypography(
h1: TextStyle(
fontSize: 30,
height: 1.2,
fontWeight: FontWeight.bold,
fontFamily: fontFamily,
),
h2: TextStyle(
fontSize: 24,
height: 1.25,
fontWeight: FontWeight.bold,
fontFamily: fontFamily,
),
h3: TextStyle(
fontSize: 20,
height: 1.3,
fontWeight: FontWeight.w600,
fontFamily: fontFamily,
),
body: TextStyle(
fontSize: 16,
height: 1.5,
fontWeight: FontWeight.normal,
fontFamily: fontFamily,
),
small: TextStyle(
fontSize: 14,
height: 1.4,
fontWeight: FontWeight.normal,
fontFamily: fontFamily,
),
muted: TextStyle(
fontSize: 14,
height: 1.4,
color: mutedColor,
fontFamily: fontFamily,
),
);
}