defaultTokens property

Map<String, TextStyle> defaultTokens
final

Implementation

final defaultTokens = {
  // Font weights
  'thin': const TextStyle().thin(),
  'extraLight': const TextStyle().extraLight(),
  'light': const TextStyle().light(),
  'regular': const TextStyle().regular(),
  'medium': const TextStyle().medium(),
  'semibold': const TextStyle().semibold(),
  'bold': const TextStyle().bold(),
  'extraBold': const TextStyle().extraBold(),
  'heavy': const TextStyle().black(),
  // Decorations
  'italic': const TextStyle().italic(),
  'underline': const TextStyle().underlined(),
  'strike': const TextStyle().strikethrough(),
  // Weight shorthands
  "*": const TextStyle().bold(),
  "/": const TextStyle().italic(),
  // Decoration shorthands
  "_": const TextStyle().underlined(),
  "~": const TextStyle().strikethrough(),
  // Colors
  'red': const TextStyle(color: Colors.red),
  'blue': const TextStyle(color: Colors.blue),
  'green': const TextStyle(color: Colors.green),
  'yellow': const TextStyle(color: Colors.yellow),
  'orange': const TextStyle(color: Colors.orange),
  'purple': const TextStyle(color: Colors.purple),
  'pink': const TextStyle(color: Colors.pink),
  'brown': const TextStyle(color: Colors.brown),
  'grey': const TextStyle(color: Colors.grey),
  'black': const TextStyle(color: Colors.black),
  'white': const TextStyle(color: Colors.white),
};