Skip to main content

Typography tokens

Body font

This the base typeface for most of the components. You can modify the default as needed in design-tokens.json.

export const bodyFontValue = '"Segoe UI", Arial, Helvetica, sans-serif';

Usage in your code

font-family: var(--body-font);

Font sizes and line heights

This is a group of variables describing the font size and line-height hierarchy.

export const typeRampBaseFontSizeValue = '14px';
export const typeRampBaseLineHeightValue = '20px';
// ... remaining variables

Usage in your code

font-size: var(--type-ramp-minus-1-font-size);
line-height: var(--type-ramp-minus-1-line-height);