Typography Guide for Nova Design System
Introduction
Typography in Nova is built on a consistent, token-based system that ensures visual harmony across all digital products. This guide focuses on practical implementation and best practices for developers using Nova's typography utilities.
Key Principle: Nova uses utility classes that combine font-size, font-weight, and line-height into single, semantic class names. This ensures consistency and reduces the cognitive load of managing multiple typographic properties.
Font Family
Nova uses TT Norms as the primary digital font for all interfaces.
When to use:
- All user interfaces, web applications, and digital products
- Component text, labels, buttons, forms
- Dashboard content, data tables, navigation
- Any interactive digital element
How to access: Contact the Nova Design System team for TT Norms license access
Typography Variants
Nova provides three typography categories, each optimized for different content types:
1. Heading Typography
Used for titles, section headers, and hierarchical content structure.
| Size | Class Name | Font Size | Line Height | Available Weights |
|---|---|---|---|---|
| 3XL | typo-heading-3xl-{weight} | 60px | 60px | regular, medium, bold |
| 2XL | typo-heading-2xl-{weight} | 48px | 48px | regular, medium, bold |
| XL | typo-heading-xl-{weight} | 36px | 40px | regular, medium, bold |
| LG | typo-heading-lg-{weight} | 30px | 32px | regular, medium, bold |
| MD | typo-heading-md-{weight} | 24px | 28px | regular, medium, bold |
| SM | typo-heading-sm-{weight} | 20px | 24px | regular, medium, bold |
| XS | typo-heading-xs-{weight} | 18px | 24px | regular, medium, bold |
Usage Example:
export default function ProductCard() {
return (
<div>
<h2 className="typo-heading-lg-bold">Product Features</h2>
<h3 className="typo-heading-sm-medium">Advanced Analytics</h3>
<p className="typo-text-md-regular">
Real-time data visualization and insights.
</p>
</div>
);
}
2. Text Typography
Used for body content, descriptions, labels, and general text.
| Size | Class Name | Font Size | Line Height | Available Weights |
|---|---|---|---|---|
| XL | typo-text-xl-{weight} | 20px | 30px | regular, medium, bold |
| LG | typo-text-lg-{weight} | 18px | 28px | regular, medium, bold |
| MD | typo-text-md-{weight} | 16px | 24px | regular, medium, bold |
| SM | typo-text-sm-{weight} | 14px | 20px | regular, medium, bold |
| XS | typo-text-xs-{weight} | 12px | 16px | regular, medium, bold |
| XXS | typo-text-xxs-{weight} | 10px | 12px | regular, medium, bold |
Usage Example:
export default function UserProfile() {
return (
<div>
<p className="typo-text-lg-regular">Welcome back, John!</p>
<p className="typo-text-sm-regular">Last login: 2 hours ago</p>
<label className="typo-text-xs-medium">Account Status</label>
</div>
);
}
3. Mono Typography
Used for code snippets, technical content, and monospaced requirements.
| Size | Class Name | Font Size | Line Height | Available Weights |
|---|---|---|---|---|
| MD | typo-mono-md-{weight} | 16px | 24px | regular, medium, bold |
| SM | typo-mono-sm-{weight} | 14px | 20px | regular, medium, bold |
| XS | typo-mono-xs-{weight} | 12px | 16px | regular, medium, bold |
| XXS | typo-mono-xxs-{weight} | 10px | 12px | regular, medium, bold |
Usage Example:
export default function CodeExample() {
return (
<div className="p-4 rounded">
<code className="typo-mono-sm-regular">
npm install @nova-design-system/nova-react
</code>
</div>
);
}
Naming Convention
All typography classes follow a predictable naming pattern:
typo-[usage]-[size]-[weight]
Pattern breakdown:
typo-- Prefix for all typography utilities[usage]- One of:heading,text, ormono[size]- One of:xl,lg,md,sm, orxs[weight]- One of:regular,medium, orbold
Examples:
// Valid typography classes
<h1 className="typo-heading-xl-bold">Page Title</h1>
<p className="typo-text-md-regular">Body text content</p>
<code className="typo-mono-sm-medium">const x = 10;</code>
// Invalid - doesn't follow naming convention
<h1 className="heading-xl">Title</h1>
<p className="text-md">Content</p>
Global HTML Element Styles
Nova automatically styles common HTML elements with sensible defaults. You don't need to add typography classes to these elements unless you want to override the defaults:
| Element | Default Style Applied |
|---|---|
<h1> | typo-heading-xl-bold |
<h2> | typo-heading-lg-bold |
<h3> | typo-heading-md-bold |
<h4> | typo-heading-sm-medium |
<h5> | typo-heading-xs-medium |
<p> | typo-text-md-regular |
<span> | Inherits from parent |
<label> | typo-text-sm-medium |
<legend> | typo-text-md-medium |
<small> | typo-text-xs-regular |
<a> | typo-text-md-regular + link styles |
Example - Using Global Styles:
export default function Article() {
return (
<article>
{/* These elements get automatic styling */}
<h1>Article Title</h1>
<h2>Section Header</h2>
<p>This paragraph uses the default text-md-regular styling.</p>
{/* Override only when needed */}
<p className="typo-text-lg-regular">
This paragraph is larger than default.
</p>
</article>
);
}
Best Practices
DO: Use Complete Typography Classes
Always use the full Nova typography class that includes size, weight, and line-height:
// Good - Complete typography utility
<h2 className="typo-heading-md-bold">Dashboard</h2>
<p className="typo-text-md-regular">View your analytics</p>
// Avoid - Mixing Tailwind atomic classes
<h2 className="text-2xl font-bold leading-tight">Dashboard</h2>
<p className="text-base font-normal">View your analytics</p>
DO: Combine with Tailwind Utilities for Color and Spacing
Nova typography classes work seamlessly with Tailwind utilities:
<div className="space-y-4">
<h2 className="typo-heading-lg-bold ">Features</h2>
<p className="typo-text-md-regular mb-4">Explore our latest updates</p>
<span className="typo-text-sm-medium uppercase">New</span>
</div>
DO: Use Semantic HTML with Typography Classes
Combine semantic HTML with appropriate typography:
<article>
<header>
<h1 className="typo-heading-xl-bold">Blog Post Title</h1>
<time className="typo-text-sm-regular">March 15, 2024</time>
</header>
<section>
<h2 className="typo-heading-md-medium">Introduction</h2>
<p className="typo-text-md-regular">Article content here...</p>
</section>
</article>
DON'T: Mix Typography Systems
Avoid mixing Nova typography with custom font sizing:
// Bad - Inconsistent typography
<div>
<h2 className="typo-heading-lg-bold">Title</h2>
<p style={{ fontSize: '17px', lineHeight: 1.7 }}>
Custom sized text
</p>
</div>
// Good - Consistent Nova typography
<div>
<h2 className="typo-heading-lg-bold">Title</h2>
<p className="typo-text-lg-regular">
Properly sized text
</p>
</div>
DON'T: Use Tailwind Font Size Utilities
Nova typography classes already include font-size, so avoid Tailwind's text-{size} classes:
// Bad - Redundant and may conflict
<p className="typo-text-md-regular text-lg">Content</p>
// Good - Use Nova typography alone
<p className="typo-text-lg-regular">Content</p>
Common Patterns
Static Tables
export default function UserTable() {
return (
<nv-table>
<table>
<thead>
<tr>
<th className="typo-text-sm-bold">Name</th>
<th className="typo-text-sm-bold">Role</th>
</tr>
</thead>
<tbody>
<tr>
<td className="typo-text-md-regular">John Doe</td>
<td className="typo-text-sm-regular">Admin</td>
</tr>
</tbody>
</table>
</nv-table>
);
}
Cards and Content Blocks
export default function FeatureCard() {
return (
<div className="p-6">
<h3 className="typo-heading-md-bold mb-2">Analytics Dashboard</h3>
<p className="typo-text-md-regular mb-4">
Track your metrics in real-time with advanced visualizations.
</p>
<span className="typo-text-sm-medium ">Learn more →</span>
</div>
);
}
Code Blocks and Technical Content
export default function CodeSnippet() {
return (
<div className="rounded-lg p-4">
<p className="typo-text-sm-medium mb-2">Installation</p>
<pre className="typo-mono-sm-regular p-3 rounded">
npm install @nova-design-system/nova-react
</pre>
<p className="typo-text-xs-regular mt-2">
Run this command in your project directory
</p>
</div>
);
}
Notification Messages
export default function Notification() {
return (
<div className="border-l-4 p-4">
<h4 className="typo-text-md-bold ">New Update Available</h4>
<p className="typo-text-sm-regular ">
Version 2.0 includes performance improvements and new components.
</p>
</div>
);
}
Responsive Typography
Nova typography classes are fixed sizes by default. For responsive typography, use Tailwind's responsive modifiers:
export default function ResponsiveHeading() {
return (
<h1
className="
typo-heading-md-bold
md:typo-heading-lg-bold
lg:typo-heading-xl-bold
"
>
Responsive Title
</h1>
);
}
Debugging Typography Issues
CSS Specificity Conflicts
If typography doesn't apply, check for specificity issues:
/* This might override Nova typography */
div p {
font-size: 18px !important;
}
/* Use Nova classes with higher specificity */
.typo-text-md-regular {
/* Nova's styles will apply */
}
Resources
Design Tokens
Font Access
- Request TT Norms Access (Contact design team)