Implementation
static final defaults = SunnyTextTheme._(
fontScale: 1.0,
body1Normal: TextStyle(
fontSize: body1Size,
letterSpacing: body1Spacing,
height: body1Height,
fontFamily: defaultFontFamily,
fontWeight: FontWeight.normal,
color: sunnyColors.text,
),
body1Medium: TextStyle(
fontSize: body1Size,
letterSpacing: body1Spacing,
height: body1Height,
fontFamily: defaultFontFamily,
color: sunnyColors.text,
fontWeight: mediumWeight,
),
body1Bold: TextStyle(
fontSize: body1Size,
letterSpacing: body1Spacing,
height: body1Height,
fontFamily: defaultFontFamily,
fontWeight: FontWeight.bold,
color: sunnyColors.text,
),
body1Light: TextStyle(
fontSize: body1Size,
letterSpacing: body1Spacing,
height: body1Height,
fontFamily: defaultFontFamily,
fontWeight: FontWeight.normal,
color: sunnyColors.textLight,
),
body2Normal: TextStyle(
fontSize: body2Size,
letterSpacing: body2Spacing,
height: body2Height,
fontFamily: defaultFontFamily,
color: sunnyColors.text,
fontWeight: FontWeight.normal,
),
body2Medium: TextStyle(
fontSize: body2Size,
letterSpacing: body2Spacing,
height: body2Height,
fontFamily: defaultFontFamily,
color: sunnyColors.text,
fontWeight: mediumWeight,
),
body2Bold: TextStyle(
fontSize: body2Size,
letterSpacing: body2Spacing,
height: body2Height,
fontFamily: defaultFontFamily,
color: sunnyColors.text,
fontWeight: FontWeight.bold,
),
body2Light: TextStyle(
fontSize: body2Size,
letterSpacing: body2Spacing,
height: body2Height,
fontFamily: defaultFontFamily,
color: sunnyColors.textLight,
fontWeight: FontWeight.normal,
),
header1: TextStyle(
fontFamily: defaultFontFamily,
fontWeight: mediumWeight,
letterSpacing: 0.63,
fontSize: 32,
color: sunnyColors.text,
),
header2: TextStyle(
fontFamily: defaultFontFamily,
fontWeight: mediumWeight,
letterSpacing: 0.63,
fontSize: 28,
color: sunnyColors.text,
),
header3: TextStyle(
fontFamily: defaultFontFamily,
fontWeight: FontWeight.bold,
height: 32 / 24,
letterSpacing: 0.75,
fontSize: 24,
color: sunnyColors.g700,
),
header4: TextStyle(
fontFamily: defaultFontFamily,
fontWeight: mediumWeight,
letterSpacing: 0.63,
height: 27.0 / 20,
fontSize: 20,
color: sunnyColors.text,
),
input1: TextStyle(
fontSize: body1Size,
letterSpacing: body1Spacing,
height: body1Height,
fontFamily: defaultFontFamily,
fontWeight: FontWeight.normal,
color: sunnyColors.text,
),
input2: TextStyle(
fontSize: body2Size,
letterSpacing: body2Spacing,
height: body2Height,
fontFamily: defaultFontFamily,
fontWeight: FontWeight.normal,
color: sunnyColors.text,
),
body3Link: TextStyle(
fontSize: body3Size,
letterSpacing: body3Spacing,
height: body3Height,
fontFamily: defaultFontFamily,
fontWeight: mediumWeight,
color: sunnyColors.linkColor,
),
body3Light: TextStyle(
fontSize: body3Size,
letterSpacing: body3Spacing,
height: body3Height,
fontFamily: defaultFontFamily,
fontWeight: FontWeight.normal,
color: sunnyColors.textLight,
),
hero: TextStyle(
fontSize: 20,
letterSpacing: heroSpacing,
height: 30.0 / 20.0,
fontFamily: defaultFontFamily,
fontWeight: FontWeight.normal,
color: sunnyColors.text,
),
heroMedium: TextStyle(
fontSize: 20,
letterSpacing: heroSpacing,
height: 30.0 / 20.0,
fontFamily: defaultFontFamily,
fontWeight: FontWeight.w500,
color: sunnyColors.text,
),
heroBold: TextStyle(
fontSize: 20,
letterSpacing: heroSpacing,
height: 30.0 / 20.0,
fontFamily: defaultFontFamily,
fontWeight: FontWeight.bold,
color: sunnyColors.text,
),
input0: TextStyle(
fontSize: input0Size,
letterSpacing: input0Spacing,
height: 30.0 / 20.0,
fontFamily: defaultFontFamily,
fontWeight: FontWeight.normal,
color: sunnyColors.text,
),
placeholder0: TextStyle(
fontSize: input0Size,
letterSpacing: input0Spacing,
height: 30.0 / 20.0,
fontFamily: defaultFontFamily,
fontWeight: FontWeight.normal,
color: sunnyColors.textLight,
),
);