# Typography

Typography is a crucial part of a design system, ensuring consistency, readability, and usability across different platforms and devices. Good typography rules help present content clearly and efficiently.

## Typefaces (font family)

***

DIGIT Typography uses the typefaces Roboto and Roboto Condensed.

<figure><img src="https://3868804918-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FegsIWleSdyH9rMLJ8ShI%2Fuploads%2FHuRAzOvZXizvOoFtNuXn%2FTypefaces.png?alt=media&#x26;token=2e721657-b6c3-4501-a896-be78846194ca" alt=""><figcaption></figcaption></figure>

## Typography Components

***

### Headings

Headings establish the visual hierarchy of the content, guiding users through structured information. They range from large titles for prominent sections to smaller subheadings for organizations.

| Heading                                                                            | Mobile Scale | Tablet Scale | Desktop Scale |
| ---------------------------------------------------------------------------------- | ------------ | ------------ | ------------- |
| <p><strong>headingXl</strong></p><p>Used for main page titles.</p>                 | 32px         | 36px         | 40px          |
| <p><strong>headingL</strong></p><p>Suitable for section headers.</p>               | 24px         | 28px         | 32px          |
| <p><strong>headingM</strong></p><p>Used for subsections or feature highlights.</p> | 20px         | 22px         | 24px          |
| <p><strong>headingS</strong></p><p>Ideal for smaller titles and labels.</p>        | 16px         | 16px         | 16px          |
| <p><strong>headingXS</strong><br>Used for minor headings and annotations.</p>      | 12px         | 14px         | 14px          |

<figure><img src="https://3868804918-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FegsIWleSdyH9rMLJ8ShI%2Fuploads%2FIwDLnoWLU8xmlpvQpQWn%2FHeading.png?alt=media&#x26;token=4df1a726-055d-436e-8d69-fab0eb5500e4" alt=""><figcaption></figcaption></figure>

### Body Text

Body text is the primary content in paragraphs, articles, or instructions. It should be readable, well-spaced, and appropriately sized for different devices.

| Body Text                                                                               | Mobile Scale | Tablet Scale | Desktop Scale |
| --------------------------------------------------------------------------------------- | ------------ | ------------ | ------------- |
| <p><strong>bodyL</strong></p><p>Used for general reading content.</p>                   | 16px         | 20px         | 20px          |
| <p><strong>bodyS</strong></p><p>Ideal for supporting information and descriptions.</p>  | 14px         | 16px         | 16px          |
| <p><strong>bodyXS</strong></p><p>Used for less prominent text, such as disclaimers.</p> | 12px         | 14px         | 14px          |

<figure><img src="https://3868804918-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FegsIWleSdyH9rMLJ8ShI%2Fuploads%2FwEgjkQNIl1yeMOqUvGRz%2FBody.png?alt=media&#x26;token=019b74d3-d32e-4876-9233-84360c69d212" alt=""><figcaption></figcaption></figure>

### Caption Text

Captions text provide supplementary information, often appearing in smaller font sizes below the primary content

| Caption Text                                                                        | Mobile Scale | Tablet Scale | Desktop Scale |
| ----------------------------------------------------------------------------------- | ------------ | ------------ | ------------- |
| <p><strong>captionL</strong></p><p>Used for standout short descriptions.</p>        | 24px         | 28px         | 28px          |
| <p><strong>captionM</strong></p><p>Suitable for explanatory notes.</p>              | 20px         | 24px         | 24px          |
| <p><strong>captionS</strong></p><p>Best for minor clarifications and subtitles.</p> | 16px         | 20px         | 20px          |

<figure><img src="https://3868804918-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FegsIWleSdyH9rMLJ8ShI%2Fuploads%2F9WBaczd5nwKx7sjEq0T1%2FCaption.png?alt=media&#x26;token=3e009bd7-ce23-4139-877f-58838f02c73d" alt=""><figcaption></figcaption></figure>

