Typography
The TpGroup typography system uses system fonts for zero-latency loading and offline capability. Our type scale provides 10 consistent sizes optimized for readability across all devices.
Font Families
System UI
Primary font stack (0 KB, offline-ready)
The quick brown fox jumps over the lazy dog
ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 0123456789
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif
System Mono
Code snippets, technical content
The quick brown fox jumps over the lazy dog
ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 0123456789
"SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace
Type Scale
display-xl
48px / 600Hero headlines, landing pages
display-lg
40px / 600Large display text
heading-xl
32px / 600Page titles
heading-lg
28px / 600Section headings
heading-md
24px / 600Card titles, modal headers
heading-sm
20px / 600Small headings
body-lg
18px / 400Large body text
body-md
16px / 400Default body text
body-sm
14px / 400Small body text
body-xs
12px / 400Captions, labels, helper text
Font Weights
Regular
Body text, paragraphs
Medium
Emphasis, buttons
Semibold
Headings, strong emphasis
Bold
High emphasis
Code Example
/* CSS Custom Properties */ --font-size-display-xl: 48px; --font-size-heading-lg: 28px; --font-size-body-md: 16px; /* Tailwind Classes */ <h1 className="text-5xl font-semibold"> <h2 className="text-2xl font-semibold"> <p className="text-base"> /* React/TypeScript */ <Text variant="heading-lg">Section Heading</Text> <Text variant="body-md">Paragraph text</Text>
Typography Guidelines
- • System fonts load instantly (0 KB) and work offline - perfect for low-bandwidth markets
- • Maintain 1.5-1.6 line height for body text to ensure readability
- • Use semantic heading hierarchy (h1 → h2 → h3) for accessibility
- • Keep line lengths between 45-75 characters for optimal reading
- • All text meets WCAG 2.2 AA contrast requirements on backgrounds