@@ -6,17 +6,23 @@ Angular Material's typography is based on the guidelines from the [Material Desi
66arranged into typography levels. Each level has a ` font-size ` , ` line-height ` and ` font-weight ` . The
77available levels are:
88
9- * ` display-4 ` , ` display-3 ` , ` display-2 ` and ` display-1 ` - Large, one-off headers, usually
10- at the top of the page (e.g. a hero header).
11- * ` headline ` - Section heading corresponding to the ` <h1> ` tag.
12- * ` title ` - Section heading corresponding to the ` <h2> ` tag.
13- * ` subheading-2 ` - Section heading corresponding to the ` <h3> ` tag.
14- * ` subheading-1 ` - Section heading corresponding to the ` <h4> ` tag.
15- * ` body-1 ` - Base body text.
16- * ` body-2 ` - Bolder body text.
17- * ` caption ` - Smaller body and hint text.
18- * ` button ` - Buttons and anchors.
19- * ` input ` - Form input fields.
9+
10+ | Name | CSS classes | Description |
11+ | -----------------| ----------------------------------| -----------------------------------------------------------------------------|
12+ | ` display-4 ` | ` .mat-display-4 ` | Large, one-off header, usually at the top of the page (e.g. a hero header). |
13+ | ` display-3 ` | ` .mat-display-3 ` | Large, one-off header, usually at the top of the page (e.g. a hero header). |
14+ | ` display-2 ` | ` .mat-display-2 ` | Large, one-off header, usually at the top of the page (e.g. a hero header). |
15+ | ` display-1 ` | ` .mat-display-1 ` | Large, one-off header, usually at the top of the page (e.g. a hero header). |
16+ | ` headline ` | ` .mat-h1 ` , ` .mat-headline ` | Section heading corresponding to the ` <h1> ` tag. |
17+ | ` title ` | ` .mat-h2 ` , ` .mat-title ` | Section heading corresponding to the ` <h2> ` tag. |
18+ | ` subheading-2 ` | ` .mat-h3 ` , ` .mat-subheading-2 ` | Section heading corresponding to the ` <h3> ` tag. |
19+ | ` subheading-1 ` | ` .mat-h4 ` , ` .mat-subheading-1 ` | Section heading corresponding to the ` <h4> ` tag. |
20+ | ` body-1 ` | ` .mat-body ` , ` .mat-body-1 ` | Base body text. |
21+ | ` body-2 ` | ` .mat-body-strong ` , ` .mat-body-2 ` | Bolder body text. |
22+ | ` caption ` | ` .mat-small ` , ` .mat-caption ` | Smaller body and hint text. |
23+ | ` button ` | None. Used only in components. | Buttons and anchors. |
24+ | ` input ` | None. Used only in components. | Form input fields. |
25+
2026
2127The typography levels are collected into a typography config which is used to generate the CSS.
2228
@@ -130,5 +136,5 @@ $config: mat-typography-config();
130136```
131137
132138
133- [ 1 ] : https://material.io/guidelines/style/typography.html
139+ [ 1 ] : https://material.io/archive/ guidelines/style/typography.html
134140[ 2 ] : https://fonts.google.com/
0 commit comments