Typography
Mirror’s typographic system is tokenized and includes various semantic tokens for font-family, font-size, font-weight, line-height, text-transform and letter-spacing. For added convenience, Mirror group these tokens and exposes them as Tailwind CSS utility classes.
For a detailed explanation of Mirror’s typographic system, please refer to the principles.
Surface Typography
Mirror surface typography utilities come in various sizes ranging from sm to xl. Some styles come in a single size only.
Display
Display utility classes exist in four sizes.
For added impact, -strong can be used.
Title
Title utility classes exist in four sizes. They can be used standalone or mixed to convey different hierarchical levels.
For added impact, -strong can be used.
Subtitle
Subtitle utility classes exist in four sizes. Each size is intended to be used in combination with its equal title size.
For added impact, -strong can be used.
Callout
Callout utility classes exist in four sizes. Each size is intended to be used in combination with its equal title and subtitle size.
For added impact, -strong can be used.
Body
Body utility classes exist in two sizes and for two different text widths.
For smaller width text -short should be added to allow for a slightly condensed line height.
For added impact, -strong can be used. It can also be used in combination with -short.
Caption
The caption utility class exists in a single size.
Footnote
The footnote utility class exists in a single size.
Code
The code utility class exists in a single size. In most cases it should be used in combination with syntax highlighting.
Component Typography
Component typography utility classes exist in nine different sizes. The sizes can be used in combination with each other.