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
| Token | Value |
|---|---|
Text Styles
Predefined text style presets. Each style combines fontFamily, fontSize, fontWeight, and lineHeight.
30 tokens
| Token | Value |
|---|---|
Usage
import { Text } from '@illog/ui'
import { styles } from '@illog/themes'
export function Headings() {
return (
<>
<Text textStyle="heading">Heading text</Text>
<Text textStyle="bodyBase">Body text</Text>
</>
)
}
// The same type style as a style object (fontFamily, fontSize, fontWeight, lineHeight ...)
export const titleStyle = styles.text.title