Typography.geist constructor
const
Typography.geist({
- TextStyle sans = const TextStyle(fontFamily: 'GeistSans'),
- TextStyle mono = const TextStyle(fontFamily: 'GeistMono'),
- TextStyle xSmall = const TextStyle(fontSize: 12),
- TextStyle small = const TextStyle(fontSize: 14),
- TextStyle base = const TextStyle(fontSize: 16),
- TextStyle large = const TextStyle(fontSize: 18),
- TextStyle xLarge = const TextStyle(fontSize: 20),
- TextStyle x2Large = const TextStyle(fontSize: 24),
- TextStyle x3Large = const TextStyle(fontSize: 30),
- TextStyle x4Large = const TextStyle(fontSize: 36),
- TextStyle x5Large = const TextStyle(fontSize: 48),
- TextStyle x6Large = const TextStyle(fontSize: 60),
- TextStyle x7Large = const TextStyle(fontSize: 72),
- TextStyle x8Large = const TextStyle(fontSize: 96),
- TextStyle x9Large = const TextStyle(fontSize: 144),
- TextStyle thin = const TextStyle(fontWeight: FontWeight.w100),
- TextStyle light = const TextStyle(fontWeight: FontWeight.w300),
- TextStyle extraLight = const TextStyle(fontWeight: FontWeight.w200),
- TextStyle normal = const TextStyle(fontWeight: FontWeight.w400),
- TextStyle medium = const TextStyle(fontWeight: FontWeight.w500),
- TextStyle semiBold = const TextStyle(fontWeight: FontWeight.w600),
- TextStyle bold = const TextStyle(fontWeight: FontWeight.w700),
- TextStyle extraBold = const TextStyle(fontWeight: FontWeight.w800),
- TextStyle black = const TextStyle(fontWeight: FontWeight.w900),
- TextStyle italic = const TextStyle(fontStyle: FontStyle.italic),
- TextStyle h1 = const TextStyle(fontSize: 36, fontWeight: FontWeight.w800),
- TextStyle h2 = const TextStyle(fontSize: 30, fontWeight: FontWeight.w600),
- TextStyle h3 = const TextStyle(fontSize: 24, fontWeight: FontWeight.w600),
- TextStyle h4 = const TextStyle(fontSize: 18, fontWeight: FontWeight.w600),
- TextStyle p = const TextStyle(fontSize: 16, fontWeight: FontWeight.w400),
- TextStyle blockQuote = const TextStyle(fontSize: 16, fontWeight: FontWeight.w400, fontStyle: FontStyle.italic),
- TextStyle inlineCode = const TextStyle(fontFamily: 'GeistMono', fontSize: 14, fontWeight: FontWeight.w600),
- TextStyle lead = const TextStyle(fontSize: 20),
- TextStyle textLarge = const TextStyle(fontSize: 20, fontWeight: FontWeight.w600),
- TextStyle textSmall = const TextStyle(fontSize: 14, fontWeight: FontWeight.w500),
- TextStyle textMuted = const TextStyle(fontSize: 14, fontWeight: FontWeight.w400),
Implementation
const Typography.geist({
this.sans = const TextStyle(fontFamily: 'GeistSans'),
this.mono = const TextStyle(fontFamily: 'GeistMono'),
this.xSmall = const TextStyle(fontSize: 12),
this.small = const TextStyle(fontSize: 14),
this.base = const TextStyle(fontSize: 16),
this.large = const TextStyle(fontSize: 18),
this.xLarge = const TextStyle(fontSize: 20),
this.x2Large = const TextStyle(fontSize: 24),
this.x3Large = const TextStyle(fontSize: 30),
this.x4Large = const TextStyle(fontSize: 36),
this.x5Large = const TextStyle(fontSize: 48),
this.x6Large = const TextStyle(fontSize: 60),
this.x7Large = const TextStyle(fontSize: 72),
this.x8Large = const TextStyle(fontSize: 96),
this.x9Large = const TextStyle(fontSize: 144),
this.thin = const TextStyle(fontWeight: FontWeight.w100),
this.light = const TextStyle(fontWeight: FontWeight.w300),
this.extraLight = const TextStyle(fontWeight: FontWeight.w200),
this.normal = const TextStyle(fontWeight: FontWeight.w400),
this.medium = const TextStyle(fontWeight: FontWeight.w500),
this.semiBold = const TextStyle(fontWeight: FontWeight.w600),
this.bold = const TextStyle(fontWeight: FontWeight.w700),
this.extraBold = const TextStyle(fontWeight: FontWeight.w800),
this.black = const TextStyle(fontWeight: FontWeight.w900),
this.italic = const TextStyle(fontStyle: FontStyle.italic),
this.h1 = const TextStyle(fontSize: 36, fontWeight: FontWeight.w800),
this.h2 = const TextStyle(fontSize: 30, fontWeight: FontWeight.w600),
this.h3 = const TextStyle(fontSize: 24, fontWeight: FontWeight.w600),
this.h4 = const TextStyle(fontSize: 18, fontWeight: FontWeight.w600),
this.p = const TextStyle(fontSize: 16, fontWeight: FontWeight.w400),
this.blockQuote = const TextStyle(
fontSize: 16, fontWeight: FontWeight.w400, fontStyle: FontStyle.italic),
this.inlineCode = const TextStyle(
fontFamily: 'GeistMono', fontSize: 14, fontWeight: FontWeight.w600),
this.lead = const TextStyle(fontSize: 20),
this.textLarge = const TextStyle(fontSize: 20, fontWeight: FontWeight.w600),
this.textSmall = const TextStyle(fontSize: 14, fontWeight: FontWeight.w500),
this.textMuted = const TextStyle(fontSize: 14, fontWeight: FontWeight.w400),
});