Expand description
§Typography Tokens
This module provides type-safe typography tokens for font families and size scales used throughout the Fern design system.
§Font Categories
Fern uses three font categories:
| Category | Purpose | Default |
|---|---|---|
| Primary | UI text, labels | Inter |
| Monospace | Code, terminal icons | JetBrainsMono Nerd Font |
| Icon | Material icons | Material Symbols Rounded |
§Font Size Scale
Font sizes follow a semantic scale rather than arbitrary pixel values:
| Token | Pixels | Use Case |
|---|---|---|
Xs | 10px | Captions, legal text |
Sm | 12px | Labels, secondary text |
Md | 14px | Body text (default) |
Lg | 16px | Subheadings |
Xl | 20px | Headings |
Xxl | 24px | Large headings |
Structs§
- Font
Family - A font family specification.
- Font
Size Scale - Complete font size scale with pixel values.
- Typography
- Typography configuration combining fonts and sizes.
Enums§
- Font
Size - Font size scale with semantic sizes.
Functions§
- default_
lg 🔒 - default_
md 🔒 - default_
sm 🔒 - default_
xl 🔒 - default_
xs 🔒 - default_
xxl 🔒