DesignTypography

Typography system with predefined text styles, Inter font family, and three color variants (primary, secondary, tertiary)

Text Styles Reference

Ag
h1132/100.text-h1
Ag
h264/80.text-h2
Ag
h348/64.text-h3
Ag
h420/24.text-h4
Ag
h516/20.text-h5
Ag
display48/56.text-display
Ag
display small32/40.text-display-small
Ag
p16/161.8.text-p
Ag
dense bold14/140.text-dense-bold
Ag
dense14/140.text-dense
Ag
label14/16.text-label
Ag
label small13/16.text-label-small
Ag
small bold13/16.text-small-bold
Ag
small13/16.text-small

Color Variants

Primary
--color-font-primary
.text-color-primary

The quick brown fox jumps over the lazy dog

Secondary
--color-font-secondary
.text-color-secondary

The quick brown fox jumps over the lazy dog

Tertiary
--color-font-tertiary
.text-color-tertiary

The quick brown fox jumps over the lazy dog

Heading Hierarchy

Use semantic heading levels for content structure

Props:
{ className: "text-h4 text-color-primary" }

Section Title (h4)

This is a paragraph with secondary color for less emphasis.

Display Text

Large decorative text for hero sections

Props:
{ className: "text-display" }

Display

Dense Text

Compact text for lists and data

Props:
{ className: "text-dense | text-dense-bold" }
Dense Bold: Important Information
Dense: Supporting details and metadata

Labels

Uppercase labels for form fields and categories

Props:
{ className: "text-label | text-label-small" }

Small Text

Fine print and auxiliary information

Props:
{ className: "text-small | text-small-bold" }
Small Bold: Captions and timestampsSmall: Fine print and disclaimers

Combining Classes

Mix typography and color classes freely

Props:
{ className: "text-* text-color-*" }
Primary dense bold text
Secondary small text

Design Specifications

Font Family
  • • Primary: Inter (system font)
  • • Weights: Regular (400), Medium (500), Bold (700)
  • • Letter spacing: -0.03em for headings
  • • Anti-aliasing optimized for screens
Line Heights
  • • Headings: tight (100% to 133%)
  • • Body text: 161.8% (golden ratio)
  • • Dense text: 140%
  • • Labels/Small: 16px fixed
Color System
  • • Primary: Main content text
  • • Secondary: Supporting information
  • • Tertiary: Hints and placeholders
  • • Adapts to light/dark themes
Best Practices
  • • Use semantic HTML elements
  • • Maintain visual hierarchy
  • • Limit color variations per section
  • • Ensure sufficient contrast