Blog / tutorials

Typography Basics Every Teen Developer Should Know

, 6 min read

Typography Is Design

95% of web design is typography. The fonts you choose, how you size them, and how you space them determines whether your site looks professional or amateur. These basics take 30 minutes to learn and last forever.

Font Pairing

Use two fonts maximum. One for headings (display font), one for body text (readable font). Classic pairings: serif heading + sans-serif body, or bold sans-serif heading + light sans-serif body. Google Fonts has thousands of free options.

Size Hierarchy

Your text needs clear visual hierarchy. Body text: 16-18px. Subheadings: 24-28px. Headings: 32-48px. Page titles: 48-72px. Use a consistent scale — multiply each level by roughly 1.25-1.5x.

Line Height and Spacing

Body text line-height should be 1.5-1.7. Headings can be tighter: 1.1-1.3. Paragraph spacing should be about the same as your line height. Letter-spacing: leave it alone for body text, add slight tracking to uppercase text.

Readability Rules

Maximum line length: 65-75 characters. This is why content areas are typically 600-700px wide. Text wider than this is hard to read. Text too narrow creates awkward line breaks.

Common Mistakes

Using too many font sizes. Centering long paragraphs. Making text too small on mobile. Using decorative fonts for body text. Not enough contrast between text and background.