Foundation

Typography

Font family, scale, weight, and text style tokens

Overview

illog's typography system is composed of Primitive tokens (font family, scale, weight) and Text Styles (combined style presets).

Primitive Tokens

Base tokens that define font families, size scales, and weights.

21 tokens
TokenValue

Text Styles

Predefined text style presets. Each style combines fontFamily, fontSize, fontWeight, and lineHeight.

30 tokens
TokenValue

Usage

import { styles } from '@illog/themes'
 
// With the Text component
<Text textStyle="heading">Heading text</Text>
<Text textStyle="bodyBase">Body text</Text>
 
// Using style objects directly
const titleStyle = styles.text.title.base
// { fontFamily: 'Inter, sans-serif', fontSize: '48px', fontWeight: 700, lineHeight: 1.2, ... }