Angular Material provides typography CSS classes you can use to create visual consistency across your application.
Reference the Material Design specification for Typography.
To preserve semantic structures, you should style the <h1>
- <h6>
heading tags with the styling classes shown below:
.md-display-4
.md-display-3
.md-display-2
.md-display-1
.md-headline
.md-title
.md-subhead
10px
for easy rem units (1.2rem = 12px). Body font size is 14px
. sp = scalable pixels.
.md-body-1
Regular 14px
.md-body-2
Medium 14px
.md-button
.md-caption
Body copy with medium weight.
Regular body copy with small text.
Caption