<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5HGSQD2L" height="0" width="0" style="display:none;visibility:hidden" title="GTM"></iframe>

Typography

Typography guides users through an experience by organizing information and creating a clear visual hierarchy.

Typography decisions are stored in design tokens which sync between code and Figma. All typography-related design tokens start with the word font, followed by a property: family, size, weight, line-height and letter-spacing.

See the All Tokens page for a full list of typography tokens.

Font skin

The recommended path for setting typography is the fontSkin prop, which bundles together styling decisions for font size, font weight, font family, line height, and letter spacing. Don’t use other explicit typographic props (e.g. fontFamily) in combination with fontSkin.

The preview has been updated.

Font size

Font sizes scale seamlessly with different breakpoints—sizes are smaller on XS & SM, increase on MD, and increase again on LG & XL. Note that in Compact mode, font sizes are consistent across all breakpoints.

Font size is bundled in with other design decisions as part of fontSkin. However, for text not using fontSkin, there is the fontSize prop, which bundles together styling decisions for font size, line height, and letter spacing.

The preview has been updated.

Font family

SWAN uses two font families: Graphik and Tiempos.

Font family is bundled in with other design decisions as part of fontSkin. However, for text not using fontSkin, there is the fontFamily prop, which has two options: primary and secondary.

Font weight

Body text should use normal font weight by default. Use bold to emphasize specific content. Avoid using bold for large paragraphs of text.

Font weight is bundled in with other design decisions as part of fontSkin. However, for text not using fontSkin, there is the fontWeight prop, which has two options: normal and bold.

Line height and letter spacing

To aid with readability, smaller text sizes should have greater line height and letter spacing, while they should be reduced on larger text sizes.

Line height and letter spacing are bundled in with other design decisions as part of fontSkin and fontSize. They should not be adjusted separately.

Color

The textColor core prop can be used to change the color of body text. Use standard color for most text across Vista. subtle can be used in select cases to help distinguish the content hierarchy. Headings should always use standard.

For more information, see Color.

Modes

Text colors are reversed under Dark Mode, better pairing with dark-colored backgrounds.

Type sizes change under Compact Mode, increasing the density while maintaining readability.

For more information on modes, see Modes.

Alignment

Text is left-aligned by default. This helps with readability and consistency across the site.

Center-aligned text is allowed for some scenarios, such as text in banners. Consider the context and adjust as needed.

Line length

The optimal line length for your body text is 60-80 characters per line, including spaces. If a line is too short, readers have to travel back too quickly, breaking their rhythm — and if a line is too long, it makes it difficult for the readers' eyes to focus, and they will not be able to gauge where lines start and end.

Refer to Grid Layout for more on how to create text layouts.

The ideal line length is between 60 to 80 characters

Case

Sentence case is our default capitalization standard — for headlines, CTAs, and body content.

The few exceptions where other cases are acceptable are outlined in the capitalization section on Writer.

Sentence case

This sentence is easy to read and feels friendly.

Title Case

This Sentence Is Really Hard to Read and Doesn’t Feel Friendly.

UPPERCASE

THIS SENTENCE IS HARD TO READ AND SOUNDS LIKE YELLING.

aLtErNaTiNg CaPs

NoW tHiS iS jUsT cRuEl To OuR uSeRs.

Components

SWAN has the following components with typography as the primary element:


Related

Was this page useful?

Thanks for your feedback!

Feel free to include your name if you wish to have a follow up conversation.


Published: Jun 30, 2022Last updated: Oct 17, 2024