Skip to main content

Typography

Typography is a fundamental element of design that can greatly impact the readability, usability, and aesthetics of a user interface. Our design system includes a robust typography system that is designed to provide clear and consistent typography guidelines for all of our products and platforms. In this section, we will explore the various typography properties and guidelines that govern our design system's typography, including font families, font sizes, line heights, letter spacing, and usage recommendations. By following our typography guidelines, you can ensure that your designs are easy to read, aesthetically pleasing, and consistent with our brand identity.

Whether you are a designer, developer, or product manager, understanding our typography system is essential to creating high-quality, cohesive user interfaces that meet the needs of our users and align with our brand identity.

note

The DHL User Interface Library Typography system is designed using relative (rem) values and use the default 16px base font-size to calculate typography token sizing.

To accommodate projects with different base, the DHL User Interface Library automagically applies the correct scaling based on the project's set base font-size.

For fine-tuned control, the --dui-size-theme CSS variable can be set as needed to calculate typography values. This variable, which defaults to 1, scales each typography design token proportionally to suit your specific requirements .

font family

Variable namevalue 1Example

font size

Variable namevalue 1value 2Example

font weight

Variable namevalue 1Example

letter spacing

Variable namevalue 1Example

line height

Variable namevalue 1Example