Skip to main content

Lesson 4 of 9

Typography for Interfaces - Font Selection, Pairing & Type Scales

Typography is the single most powerful tool in UI design for communicating hierarchy, personality, and readability. Studies show that over 90% of design is typography - because most digital products are text-heavy, and because typographic choices communicate brand personality more subtly and pervasively than any other visual element. This topic goes beyond 'choose a nice font' into the systematic approach that professional designers use: type scales, line height optimization, letter spacing for different use cases, and how to pair fonts for complementary visual contrast.

45 minBy Priygop Editorial TeamUpdated 2026Peer Reviewed & Verified

Choosing Fonts for UI - The Decision Framework

Font selection is not about personal taste - it's a design decision with technical, accessibility, and brand implications. The framework: Step 1 - Category determines feel. Serif fonts (Times, Georgia, Playfair) feel traditional, trustworthy, editorial - used by news outlets, banks, publishers. Sans-serif fonts (Inter, Roboto, SF Pro) feel modern, clean, neutral - the dominant UI font category for apps and SaaS. Monospace fonts (JetBrains Mono, Fira Code) feel technical and precise - used for code, data, and financial figures. Display fonts feel distinctive and branded - used for hero headings only, never body text. Step 2 - Legibility at small sizes. The functional size range for UI text is 12px-18px - your font must be highly legible at these sizes. Fonts with high x-height (the height of lowercase letters relative to uppercase) read better at small sizes: Inter, Roboto, and DM Sans are specifically optimized for screens. Step 3 - Web performance. Loading custom fonts adds page weight. Use variable fonts (one file, multiple weights and widths) when performance matters. Google Fonts are free and fast - Inter is the single most popular UI font in the world for good reason: it's beautiful, legible, variable, and free.

Diagram
Loading diagram…

Typography for Interfaces - Font Selection, Pairing & Type Scales: Visual guide and core principles.

Building a Type Scale

  • What is a type scale: A type scale is a set of pre-defined font sizes that maintain harmonious mathematical relationships. Using a scale creates visual consistency - headings, subheadings, body text, and labels all feel like they belong to the same system
  • The modular scale: Multiply a base size by a ratio to generate the scale. Common ratios: 1.25 (Major Third, used by many SaaS products for its moderate step size), 1.333 (Perfect Fourth, creates more dramatic size jumps), 1.5 (Perfect Fifth, very dramatic jumps, good for landing pages). Base: 16px. With 1.25 ratio: 10.24px (xs), 12.8px (sm), 16px (base), 20px (lg), 25px (xl), 31.25px (2xl), 39px (3xl), 48.8px (4xl)
  • Practical UI type scale: Rather than perfectly mathematical ratios, most design systems use a practical scale: 12px (label, caption), 14px (body small, helper text), 16px (body default), 18px (body large, subheading small), 20px (subheading), 24px (heading small), 32px (heading medium), 40px (heading large), 48-64px (display)
  • Using the scale in Figma: Create a text style for each scale step. Name them semantically: 'Display/Large', 'Heading/Medium', 'Body/Default', 'Label/Small'. Never design with ad-hoc font sizes - always pick from your defined scale. This is the single habit that most dramatically improves typographic consistency
  • Scale for mobile vs desktop: Mobile interfaces use a slightly more compressed scale because screen width constrains line length. Display text might go from 64px on desktop to 36px on mobile. Ensure each scale step is readable and hierarchically distinct on the smallest supported screen size

Line Height, Letter Spacing & Readability

Three typographic properties dramatically affect readability without changing the font or size: Line height (leading): the vertical distance between baselines of consecutive lines of text. The optimal line height for body text is 1.4-1.6× the font size (16px font → 22-26px line height). Lines too close together make text feel cramped and hard to scan. Lines too far apart make text feel disconnected and readers lose their place returning to the next line. For UI labels, captions, and single-line strings, use 1.2× or 1.0× - breathing room matters more for multi-line reading than for single-line UI text. Letter spacing (tracking): the uniform addition or reduction of space between all characters in a text block. For body text, letter spacing should be 0 or slightly negative (tighter feels more editorial). For all-caps labels and overlines, add positive letter spacing (0.05-0.1em) - all-caps without tracking is very hard to read because the uniform cap height makes character shapes less distinct. For large display headings, tight (-1 to -3px) tracking feels premium and professional. Line length (measure): The optimal line length for sustained reading is 45-75 characters per line (about 8-12 words). Lines shorter than 45 characters fragment ideas across too many lines. Lines longer than 75 characters make it hard for the eye to find the start of the next line. In responsive layouts, constrain text containers to max-width: 65ch (65 characters) for body text.

Tip

Tip

Practice Typography for Interfaces Font Selection Pairing Type Scales in small, isolated examples before integrating into larger projects. Breaking concepts into small experiments builds genuine understanding faster than reading alone.

Practice Task

Note

Practice Task - (1) Write a working example of Typography for Interfaces Font Selection Pairing Type Scales from scratch without looking at notes. (2) Modify it to handle an edge case (empty input, null value, or error state). (3) Share your solution in the Priygop community for feedback.

Quick Quiz

Common Mistake

Warning

A common mistake with Typography for Interfaces Font Selection Pairing Type Scales is skipping edge case testing - empty inputs, null values, and unexpected data types. Always validate boundary conditions to write robust, production-ready ui ux code.

Key Takeaways

  • Typography is the single most powerful tool in UI design for communicating hierarchy, personality, and readability.
  • What is a type scale: A type scale is a set of pre-defined font sizes that maintain harmonious mathematical relationships. Using a scale creates visual consistency - headings, subheadings, body text, and labels all feel like they belong to the same system
  • The modular scale: Multiply a base size by a ratio to generate the scale. Common ratios: 1.25 (Major Third, used by many SaaS products for its moderate step size), 1.333 (Perfect Fourth, creates more dramatic size jumps), 1.5 (Perfect Fifth, very dramatic jumps, good for landing pages). Base: 16px. With 1.25 ratio: 10.24px (xs), 12.8px (sm), 16px (base), 20px (lg), 25px (xl), 31.25px (2xl), 39px (3xl), 48.8px (4xl)
  • Practical UI type scale: Rather than perfectly mathematical ratios, most design systems use a practical scale: 12px (label, caption), 14px (body small, helper text), 16px (body default), 18px (body large, subheading small), 20px (subheading), 24px (heading small), 32px (heading medium), 40px (heading large), 48-64px (display)

Hands-on Practice Tools for this Course

Test what you learn using these free in-browser developer utilities (no signup required).

All 40+ Tools

Topics in This Module

0/9 done