### Links

Links are interactive text elements used to navigate or perform actions. They are always underlined to indicate clickability. They all have the same scale across all breakpoints.

| Links                                                            | Scale |
| ---------------------------------------------------------------- | ----- |
| <p><strong>linkL</strong></p><p>Used for large link buttons</p>  | 20px  |
| <p><strong>linkM</strong></p><p>Used for medium link buttons</p> | 16px  |
| <p><strong>linkS</strong></p><p>Used for small link buttons</p>  | 14px  |

<figure><img src="https://3868804918-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FegsIWleSdyH9rMLJ8ShI%2Fuploads%2FBq2ci1XgDEHVIrfTqqYA%2FLinks.png?alt=media&#x26;token=5f233687-9701-4153-aeae-8cbe1b2c327c" alt=""><figcaption></figcaption></figure>

### Buttons

Button text is designed to be clear, actionable, and distinguishable from other text elements. It maintains a bold style for better visibility. They all have the same scale across all breakpoints.

| Button                                                             | Scale |
| ------------------------------------------------------------------ | ----- |
| <p><strong>buttonL</strong></p><p>Used for large buttons</p>       | 20px  |
| <p><strong>buttonM</strong></p><p>Used for medium size buttons</p> | 16px  |
| <p><strong>buttonS</strong></p><p>Used for small size buttons</p>  | 14px  |

<figure><img src="https://3868804918-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FegsIWleSdyH9rMLJ8ShI%2Fuploads%2Fz7owIr6WJkdzbYxI8Mwv%2FLinks.png?alt=media&#x26;token=ac36ad28-0d66-43aa-b812-89f958a9c8c4" alt=""><figcaption></figcaption></figure>

## Line Height

***

