# Typography

Clear typography is critical to the effective communication of hierarchy within UrbanFootprint's products.

### General Guidelines

* Ensure sufficient contrast between text color and background color.
* Type should be light and well-spaced for legibility.&#x20;
* Use bold type weights sparingly, but apply to titles and elements that should be emphasized within a line of text.

## Typefaces

### Interface text

Our primary interface typeface is `Roboto`.  The font features friendly and open curves, which contribute to easy readability.

{% hint style="info" %}
Download [Roboto](https://fonts.google.com/specimen/Roboto) from Google Fonts under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)
{% endhint %}

![](https://3095585262-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MeRRIXlvUyVcYyYJauQ%2F-MhyQR6Nr2FeYZcyNpIe%2F-MhyTepnmVEKct9DfPIw%2FTypography%20\(3\).png?alt=media\&token=b2ec2bc1-5347-4211-9bdd-7ac258625d19)

### Accent text

Our accent typeface is `Roboto Mono`. Roboto Mono can be used in tables for consistent spacing and to differentiate numeric values from non-numeric text.

{% hint style="info" %}
Download [Roboto Mono](https://fonts.google.com/specimen/Roboto+Mono#standard-styles) from Google Fonts under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)
{% endhint %}

![](https://3095585262-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MeRRIXlvUyVcYyYJauQ%2F-MhyQR6Nr2FeYZcyNpIe%2F-MhyUnCdaI2YTFQfMQ-j%2FTypography%20\(3\)%20copy.png?alt=media\&token=80518ab7-d014-438a-9075-1e7e3136deb8)

## Sizing

A successful type hierarchy establishes the order of importance of elements on a page. Consistent scaling, weights, and capitalization are used to create distinction between heading levels and provide users with familiar focus points when scanning text.

| Text                                                                                                                                                                                                                                                                                    | Class       | Properties                                                                      |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | ------------------------------------------------------------------------------- |
| <img src="https://3095585262-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MeRRIXlvUyVcYyYJauQ%2F-MhtpO87TwOR4UtLr50r%2F-Mhu1iuXTtuad6Qk4aHJ%2FTypography%20(1).png?alt=media&#x26;token=5b29d6d9-7968-4bd2-82d0-9f75bb6572c9" alt="" data-size="original">            | `text-xs`   | <p><code>font-size: 1rem</code></p><p><code>line-height: 1.5rem</code></p>      |
| <img src="https://3095585262-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MeRRIXlvUyVcYyYJauQ%2F-MhtpO87TwOR4UtLr50r%2F-Mhu1lVIvK9KjwvYbK7M%2FTypography%20(1)%20copy.png?alt=media&#x26;token=70c6fc6e-bc43-4756-b31a-3c990c991448" alt="" data-size="original">     | `text-sm`   | <p><code>font-size: 1rem</code></p><p><code>line-height: 1.5rem</code></p>      |
| <img src="https://3095585262-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MeRRIXlvUyVcYyYJauQ%2F-MhtpO87TwOR4UtLr50r%2F-Mhu1nXdyxWAUY6qxpYw%2FTypography%20(1)%20copy%202.png?alt=media&#x26;token=2c94a941-9a59-41b3-87bf-6c11e2913d35" alt="" data-size="original"> | `text-base` | <p><code>font-size: 1rem</code></p><p><code>line-height: 1.5rem</code></p>      |
| <img src="https://3095585262-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MeRRIXlvUyVcYyYJauQ%2F-MhtpO87TwOR4UtLr50r%2F-Mhu1YwjI0aKbJeTsxZ5%2FTypography%20(1)%20copy%203.png?alt=media&#x26;token=ec80c00f-1f3e-4b8e-ae71-fdba255c5ce1" alt="" data-size="original"> | `text-lg`   | <p><code>font-size: 1.125rem</code></p><p><code>line-height: 1.75rem</code></p> |
| <img src="https://3095585262-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MeRRIXlvUyVcYyYJauQ%2F-MhtpO87TwOR4UtLr50r%2F-Mhu1UIKtESIOgEKmKzu%2FTypography%20(1)%20copy%204.png?alt=media&#x26;token=1a2f207d-7dba-42b2-aca0-9858e187cd21" alt="" data-size="original"> | `text-xl`   | <p><code>font-size: 1.25rem</code></p><p><code>line-height: 2rem</code></p>     |

## Alignment

Typography should typically be left aligned. Left aligned text is easier to read than centered text for paragraphs.

![](https://3095585262-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MeRRIXlvUyVcYyYJauQ%2F-Mea86WxamRWvS35wsP_%2F-MeaT7l5Ta1bV-5i6Ixm%2FTypography-3.png?alt=media\&token=45b084f1-0594-4589-abc2-6dd7f51f60d2)

## Line height

Line height for most text should be 150% relative to the size of the text. For very small labels or very large headers, line height can scale appropriately,

![](https://3095585262-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MeRRIXlvUyVcYyYJauQ%2F-Mea86WxamRWvS35wsP_%2F-MeaTmYqWPqDp3eNGIwE%2FTypography\(4\).png?alt=media\&token=28758351-3475-4528-b192-fe6fc5682eef)

## Spacing

White space is important as it creates balance and harmony. It is also commonly used to lead the user/reader from one element to another. Spacing between typographic elements should be spaced out enough to feel light, but still remain close enough to show proper relationships between elements.

## Accessibility

### Text contrast

All text should be legible and meet color contrast standards to ensure that content is accessible by everyone, regardless of any disability or user device. The Web Content Accessibility Guidelines (WCAG 2.0) level AA requires a **4.5:1** color contrast between text and background for normal text, and **3:1** to large text.

{% hint style="info" %}
To learn more, refer to the <http://www.section508.gov>.
{% endhint %}

### Accessible Text Combinations

Black text is recommended for use on lighter backgrounds, and white text on dark backgrounds.&#x20;

{% hint style="info" %}
To test text and background color combinations, you can use [webaim.org/resources/contrastchecker](https://webaim.org/resources/contrastchecker/) (among many other open source tools available online)
{% endhint %}

<table data-header-hidden><thead><tr><th width="364"></th><th width="150">Text </th><th width="150">Background</th><th>Contrast Ratio ↓</th></tr></thead><tbody><tr><td></td><td>Text </td><td>Background</td><td>Contrast Ratio ↓</td></tr><tr><td><img src="https://3095585262-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MeRRIXlvUyVcYyYJauQ%2F-Mi1mqhqUVB6q3Hv2pRH%2F-Mi1m9hywPB866RA22E9%2FFrame%202%402x.png?alt=media&#x26;token=ce082c1b-4686-49fe-810f-f943fdae9053" alt="" data-size="original"></td><td><code>#FFFFFF</code></td><td><code>#000000</code></td><td><img src="https://3095585262-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MeRRIXlvUyVcYyYJauQ%2F-Mi1nYUH58Wqv4409h-z%2F-Mi1tCphIbuLlMG0hVNp%2Fratio-21.0%20(1).png?alt=media&#x26;token=44be55bd-20ed-4db6-8c94-68390782a715" alt="" data-size="original"></td></tr><tr><td><img src="https://3095585262-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MeRRIXlvUyVcYyYJauQ%2F-Mi1wUFgcEmF_kR7SC83%2F-Mi1nUS3VEZtVafbX2tm%2FTypography%402x%20(4).png?alt=media&#x26;token=e4cd7f64-76ed-4136-9d88-015b11972b55" alt="" data-size="original"></td><td><code>#000000</code></td><td><code>#FFFFFF</code></td><td><img src="https://3095585262-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MeRRIXlvUyVcYyYJauQ%2F-Mi1nYUH58Wqv4409h-z%2F-Mi1tCphIbuLlMG0hVNp%2Fratio-21.0%20(1).png?alt=media&#x26;token=44be55bd-20ed-4db6-8c94-68390782a715" alt="" data-size="original"></td></tr><tr><td><img src="https://3095585262-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MeRRIXlvUyVcYyYJauQ%2F-Mi1mqhqUVB6q3Hv2pRH%2F-Mi1mHCI_4aIFnDuHd1Q%2FTypography%402x-4.png?alt=media&#x26;token=4e3f0b7a-48e4-4b25-b467-cfbd8246bb79" alt="" data-size="original"></td><td><code>#000000</code></td><td><code>#F5F7FB</code></td><td><img src="https://3095585262-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MeRRIXlvUyVcYyYJauQ%2F-Mi1wUFgcEmF_kR7SC83%2F-Mi1wmZtEjSrPfrs0pU0%2Fratio-19.6%20(1).png?alt=media&#x26;token=8421b769-688d-41c6-82d8-a8fb9f619260" alt="" data-size="original"></td></tr><tr><td><img src="https://3095585262-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MeRRIXlvUyVcYyYJauQ%2F-Mi1mqhqUVB6q3Hv2pRH%2F-Mi1mDVBlWA6IsnFjgdF%2FTypography%402x-6.png?alt=media&#x26;token=1dfe56a2-77c3-4da7-a669-07287ad33785" alt="" data-size="original"></td><td><code>#FFFFFF</code></td><td><code>#1E2135</code></td><td><img src="https://3095585262-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MeRRIXlvUyVcYyYJauQ%2F-Mi1nYUH58Wqv4409h-z%2F-Mi1tWcQTCCGKpGNmX4V%2Fratio-15.9%20(1).png?alt=media&#x26;token=4a829b7f-264a-4f6b-bce6-19a3c23732e3" alt="" data-size="original"></td></tr><tr><td><img src="https://3095585262-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MeRRIXlvUyVcYyYJauQ%2F-Mi1mqhqUVB6q3Hv2pRH%2F-Mi1m5j1h6EP_fhKXgO6%2FTypography%402x.png?alt=media&#x26;token=a320dfc5-8326-4ffb-b1b4-ca4edac86d2b" alt="" data-size="original"> </td><td><code>#FFFFFF</code></td><td><code>#1D4ED8</code></td><td><img src="https://3095585262-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MeRRIXlvUyVcYyYJauQ%2F-Mi1vq4sWChRrJ7PcEAA%2F-Mi1w-iBZMyqB-WF2EiZ%2Fratio-6.7%402x.png?alt=media&#x26;token=76526062-bfa8-4f3f-8060-59de5db2402e" alt="" data-size="original"> </td></tr><tr><td><img src="https://3095585262-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MeRRIXlvUyVcYyYJauQ%2F-Mi1z_PsvobKx-nFL5jp%2F-Mi1zza3l6L5Rv9H3sRu%2FTypography%402x%20(5).png?alt=media&#x26;token=5432f7f8-4032-48e2-baf8-97cd33a1c317" alt="" data-size="original"></td><td><code>#1D4ED8</code></td><td><code>#FFFFFF</code></td><td><img src="https://3095585262-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MeRRIXlvUyVcYyYJauQ%2F-Mi1vq4sWChRrJ7PcEAA%2F-Mi1w-iBZMyqB-WF2EiZ%2Fratio-6.7%402x.png?alt=media&#x26;token=76526062-bfa8-4f3f-8060-59de5db2402e" alt="" data-size="original"></td></tr><tr><td><img src="https://3095585262-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MeRRIXlvUyVcYyYJauQ%2F-Mi2-0bR8UvojBpG-nlR%2F-Mi2-OiriHLSsJn1tIjC%2Fprimary-blue-on-bg-50%402x.png?alt=media&#x26;token=5894753e-f62f-4a7f-9fa0-a0efb378876d" alt="" data-size="original"></td><td><code>#1D4ED8</code></td><td><code>#F5F7FB</code></td><td><img src="https://3095585262-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MeRRIXlvUyVcYyYJauQ%2F-Mi2-0bR8UvojBpG-nlR%2F-Mi2-WjysmqER8UZ6ce5%2Fratio-6.2.png?alt=media&#x26;token=718c6af2-3d0f-45dd-95f0-e43baefd4d29" alt="" data-size="original"></td></tr><tr><td><img src="https://3095585262-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MeRRIXlvUyVcYyYJauQ%2F-Mi1mqhqUVB6q3Hv2pRH%2F-Mi1nXOrudpbjRQJZOd7%2FTypography%402x-3.png?alt=media&#x26;token=abd2d533-58d3-4d9d-b6a4-7b4068d638b0" alt="" data-size="original"> </td><td><code>#000000</code></td><td><code>#607D9C</code></td><td><img src="https://3095585262-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MeRRIXlvUyVcYyYJauQ%2F-Mi1wUFgcEmF_kR7SC83%2F-Mi1xWRxfpcAeAdUn6Ce%2Fratio-19.6%20(2).png?alt=media&#x26;token=0c5081d6-a525-4221-a6eb-b9aa64883006" alt="" data-size="original"> </td></tr></tbody></table>

### Inaccessible Combinations

The following combinations are examples of text where the contrast ratio with the background color is too low. These combinations should never be used in interface components.

<table data-header-hidden><thead><tr><th width="363.61538461538464"></th><th width="150">Text </th><th width="150">Background</th><th>Contrast Ratio ↓</th></tr></thead><tbody><tr><td></td><td>Text </td><td>Background</td><td>Contrast Ratio ↓</td></tr><tr><td><img src="https://3095585262-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MeRRIXlvUyVcYyYJauQ%2F-Mi1nYUH58Wqv4409h-z%2F-Mi1qvKxg6f5dh-I59Ol%2FTypography%402x-2.png?alt=media&#x26;token=fa9b4f89-8884-48e5-9488-ef5082c121c8" alt="" data-size="original"> </td><td><code>#FFFFFF</code></td><td><code>#607D9C</code></td><td><img src="https://3095585262-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MeRRIXlvUyVcYyYJauQ%2F-Mi1xjbhDS4y1J4iO2Lo%2F-Mi1y3klxSn5JnQ8Q9wb%2Fratio-4.3%20(1).png?alt=media&#x26;token=11c8f9f0-d5ab-44f3-bc10-ae6b07bf35f8" alt="" data-size="original"> </td></tr><tr><td><img src="https://3095585262-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MeRRIXlvUyVcYyYJauQ%2F-Mi1nYUH58Wqv4409h-z%2F-Mi1qxdckt-yw4FIGoV1%2FTypography%402x-1.png?alt=media&#x26;token=ae0b2daf-ca66-4774-9f53-da08bf2c0c6a" alt="" data-size="original"> </td><td><code>#000000</code></td><td><code>#1D4ED8</code></td><td><img src="https://3095585262-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MeRRIXlvUyVcYyYJauQ%2F-Mi1xjbhDS4y1J4iO2Lo%2F-Mi1y75VUHN9-ZVUR5Iv%2Fratio-4.3.png?alt=media&#x26;token=742b63fa-bdb9-4a6d-8945-96a1ddc405b0" alt="" data-size="original"> </td></tr><tr><td><img src="https://3095585262-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MeRRIXlvUyVcYyYJauQ%2F-Mi2-XaHq8-EQBlpMTqD%2F-Mi2-w0LiA4TjMLjw6V8%2Fprimary-blue-on-bg-500%402x.png?alt=media&#x26;token=8dc6bcfd-807f-4582-b770-d16e0e712c1b" alt="" data-size="original"></td><td><code>#1D4ED8</code></td><td><code>#607D9C</code></td><td><img src="https://3095585262-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MeRRIXlvUyVcYyYJauQ%2F-Mi2-XaHq8-EQBlpMTqD%2F-Mi201e262ts9-GRUDIt%2Fratio-1.6.png?alt=media&#x26;token=2388dd7f-8ab8-4751-ab66-fef35fba60ad" alt="" data-size="original"></td></tr></tbody></table>

### Using background opacity

Using text opacity instead of using grey text and icons on top of colored backgrounds, create better contrast by displaying white or black text with reduced opacity.

For example, black text displayed at 75% opacity on a light blue background gives the text an appearance of black, with a hint of UF blue.

![](https://3095585262-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MeRRIXlvUyVcYyYJauQ%2F-Mea86WxamRWvS35wsP_%2F-MeaWUUXUQFBha-VZyBm%2FTypography\(Do\).png?alt=media\&token=ef05f45c-e3b9-4483-aaf7-f41dde565c1f)

Use a light background color behind dark text to preserve contrast.

![](https://3095585262-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MeRRIXlvUyVcYyYJauQ%2F-Mea86WxamRWvS35wsP_%2F-MeaWwvCPPfrmnJugdJC%2FTypography\(Don't\).png?alt=media\&token=95b31f0d-cb77-468a-aa6c-c372d6aa66bc)

Don't use a dark background color behind dark text, as it reduces contrast.

###

### Dark text on light backgrounds

Dark text on light backgrounds (shown here as #000000 on #FFFFFF) applies the following opacity levels:

•   High emphasis text has an opacity of 87%&#x20;

•   Medium-emphasis text and hint text have opacities of 60%

•   Disabled text has an opacity of 38%

![](https://3095585262-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MeRRIXlvUyVcYyYJauQ%2F-Mi46lpug8VFyqmo-aPt%2F-Mi4812g0i6shgDlMxMc%2FTypography\(Emphasis\).png?alt=media\&token=659d9ace-ab41-4d42-ae87-de522b8e2e53)
