Skip to content

Typography

Fonts, scales and styles for typograpical elements.

Overview

Typography groups together font size, weight, family and line heights.

Responsive font sizes are array values that correspond to the responsive breakpoints. The first value will be used below the smallAndUp breakpoint, the second value will be used for all other screen sizes.

Line Height

Line height is a ratio and applies to all text, including headings and body text.

Theme tokens
TokenDefault Value
lineHeights.standard1.3

Weight

Aa
Aa
Aa
Theme tokens
TokenDefault Value
fontWeights.normal400
fontWeights.bold700
fontWeights.semiBold600

Fonts

Nebula uses the Aspekta (opens in new window)  which is an open source font family for Headings/Display, and Inter (opens in new window)  font family which is available as Google font for Body. If Aspekta font family is not present then the Inter font will be used as fallback.

Display
Body
Monospace
Theme tokens
TokenDefault Value
fonts.display"Aspekta", Inter, sans-serif
fonts.body"Inter", sans-serif
fonts.monospaceCourier

Font Sizes

Font sizes are paired for responsive scaling. Each token has an array of corresponding values. As a general rule, the small screen size is usually one step down the scale. e.g. body on small screen is equivalent to small on screen sizes above small.

Level 1
Level 2
Level 3
Level 4
Body
Small
Level 1
Level 2
Level 3
Level 4
Body
Small

The scale is also available under fontSizes, but the recommendation is to use responsiveFontSizes to get the responsive pairings.

Theme tokens
TokenDefault Value
responsiveFontSizes.small.01.0rem
responsiveFontSizes.small.11.2rem
responsiveFontSizes.body.01.2rem
responsiveFontSizes.body.11.4rem
responsiveFontSizes.level1.02.4rem
responsiveFontSizes.level1.12.8rem
responsiveFontSizes.level2.02.0rem
responsiveFontSizes.level2.12.4rem
responsiveFontSizes.level3.01.6rem
responsiveFontSizes.level3.12.0rem
responsiveFontSizes.level4.01.4rem
responsiveFontSizes.level4.11.6rem