Variants
Body
Headings
Small Caps
Color
Atomic Classes
Font Size
type-size-12
type-size-14
type-size-16
type-size-20
type-size-26
type-size-32
type-size-60
Line Height
type-height-16
type-height-20
type-height-24
type-height-32
type-height-36
type-height-72
Font Weight
type-weight-300
(light) type-weight-400
(regular) type-weight-600
(semibold) type-weight-700
(bold)
Other
type-family-default
(font-family: "Source Sans Pro") type-family-smallcaps
(font-family: "Source Sans Pro SC")
type-spacing-smallcaps
type-transform-uppercase
type-transform-lowercase
type-align-(left|center|right)
Best Practices
1. Hierarchy
Use the typographic scale and text color scale to establish content hierarchy.¹ Use smaller text for less important information and larger text for more significant information. Use lighter color text for less important information and darker color text for more important information.
2. Line Length
Maintain a proper line length to improve legibility. The suggested line length for on-screen text is within the range of 60 to 80 characters, this is based on a screen size of 1440px and font size of 16px. ¹
3. Combinations
Here are some examples of frequently used typography combinations that can serve as a helpful starting point. It is important to note that these combinations are not obligatory and can be customized according to design requirements.
Tokens
More
Accessibility
Typography should follow the color scale to meet the contrast ratio for AA standards, based on Web Content Accessibility Guidelines (WCAG) guidelines.
Benefits: People with low vision often have difficulty reading text that does not contrast with its background. This can be exacerbated if the person has a color vision deficiency that lowers the contrast even further. Providing a minimum luminance contrast ratio between the text and its background can make the text more readable even if the person does not see the full range of colors. It also works for the rare individuals who see no color.¹
Additional Reading
7 typography tips for interface design https://uxdesign.cc/7-typography-tips-for-interface-design-b7185e9397c4