NiceTypography.standard constructor

NiceTypography.standard()

Standard typography using the system font.

Implementation

factory NiceTypography.standard() {
  const family = 'Segoe UI';
  return const NiceTypography(
    fontFamily: family,
    heading1: TextStyle(fontFamily: family, fontSize: 28, fontWeight: FontWeight.w700, height: 1.3),
    heading2: TextStyle(fontFamily: family, fontSize: 22, fontWeight: FontWeight.w600, height: 1.3),
    heading3: TextStyle(fontFamily: family, fontSize: 18, fontWeight: FontWeight.w600, height: 1.4),
    body: TextStyle(fontFamily: family, fontSize: 14, fontWeight: FontWeight.w400, height: 1.5),
    bodySmall: TextStyle(fontFamily: family, fontSize: 12, fontWeight: FontWeight.w400, height: 1.5),
    caption: TextStyle(fontFamily: family, fontSize: 11, fontWeight: FontWeight.w400, height: 1.4),
    label: TextStyle(fontFamily: family, fontSize: 13, fontWeight: FontWeight.w500, height: 1.4),
    button: TextStyle(fontFamily: family, fontSize: 14, fontWeight: FontWeight.w600, height: 1.0),
  );
}