Font Sizes
Control text size with our comprehensive font size scale.Font Size Scale
.text-xs | 12px | font-size: 12px; | Small text, captions |
.text-sm | 14px | font-size: 14px; | Body text, labels |
.text-base | 16px | font-size: 16px; | Default body text |
.text-lg | 18px | font-size: 18px; | Large body text |
.text-xl | 20px | font-size: 20px; | Small headings |
.text-2xl | 24px | font-size: 24px; | Medium headings |
.text-3xl | 32px | font-size: 32px; | Large headings |
.text-4xl | 40px | font-size: 40px; | Extra large headings |
.text-5xl | 48px | font-size: 48px; | Hero headings |
Examples
Font Weights
Control text weight with our font weight utilities.Font Weight Scale
.font-300 | Light | font-weight: 300; | Light text |
.font-400 | Normal | font-weight: 400; | Regular text |
.font-500 | Medium | font-weight: 500; | Medium emphasis |
.font-600 | Semi-bold | font-weight: 600; | Strong emphasis |
.font-700 | Bold | font-weight: 700; | Bold text |
.font-800 | Extra bold | font-weight: 800; | Very bold text |
Examples
Line Heights
Control line spacing for better readability.Line Height Scale
.leading-tight | 16px | line-height: 16; | Tight spacing |
.leading-normal | 18px | line-height: 18; | Normal spacing |
.leading-relaxed | 24px | line-height: 24; | Relaxed spacing |
.leading-loose | 32px | line-height: 32; | Loose spacing |
Examples
Text Alignment
Control text alignment with semantic utilities.Text Alignment
.text-start | Start | text-align: start; | Left-aligned (LTR) |
.text-center | Center | text-align: center; | Center-aligned |
.text-end | End | text-align: end; | Right-aligned (LTR) |
Examples
Text Transform
Transform text case with utility classes.Text Transform
.uppercase | UPPERCASE | text-transform: uppercase; | All caps |
.lowercase | lowercase | text-transform: lowercase; | All lowercase |
Examples
Text Decoration
Control text decoration and styling.Text Decoration
.underline | Underlined | text-decoration: underline; | Underlined text |
.no-underline | No underline | text-decoration: none; | Remove underline |
.italic | Italic | font-style: italic; | Italic text |
Examples
Letter Spacing
Control character spacing for better readability.Letter Spacing
.tracking-wide | Wide | letter-spacing: 2px; | Increased spacing |
Examples
Typography Combinations
Common Patterns
Hero Section
Article Content
Card Header
Form Labels
Best Practices
Typography Hierarchy
1
Use Semantic HTML
Always use proper heading tags (h1, h2, h3) with utility classes.
2
Maintain Visual Hierarchy
Use larger font sizes for more important content.
3
Consistent Spacing
Use consistent margin and padding with your typography.
4
Readable Line Heights
Use relaxed line heights for body text, tight for headings.
Accessibility
Accessibility Note: Always ensure sufficient color contrast between text
and background colors for readability.
- Use
font-600orfont-700for important text - Maintain consistent line heights for readability
- Use semantic HTML elements with utility classes
- Test with screen readers for proper heading structure
Performance
- Font weights are loaded efficiently by the browser
- Line height values are optimized for performance
- Text transforms don’t affect layout performance

