Skip to content

Typography Tokens

Typography tokens are used to maintain a consistent set of font styles throughout your app.

Typography tokens are a combination of font family, font size, font weight, letter spacing, and line height.

Font Family

The default font stack is designed to be simple and highly available on as many devices as possible.

TokenValueExample
--dsds-font-sans-apple-system, BlinkMacSystemFont, ‘Segoe UI’, Roboto, Helvetica, Arial, sans-serif, ‘Apple Color Emoji’, ‘Segoe UI Emoji’, ‘Segoe UI Symbol’The quick brown fox jumped over the lazy dog.
--dsds-font-serifGeorgia, ‘Times New Roman’, serifThe quick brown fox jumped over the lazy dog.
--dsds-font-monoSFMono-Regular, Consolas, ‘Liberation Mono’, Menlo, monospace;The quick brown fox jumped over the lazy dog.

Font Size

Font sizes use rem units so they scale with the base font size. The pixel values displayed are based on a 16px font size.

TokenValueExample
--dsds-font-size-2x-small0.625rem (10px)Aa
--dsds-font-size-x-small0.75rem (12px)Aa
--dsds-font-size-small0.875rem (14px)Aa
--dsds-font-size-medium1rem (16px)Aa
--dsds-font-size-large1.25rem (20px)Aa
--dsds-font-size-x-large1.5rem (24px)Aa
--dsds-font-size-2x-large2.25rem (36px)Aa
--dsds-font-size-3x-large3rem (48px)Aa
--dsds-font-size-4x-large4.5rem (72px)Aa

Font Weight

TokenValueExample
--dsds-font-weight-light300The quick brown fox jumped over the lazy dog.
--dsds-font-weight-normal400The quick brown fox jumped over the lazy dog.
--dsds-font-weight-semibold500The quick brown fox jumped over the lazy dog.
--dsds-font-weight-bold700The quick brown fox jumped over the lazy dog.

Letter Spacing

TokenValueExample
--dsds-letter-spacing-denser-0.03emThe quick brown fox jumped over the lazy dog.
--dsds-letter-spacing-dense-0.015emThe quick brown fox jumped over the lazy dog.
--dsds-letter-spacing-normalnormalThe quick brown fox jumped over the lazy dog.
--dsds-letter-spacing-loose0.075emThe quick brown fox jumped over the lazy dog.
--dsds-letter-spacing-looser0.15emThe quick brown fox jumped over the lazy dog.

Line Height

TokenValueExample
--dsds-line-height-denser1
The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
--dsds-line-height-dense1.4
The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
--dsds-line-height-normal1.8
The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
--dsds-line-height-loose2.2
The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
--dsds-line-height-looser2.6
The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.