Skip to main content
K
Last modified: 24/Jun/2024

Typography

We have a very simple typographic system in Stratus.

The foundational typography elements are localed in this package.

We use two font families. Our primary font is Inter. and the brand font is Reckless.

Our primary font

Use Inter font in almost every case.

#Reckless

Our brand font

Use Reckless font only when you intend to indicate our brand. It's usually used for titles.

Usage

There are two ways to use typographic components

  1. by using only the CSS rules, and compositing a custom ruleset:
import styled from '@emotion/styled' import { body } from '@kinsta/stratus' export const MyComponent = () => ( styled.span(body) )
  1. by using the component:
import { Heading } from '@kinsta/stratus' export const MyComponent = () => ( <> <Heading size="m">My title</Heading> <Content /> </> )

#Next up