Typography

For our Typography Tokens refer to Typography in Tokens & Guidelines

Index

Typography Usage & Best Practices
Typography Styles
Creating Visual Hierarchy with Typography
Text Modifiers
Typography Kits
Typography in Tables
Typography Accessibility Standards

Typography serves as the backbone of any design system. It’s not just for page titles and copy; typography is everywhere, from navigation labels to buttons, captions, form fields, and more. It is essential for providing context, guiding users, and delivering the core content of an application.

Playbook’s typography plays a crucial role in shaping the user experience. As a design system primarily used for business software applications, we know that readability is vital for effortless navigation and easy comprehension. To achieve this Playbook uses a professional, unembellished san-serif front and prioritizes intuitive hierarchy in our typography styles.

When swapping out the default Playbook font, we recommend using a simple sans-serif font such as Proxima Nova or Arial.

Typography Usage & Best Practices

Typography Styles

Playbook offers 13 different text styles within four different text components. Each component is built for a specific purpose that helps ensure consistency of usage.

Typography Usage

Title 1

Largest font size used for banners and covers on homepages.

Title 1 Light

Light alternative to default Title 1

Title 2

Secondary title size used for regular page titles

Title 2 Light

Less emphasis than Title 2, good for main callouts that are not the page’s title, ie. dashboard numbers.

Title 3

An h3 title size

Title 3 Light

Light alternative to default Title 3

Title 4

Useful as a header 4 for subsection titles or emphasis in a table row

Large Caption

A larger caption style that can be used sparingly as a subsection title or large label.

Body

Default body text size, used for paragraphs and main text content.

Caption

Default caption styling, often used underneath a title for a singular phrase or sentence

Subcaption

A smaller caption style for information not key to the page’s function

Detail Bold

Used sparingly for emphasis on secondary information

Detail

Used for secondary information. Useful in information dense tables

Some Playbook components such as our button and badge, use variations of our text styles with slightly different kerning or font sizes. Differentiating these components text styles give visual cues to the user that they are conveying different information.

Button Imagery

Creating Visual Hierarchy with Typography

Typography hierarchy plays a key role in guiding users through interfaces and ensuring important information is not overlooked. Using the following concepts, Playbook establishes a clear hierarchy to effectively guide the viewer's attention and create a seamless experience.

Weight

  • Bolder weights command attention and signify importance.
  • Lighter weights are often employed for supporting content or lesser emphasis.

Example of font weight usage

Case

  • Uppercase text can convey formality and importance; it is used most commonly as labels and to designate sections.
  • Sentence case or lowercase text is generally easier to read and is suitable for longer passages.

Example of font case usage

Size

  • Larger font sizes denote importance and hierarchy.
  • Smaller font sizes are typically used for secondary information or details.

Example of font size usage

Position

  • Text positioned prominently at the top or center tends to grab attention and signal importance.
  • Secondary information may be placed off to the side or at the bottom for less emphasis.

Example of font position

Alignment

  • Centered or justified alignment can impart a formal or structured appearance.
  • Left-aligned text is often easier to read and lends a more casual or contemporary feel.

Example of font alignment

Example UI Using Clear Text Hierarchy Example UI Layout

Incorporating these concepts into our typography components and styles ensures effective communication of content hierarchy and enhances overall usability.

Text Modifiers

Outside of the given typography styles above, there are many other ways to create different styles. These can involve adding a different style tag, adjusting font weights, and adding tabular number spacing.

Text Styles

While the Body kit supports using style tags within the kit, these tags can be used anywhere for custom cases.

Style Tag Definition
Bold <b> Bolds text
Strong <strong> Bolds text
Link <a> Changes to primary color to indicate text is clickable
Italicized <i> Italicizes text
Emphasized <em> Emphasis used on titles
Small <small> Reduces font size
Underlined <u> Underlines text
Font Weights

Using font weights is crucial for typography and hierarchy because they play a significant role in establishing visual contrast and organizing information effectively. Playbook offers seven different font weights for various uses.

Font Weight Usage

Font Thin

Good as a light option for titles with lower hierarchy

Font Regular

Used for common body text content and general usage

Font Bold

Default bold value used for general emphasis, pairs well with a smaller font size to act as a caption
Tabular Number Spacing

Tabular number spacing, also known as monospacing, is a typographic feature where each digit occupies the same amount of horizontal space. This uniform spacing ensures that numbers align properly in columns, making it a particularly powerful format in data tables.

Ensuring readable numbers is so crucial for business operations that Playbook offers tabular number spacing as a global prop within the library. It’s recommended on any numeric values for display on any typographic style.

Tabular Number Spacing

Typography Kits

Playbook offers a range of ready-to-use typography layouts that prioritize displaying clear and concise information.

Designed to make the best use of the library’s typography options, layouts offered can be used for date and time formats, contact details, addresses, and label/value groupings.
Through strategic use of color, font size, and font weight, Playbook establishes strong informational and visual hierarchies, ensuring effective communication and enhanced readability.

Tabular Number Spacing

Typography in Tables

When working with complex tables, the UI is susceptible to becoming information-dense and harder to read. Use the following best practices to create clear, readable tables.

  • Keep your typography choices simple. Avoid overwhelming the design with excessive options.
  • Maintain consistency in column headers and body content throughout to ensure coherence.
  • Avoid overly large titles or font sizes; instead, rely more on font weight and color variations to establish visual hierarchy effectively.
  • If your content is data heavy, consider utilizing the Detail kit over the Body kit.
  • For multi-line cells, make use of styles to create readability.
    • Emphasize primary content using Title 4 or heavier font weights for better clarity and emphasis.
    • Use subcaption, detail or other light weight, smaller font sizes for sub-copy or details.

Example table UI

Typography Accessibility Standards

Color Accessibility Standards

Accessibility in typography is critical to ensuring inclusivity in usability, as text is such an integral part of any interface.
There is no perfect font for accessibility, so it is important to follow best practices.
Prioritizing the following within Playbook helps our design system be more accessible.

  • Ensure individual letterforms are distinct in shape to avoid confusion between characters like I, l, and 1, or 0 and O.
  • Kerning and line height should be appropriate, too little or too much space will reduce readability.
  • Sans-serif fonts are preferred for their simplicity and clarity, particularly on screens or at smaller sizes.
  • Bolder weights can improve legibility, but excessive thickness may hinder readability, especially for longer passages. Avoid very light or bold font weights for text under 16px.
  • Larger font sizes aid readability, particularly for users with visual impairments or on smaller screens. Important content should be displayed with a font size of 16px or larger.
  • Ensure paragraphs and larger text blocks are scannable, with text blocks containing 45-80 characters.
  • Consider WCAG guidelines when implementing color in typography. Text size 16px and below requires 4.5:1 color contrast between text and background, and 3:1 for 16px bold or larger text.

Incorporate these typography best practices to optimize readability and comprehension, ensuring that UI remains clear and accessible.

For more information on accessibility in typography review these resources.
https://accessibility.digital.gov/visual-design/typography/
https://designsystem.digital.gov/components/typography/
https://webaim.org/standards/wcag/checklist