| <p><strong>Heading And Caption</strong></p><p>Heading and Caption use a 1.14× multiplier for Roboto and Roboto condense.</p> | ![](https://3868804918-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FegsIWleSdyH9rMLJ8ShI%2Fuploads%2FOfKc9GPyrWGcHEI0M1F2%2FLine%20Height%20-%20Heading%20%26%20Caption.png?alt=media\&token=991cc1a3-80b7-4894-8525-0d0306376179) |
| ---------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><strong>Body and Link</strong></p><p>Body and Link use a 1.37× multiplier for Roboto.</p>                                 | ![](https://3868804918-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FegsIWleSdyH9rMLJ8ShI%2Fuploads%2FZDVcBpchBUQd1wkqxidh%2FLine%20Height%20-%20Body%20%26%20Link.png?alt=media\&token=cd567ecf-0740-4ee5-867c-78bbe3393983)       |

## Usages Guidelines

***

| <p><strong>Use defined font sizes</strong></p><p>Choose from library defined font sizes. By using unique font sizes, you risk upsetting the hierarchy and balance of typography in your product.</p>                                                                                                                                                                                                                                                                                                              | ![](https://3868804918-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FegsIWleSdyH9rMLJ8ShI%2Fuploads%2FQLx7HVW1dASUfiP71aOl%2FDefined%20Font%20Sizes.png?alt=media\&token=dbd30754-e607-43ee-a2d4-8495b43a75eb)                              |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><strong>Don't use underlines for adding emphasis</strong></p><p>Underlines are reserved for text links only. They should not be used as a way for adding emphasis to words.</p>                                                                                                                                                                                                                                                                                                                                | ![](https://3868804918-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FegsIWleSdyH9rMLJ8ShI%2Fuploads%2FcFeNFTroYFldnPyITqcb%2FDon't%20use%20underlines%20for%20adding%20emphasis.png?alt=media\&token=184e1aeb-264b-4850-b2c3-a92eb7631631)  |
| <p><strong>Respect capitalization rules</strong></p><p>Use sentence case for all UX content.</p>                                                                                                                                                                                                                                                                                                                                                                                                                  | ![](https://3868804918-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FegsIWleSdyH9rMLJ8ShI%2Fuploads%2FRkMa1HWFWkaAWSBzMYWB%2FRespect%20capitalization%20rules.png?alt=media\&token=60611d44-1a14-48d4-a6a2-0487609a3dd3)                    |
| <p><strong>Use tabular numbers for numerical data</strong></p><p>Numbers within components should be tabular with lining figures. In tables, numbers should be right aligned to make numerical data easier to read and compare.</p>                                                                                                                                                                                                                                                                               | ![](https://3868804918-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FegsIWleSdyH9rMLJ8ShI%2Fuploads%2FQq40yVe97KGILNb2f9bF%2FUse%20tabular%20numbers%20for%20numerical%20data.png?alt=media\&token=acf82318-53c5-4980-9669-b6980bb21c99)    |
| <p><strong>Don't let paragraph widths get too thin</strong></p><p>Paragraphs of text that are too long are difficult to follow, and paragraphs of text that are too thin are difficult to read. Ideally, blocks of text should be roughly 70 characters wide. Be sure to keep them at least between 50 and 120 characters wide.</p>                                                                                                                                                                               | ![](https://3868804918-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FegsIWleSdyH9rMLJ8ShI%2Fuploads%2FQrI6u5o60YqhpD2EQJCx%2FDon't%20let%20paragraph%20widths%20get%20too%20thin.png?alt=media\&token=61843dd4-55b9-4af5-9053-9654022029b5) |
| <p><strong>Keep content short and to the point</strong></p><p>Keep paragraphs concise. Some users with cognitive disabilities (and even those who don’t) can have a very difficult time reading and comprehending large blocks of text.</p>                                                                                                                                                                                                                                                                       | ![](https://3868804918-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FegsIWleSdyH9rMLJ8ShI%2Fuploads%2FHoUuz6IKWBGByp7wniuj%2FKeep%20content%20short%20and%20to%20the%20point.png?alt=media\&token=4e71dae9-7cc2-4b0a-9726-a4e08893f793)     |
| <p><strong>Don't use indentation</strong></p><p>Paragraphs of text should not be indented. </p>                                                                                                                                                                                                                                                                                                                                                                                                                   | ![](https://3868804918-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FegsIWleSdyH9rMLJ8ShI%2Fuploads%2Fn4x6w4FBMVjLoHl2uERY%2FDon't%20use%20indentation.png?alt=media\&token=576d3171-04d0-4792-9588-c76dba1e4cb8)                           |
| <p><strong>Don't fully-justify text</strong></p><p>Do not use fully-justified blocks of text. This adds trapped white space within paragraphs, which makes it harder to read, especially for those with cognitive disabilities or dyslexia. Right alignment (left rag) is also discouraged for paragraphs of text.</p>                                                                                                                                                                                            | ![](https://3868804918-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FegsIWleSdyH9rMLJ8ShI%2Fuploads%2FIS5fXtTtPfXTsIKfqx19%2FDon't%20fully-justify%20text.png?alt=media\&token=d8d0220e-fcd7-468f-bc59-f83aab86a990)                        |
| <p><strong>Typography component pairing</strong></p><p>Heading, body, caption, and link typography components can be paired together in order to create balanced relationships while enforcing hierarchy of content. By default, this can be done by using text block components with the same size.<br><br>Relationships may sometimes need to be more or less pronounced, so in those use cases, it’s acceptable to combine your own selection of sizes as long as you’re maintaining consistent hierarchy.</p> | ![](https://3868804918-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FegsIWleSdyH9rMLJ8ShI%2Fuploads%2Fw1Io8cSX7CMMx0vibt7A%2FTypography%20component%20pairing.png?alt=media\&token=dbe6dee1-55ed-4b0c-b198-c7727190fc51)                    |

## Change log

| Dates | Number | Note |
| ----- | ------ | ---- |
|       |        |      |
|       |        |      |
|       |        |      |
