Typography

Typography is the system of fonts. Each font style and size conveys hierarchy and helps in better readability.

Font Family

In Prism Design System, we are using the Lexend font that is designed by Google.

  1. It's scientifically proven to impart minimal cognitive load

  2. Is open-sourced

  3. Cross-platform support

Usage guide

The text style nomenclature has been divided into two broad categories-

  1. Display — To be used for larger font size, such as the banner text, heading and titles.

  2. Text — For more mundane and regular use case. Such as body text, description, and UI elements such as buttons, tags and menu items.

Relation and dependence on 4 grid system

Notice the smaller text line heights follow a strict 4px grid, i.e., they are divisible by 4.

This is because these smaller styles are often going to be used in UI elements.

Suppose if we have odd/non-multiple of 4 text line height it becomes a tiresome for any designer to arrange and fit those UI elements in a 4px grid system.

Consider the following case where our input field height is anchored to 4px grid i.e. height of 36px

Advantage of using 4 point grid system in smaller text styles
Not using 4 point grid system  in smaller text styles- Case 1
Not using 4 point grid system  in smaller text styles- Case 2

Last updated