|
| 1 | +# Typography |
| 2 | + |
| 3 | +Standard mixins for body text, fonts, headings, labels, and titles. |
| 4 | + |
| 5 | +[Live demo](https://community-app.topcoder-dev.com/examples/typography) |
| 6 | + |
| 7 | +All these mixins use fonts from Roboto family. In majority of cases it is easy |
| 8 | +to figure out which mixin you need for a specific element just by its font size |
| 9 | +/ line height. |
| 10 | + |
| 11 | +### Body Text Mixins |
| 12 | +- 20/25px — **`tc-body-lg`**; |
| 13 | +- 15/25px — **`tc-body-md`**; |
| 14 | +- 13/25px — **`tc-body-sm`**; |
| 15 | +- 11/20px — **`tc-body-xs`**. |
| 16 | + |
| 17 | +### Heading Mixins |
| 18 | +- 36/45px — **`tc-heading-xl`**; |
| 19 | +- 28/35px — **`tc-heading-lg`**; |
| 20 | +- 20/30px — **`tc-heading-md`**; |
| 21 | +- 15/25px — **`tc-heading-sm`**; |
| 22 | +- 13/25px — **`tc-heading-xs`**. |
| 23 | + |
| 24 | +### Label Mixins |
| 25 | +- 20/25px — **`tc-label-xl`**; |
| 26 | +- 15/20px — **`tc-label-lg`**; |
| 27 | +- 13/20px — **`tc-label-md`**; |
| 28 | +- 12/15px — **`tc-label-sm`**; |
| 29 | +- 11/15px — **`tc-label-xs`**. |
| 30 | + |
| 31 | +### Title Mixins |
| 32 | +- 42/50px — **`tc-title`**. |
| 33 | + |
| 34 | +### Font Mixins |
| 35 | +In some cases you may want to only include into a component the font-family |
| 36 | +and the correct font weight. Here are some standard mixins for that (the numbers |
| 37 | +in the list specify the weight): |
| 38 | + |
| 39 | +##### font-family: Roboto, Helvetica, Arial, sans-serif |
| 40 | +- 100 — **`roboto-thin`**; |
| 41 | +- 300 — **`roboto-light`**; |
| 42 | +- 400 — **`roboto-regular`**; |
| 43 | +- 500 — **`roboto-medium`**; |
| 44 | +- 700 — **`roboto-bold`**; |
| 45 | +- 900 — **`roboto-black`**. |
| 46 | + |
| 47 | +##### font-family: Roboto Mono, monospace |
| 48 | +- 400 — **`roboto-mono-regular`**. |
0 commit comments