Soundstripe Design System

Text

This component is used to render text in a variety of styles based on Soundstripe theme tokens. A single variant is shorthand for a set of typography-specific tokens.

Props

styled-system other props

Usage

By default, the Text component renders at the md size. One can use the default Text settings for most text elements.

We do have multiple variants for other situations.

Variant Settings

Size
Example
Font Size/Line Height
xl3

Text size xl3

font-size: 2.5remline-height: 3rem
xl2

Text size xl2

font-size: 2remline-height: 2.75rem
xl

Text size xl

font-size: 1.5remline-height: 2rem
lg

Text size lg

font-size: 1.25remline-height: 1.75rem
md

Text size md

font-size: 1remline-height: 1.5rem
sm

Text size sm

font-size: 0.875remline-height: 1.25rem
xs

Text size xs

font-size: 0.75remline-height: 1rem