Typography

ARK sets text in Aeonik, with Aeonik Mono for code and data. Sixteen text styles cover every heading, body and mono size.

Text styles

Pick a text style instead of setting size and weight by hand.

SampleUtilitySizeLine heightWeight
Track 207 entered the north zonetypo-body-xs-semibold12px16px600
Track 207 entered the north zonetypo-body-xs-medium12px16px500
Track 207 entered the north zonetypo-body-xs-regular12px16px400
Track 207 entered the north zonetypo-body-sm-semibold14px20px600
Track 207 entered the north zonetypo-body-sm-medium14px20px500
Track 207 entered the north zonetypo-body-sm-regular14px20px400
Track 207 entered the north zonetypo-body-md-semibold16px24px600
Track 207 entered the north zonetypo-body-md-medium16px24px500
Track 207 entered the north zonetypo-body-md-regular16px24px400
Track 207 entered the north zonetypo-heading-xs20px28px500
Track 207 entered the north zonetypo-heading-sm24px32px500
Track 207 entered the north zonetypo-heading-md30px40px500
Track 207 entered the north zonetypo-heading-lg36px40px500
Track 207 entered the north zonetypo-display-md48px48px500
Track 207 entered the north zonetypo-mono-md12px16px400
Track 207 entered the north zonetypo-mono-xs10px12px400

Usage

In a component tree, use Text with a variant and a tone. Pass render to make it a heading or a paragraph. On an element of your own, the utility does the same job.

import { Text } from "@kela-systems/ui-components";

<Text variant="heading-sm" render={<h2 />}>Active tracks</Text>
<Text variant="body-sm-regular" tone="neutral-secondary">Updated 12 seconds ago</Text>

<span className="typo-mono-xs text-neutral-tertiary">32.0853° N</span>

Font size

CSS variableValuePixels
--font-size-2xs0.625rem10px
--font-size-xs0.75rem12px
--font-size-sm0.875rem14px
--font-size-base1rem16px
--font-size-lg1.125rem18px
--font-size-xl1.25rem20px
--font-size-2xl1.5rem24px
--font-size-3xl1.875rem30px
--font-size-4xl2.25rem36px
--font-size-5xl3rem48px
--font-size-6xl3.75rem60px
--font-size-7xl4.5rem72px
--font-size-8xl6rem96px

Line height

CSS variableValuePixels
--leading-30.75rem12px
--leading-41rem16px
--leading-51.25rem20px
--leading-61.5rem24px
--leading-71.75rem28px
--leading-82rem32px
--leading-92.25rem36px
--leading-102.5rem40px
--leading-123rem48px
--leading-153.75rem60px
--leading-184.5rem72px
--leading-246rem96px

Font weight

CSS variableValue
--font-weight-thin100
--font-weight-extralight200
--font-weight-light300
--font-weight-normal400
--font-weight-medium500
--font-weight-semibold600
--font-weight-bold700
--font-weight-extrabold800
--font-weight-black900

Letter spacing

CSS variableValue
--tracking-tighter-0.05em
--tracking-tight-0.025em
--tracking-normal0em
--tracking-wide0.025em
--tracking-wider0.05em
--tracking-widest0.1em

Read this page as Markdown

Search ARK

Find a page, a primitive or a component.