Typography System
A comprehensive typography system designed for optimal readability across all content types.
Typography System
This comprehensive typography system is designed to provide excellent readability and visual hierarchy for all types of content, from marketing pages to technical documentation.
Heading Hierarchy
Our typography system uses a clear heading hierarchy to organize content. Each heading level has specific size, weight, and spacing values optimized for readability.
Third Level Heading
This is a paragraph under a third-level heading. Notice how the spacing and sizing create a clear visual hierarchy. We use bold text for emphasis andlinks are styled to match our brand colors.
Fourth Level Heading
Even at smaller heading sizes, the typography remains clear and readable. Inline code snippets are styled with our brand colors and subtle backgrounds.
Text Elements
Lists
Both ordered and unordered lists are styled for clarity:
- First item in an unordered list
- Second item with bold text
- Third item with a link
- Nested items are also supported:
- Nested item one
- Nested item two
- First item in an ordered list
- Second item with emphasis
- Third item with code:
npm install
Blockquotes
"Excellence in typography is the result of nothing more than an attitude. Its appeal comes from the understanding used in its planning; the designer must care."
— Robert Bringhurst
Code Blocks
Pre-formatted code blocks are styled with syntax highlighting in mind:
// Example TypeScript function
function calculatePerformance(data: number[]): PerformanceMetrics {
const mean = data.reduce((a, b) => a + b) / data.length;
const variance = data.reduce((a, b) => a + Math.pow(b - mean, 2), 0) / data.length;
return {
mean,
standardDeviation: Math.sqrt(variance),
min: Math.min(...data),
max: Math.max(...data)
};
}Tables
Tables are styled for clarity and readability:
| Feature | CPU | GPU (CUDA) | Speedup |
|---|---|---|---|
| Simple Moving Average | 100ms | 3.7ms | 27x |
| Exponential Moving Average | 120ms | 5.1ms | 23.5x |
| Relative Strength Index | 150ms | 5.2ms | 28.8x |
Media Elements
Images and videos are styled with rounded corners and shadows for a polished appearance. They're responsive by default and include proper spacing.
Conclusion
This typography system provides all the elements needed for creating beautiful, readable content. Whether you're writing documentation, blog posts, or marketing copy, these styles ensure consistency and professionalism throughout the site.
Usage Guidelines
Available Classes
.prose-brand Default branded prose styles for general content
.prose-docs Documentation-specific styles with enhanced code blocks
.prose-compact Compact variant for UI elements and cards
.prose-base-responsive Responsive sizing that adapts to viewport
Best Practices
- ✓ Use
.prose-brandfor marketing and general content - ✓ Apply
.prose-docsfor technical documentation - ✓ Add
max-w-nonefor full-width content - ✓ Combine with container classes for proper spacing
- ! Avoid mixing multiple prose variants
Implementation Example
<!-- Basic usage -->
<div class="prose-brand max-w-none">
<h1>Your Title</h1>
<p>Your content goes here...</p>
</div>
<!-- Documentation layout -->
<article class="prose-docs">
<h1>API Reference</h1>
<p>Technical documentation content...</p>
<pre><code>// Code examples</code></pre>
</article>
<!-- Compact UI variant -->
<div class="card">
<div class="prose-compact">
<h3>Feature Title</h3>
<p>Brief description...</p>
</div>
</div>