Typography.geist constructor

const Typography.geist({
  1. TextStyle sans = const TextStyle(fontFamily: 'GeistSans'),
  2. TextStyle mono = const TextStyle(fontFamily: 'GeistMono'),
  3. TextStyle xSmall = const TextStyle(fontSize: 12),
  4. TextStyle small = const TextStyle(fontSize: 14),
  5. TextStyle base = const TextStyle(fontSize: 16),
  6. TextStyle large = const TextStyle(fontSize: 18),
  7. TextStyle xLarge = const TextStyle(fontSize: 20),
  8. TextStyle x2Large = const TextStyle(fontSize: 24),
  9. TextStyle x3Large = const TextStyle(fontSize: 30),
  10. TextStyle x4Large = const TextStyle(fontSize: 36),
  11. TextStyle x5Large = const TextStyle(fontSize: 48),
  12. TextStyle x6Large = const TextStyle(fontSize: 60),
  13. TextStyle x7Large = const TextStyle(fontSize: 72),
  14. TextStyle x8Large = const TextStyle(fontSize: 96),
  15. TextStyle x9Large = const TextStyle(fontSize: 144),
  16. TextStyle thin = const TextStyle(fontWeight: FontWeight.w100),
  17. TextStyle light = const TextStyle(fontWeight: FontWeight.w300),
  18. TextStyle extraLight = const TextStyle(fontWeight: FontWeight.w200),
  19. TextStyle normal = const TextStyle(fontWeight: FontWeight.w400),
  20. TextStyle medium = const TextStyle(fontWeight: FontWeight.w500),
  21. TextStyle semiBold = const TextStyle(fontWeight: FontWeight.w600),
  22. TextStyle bold = const TextStyle(fontWeight: FontWeight.w700),
  23. TextStyle extraBold = const TextStyle(fontWeight: FontWeight.w800),
  24. TextStyle black = const TextStyle(fontWeight: FontWeight.w900),
  25. TextStyle italic = const TextStyle(fontStyle: FontStyle.italic),
  26. TextStyle h1 = const TextStyle(fontSize: 36, fontWeight: FontWeight.w800),
  27. TextStyle h2 = const TextStyle(fontSize: 30, fontWeight: FontWeight.w600),
  28. TextStyle h3 = const TextStyle(fontSize: 24, fontWeight: FontWeight.w600),
  29. TextStyle h4 = const TextStyle(fontSize: 18, fontWeight: FontWeight.w600),
  30. TextStyle p = const TextStyle(fontSize: 16, fontWeight: FontWeight.w400),
  31. TextStyle blockQuote = const TextStyle(fontSize: 16, fontWeight: FontWeight.w400, fontStyle: FontStyle.italic),
  32. TextStyle inlineCode = const TextStyle(fontFamily: 'GeistMono', fontSize: 14, fontWeight: FontWeight.w600),
  33. TextStyle lead = const TextStyle(fontSize: 20),
  34. TextStyle textLarge = const TextStyle(fontSize: 20, fontWeight: FontWeight.w600),
  35. TextStyle textSmall = const TextStyle(fontSize: 14, fontWeight: FontWeight.w500),
  36. 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),
});