UI Typography for Readability
Good typography isn't about fancy fonts; it's about making content effortless to read by controlling size, spacing, and alignment. It's crucial for body copy, headings, and labels. The footgun is using justified text or lines over 90 characters long.
Why it exists
Poor typography makes content difficult to understand, causing users to lose focus or abandon the text altogether. The goal of a deliberate typography system is to ensure all text—from headings to body copy—is clear, consistent, and highly legible, allowing users to absorb information with minimal effort.
The mental model
Think of typography not as choosing a font, but as engineering readability. It is a system of rules that controls the size, style, and spacing of letters (microtypography) and the arrangement of text blocks on the page (macrotypography). The objective is to guide the user's eye and reduce cognitive load, not to be decorative.
How it works
Effective typography rests on a few key rules. First, font size: use a comfortable reading size for body text, typically at least 16px. Smaller or larger sizes should be used sparingly for elements like captions or major headings. Second, text alignment: always default to left-aligned text. This provides the eye with a consistent starting point for each line, making scanning much easier. Third, measure (line length): keep lines of text between 45 and 90 characters. Lines that are too short break the reader's rhythm, while lines that are too long cause eye strain.
When to use it
Apply these principles to nearly all text within a user interface. This includes body paragraphs, headings, form labels, button text, and captions. A consistent application of these rules creates a strong visual hierarchy and a predictable, comfortable reading experience throughout your entire application.
When not to use it
While left-alignment is the standard, other alignments have niche purposes. Centered text can work for short, standalone headlines, but fails in paragraphs. Right-aligned text is typically only used for aligning numbers in a table. Justified text, though common in print, should be avoided on the web because browsers handle it poorly, creating distracting gaps or “rivers” of white space within the text.
One canonical example
The U.S. Web Design System (USWDS) uses these rules to ensure government websites are accessible and clear. It mandates a base font size of at least 16px for body copy, requires text to be set flush-left, and specifies a measure of 45-90 characters per line. This ensures that critical information is easy to read for the widest possible audience.
Interview question
Which combination of practices is most crucial for optimizing the readability of body text in a user interface?
- a.Centering text for visual balance and using a minimum font size of 14px.
- b.Left-aligning text and maintaining line lengths between 45 and 90 characters.Correct
- c.Right-aligning text for consistency and using a font size of at least 16px.
- d.Using justified text and ensuring lines are no longer than 60 characters.
Why? this is the answer
The card emphasizes left-alignment for a consistent starting point and line lengths between 45 and 90 characters to prevent eye strain. Justified text (Option D) is explicitly discouraged on the web due to poor browser rendering.
Just read this? Test yourself on what you have been reading.
Read the original → designsystem.digital.gov
- #ui
- #design
- #accessibility
- #readability
Put your scrolling time to good use
Learn one idea, try a quiz and save useful cards for revision. Tezvyn makes it easy to learn and stay current in your tech field, a few minutes at a time.
The iPhone app is on the way
We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.
Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.
We are hiring for this. Open roles that interview on ui — each one lists the topics its interview covers.
See open roles