Variables that store values for the base layer of your design system, like colour and typography. They’re used in components, so changes on this level will resonate throughout the whole system.
Our robust typography system features the Rubik type family, which is free on fonts.google.com. Google. Google fonts are available in the Figma web app, and you can download them for use in other applications.
'Major Third' type scale
(scale factor = 1.25)
Our root element (the pixel value all calculations are based on) changes at five breakpoints, ranging from 12px on extra small screens (mobile) to 17px on extra large screens (desktop). Each font size is a 1.25% multiple of that root element.
All headings have a base font family, size, weight, line height and bottom margin. There is no need to add modifier classes to achieve those default text styles.
All headings and paragraph text have a base (default) font size, weight, line height, and bottom margin of .04em. There is no need to add classes to achieve the default text styles.
fs-8 fw-400 lh-3 (3rem font size, regular weight, line height 1.1em)
fs-6 fw-400 lh-3 (2rem font size, regular weight, line height 1.1em)
fs-6 fw-400 lh-3 (1.5rem font size, medium weight, line height 1.3em)
fs-4 fw-500 lh-6 (1.25rem font size, medium weight, line height 1.4em)
fs-3 fw-700 lh-6 (1rem font size, bold weight, line height 1.4em)
body / paragraph
fs-3 fw-300 lh-6 (1rem font size, light weight, line height 1.4em)
The classes below can be applied to override the defaults and add styling such as text color and spacing. They should be used sparingly and intentionally, as the default type styles are meant to work together as a cohesive, hierarchical system in a page outline.
Our default heading and paragraph elements are called out in red. Adjust the width of your browser window or view on both large and small devices to see how each line of text responds to the available screen space, based on the change in root element (rem).