Last active
April 4, 2019 23:50
-
-
Save scottbaggett/ed2bd2d564a3ef29f6f3283f3ee9dccb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/cupertino.dart'; | |
import 'package:flutter/material.dart'; | |
// Colors | |
const black = const Color(0xFF000000); | |
const indigo = const Color(0xFF4957F4); | |
const brand = const Color(0xFF996D17); | |
const divider = const Color(0xFFCFCFCF); | |
const grey = const Color(0xFF7F7F7F); | |
const darkGrey = const Color(0xFF606060); | |
const darkestGrey = const Color(0xFF404040); | |
const parkMGMBrand = const Color(0xFF5B794C); | |
const error = const Color(0xFFE75B52); | |
// Typography | |
TextStyle display4(BuildContext context) { | |
return Theme.of(context).textTheme.display1.copyWith( | |
fontSize: 48.0, | |
color: black, | |
fontFamily: "Calibre_R", | |
letterSpacing: -0.3, | |
height: 1.1, | |
fontWeight: FontWeight.w500, | |
); | |
} | |
TextStyle display3(BuildContext context) { | |
return Theme.of(context).textTheme.display1.copyWith( | |
fontSize: 40.0, | |
color: black, | |
fontFamily: "Calibre_R", | |
height: 1.1, | |
letterSpacing: -1, | |
fontWeight: FontWeight.w500, | |
); | |
} | |
TextStyle display2(BuildContext context) { | |
return Theme.of(context).textTheme.display1.copyWith( | |
fontSize: 35.0, | |
color: black, | |
fontFamily: "Calibre_R", | |
fontWeight: FontWeight.w500, | |
); | |
} | |
TextStyle display1(BuildContext context) { | |
return Theme.of(context).textTheme.display1.copyWith( | |
fontSize: 28.0, | |
color: black, | |
fontFamily: "Calibre_R", | |
height: 1.1, | |
fontWeight: FontWeight.w500, | |
); | |
} | |
TextStyle headline(BuildContext context) { | |
return Theme.of(context).textTheme.display1.copyWith( | |
fontSize: 20.0, | |
color: black, | |
height: 1.1, | |
fontFamily: "Calibre_R", | |
fontWeight: FontWeight.w500, | |
); | |
} | |
TextStyle body1(BuildContext context) { | |
return Theme.of(context).textTheme.display1.copyWith( | |
fontSize: 15.0, | |
color: black, | |
fontFamily: "Calibre_R", | |
height: 1.1, | |
fontWeight: FontWeight.w500, | |
); | |
} | |
TextStyle body2(BuildContext context) { | |
return Theme.of(context).textTheme.display1.copyWith( | |
fontSize: 12.0, | |
color: black, | |
fontFamily: "Calibre_R", | |
height: 1.1, | |
fontWeight: FontWeight.w500, | |
); | |
} | |
TextStyle small(BuildContext context) { | |
return Theme.of(context).textTheme.display1.copyWith( | |
fontSize: 10.0, | |
color: black, | |
fontFamily: "Calibre_R", | |
height: 1.1, | |
fontWeight: FontWeight.w500, | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment