light static method

ThemeData light()

Implementation

static md.ThemeData light() {
  var baseTextStyle = md.TextStyle(
    color: md.Colors.black,
    fontWeight: md.FontWeight.w400,
  );

  return md.ThemeData.light().copyWith(
    primaryColor: md.Colors.white,
    scaffoldBackgroundColor: md.Colors.grey[300],
    accentColor: md.Colors.blue,
    textTheme: md.TextTheme(
      // headers
      headline1: baseTextStyle.copyWith(
        fontSize: 23,
        fontWeight: md.FontWeight.w500,
      ),
      headline2: baseTextStyle.copyWith(
        fontSize: 23,
      ),
      headline3: baseTextStyle.copyWith(
        fontSize: 21,
        fontWeight: md.FontWeight.w500,
      ),
      headline4: baseTextStyle.copyWith(
        fontSize: 21,
      ),
      headline5: baseTextStyle.copyWith(
        fontSize: 19,
        fontWeight: md.FontWeight.w500,
      ),
      headline6: baseTextStyle.copyWith(
        fontSize: 19,
      ),
      // subtitle
      subtitle2: baseTextStyle.copyWith(
        fontSize: 17,
        fontWeight: md.FontWeight.w500,
      ),
      subtitle1: baseTextStyle.copyWith(
        fontSize: 17,
      ),
      // bodyText
      bodyText2: baseTextStyle.copyWith(
        fontSize: 15,
        fontWeight: md.FontWeight.w500,
      ),
      bodyText1: baseTextStyle.copyWith(
        fontSize: 15,
      ),
      // button
      button: baseTextStyle.copyWith(
        fontSize: 15,
        fontWeight: md.FontWeight.w500,
      ),
      // caption
      caption: baseTextStyle.copyWith(
        fontSize: 13,
      ),
      // overline
      overline: baseTextStyle.copyWith(
        fontSize: 13,
      ),
    ),
  );
}