Fundamentals · Lesson 2/10

Typography

Choosing and setting type for interfaces, from font families and properties to building a type scale.

8 min read28 of 52

Typography in UX/UI design is the selection and arrangement of typefaces, sizes, spacing and other typographic elements in websites, apps and other digital products. It is crucial for a clear, compelling interface because it affects readability, hierarchy and the whole experience. Most interfaces are, above all, text.

Key considerations

Legibility and readability

Type must be easy to read at every size. Choose a font that suits the content, and make sure there is enough contrast with the background.

Accessibility

Type must be accessible to everyone, including people with visual impairments. Consider font size, color contrast and alternative text for images.

Visual hierarchy

Type creates a clear hierarchy, emphasizing important information with size, weight and color, so users can scan quickly.

Consistency

Using type consistently creates visual coherence and makes navigation easier. Every heading of the same level should look the same.

Responsiveness

Type must adapt to different screen sizes and devices and remain readable everywhere.

Branding

Type must match the brand and its personality. That doesn't mean using the logo's font in the product, but a font that fits the brand's style.

Font families

There are thousands of fonts, and they all fall into one of these families:

Serif
Design is how it works
Sans serif
Design is how it works
Display
Design is how it works
Handwriting
Design is how it works
Monospace
Design is how it works
Script
Design is how it works
Try it: font families
Type your own text. The same words feel formal, modern, loud, personal or technical depending on the family. (Fonts depend on what your device has installed.)
Example from my Figma file: Legibility and readability
Legibility and readability
Example from my Figma file: Accessibility
Accessibility
Example from my Figma file: Visual hierarchy
Visual hierarchy
Example from my Figma file: Responsiveness
Responsiveness
Example from my Figma file: Branding
Branding

Serif

Small strokes at the ends of each letter. Associated with traditional or formal designs, and common in books and newspapers.

Sans serif

No strokes at the ends, so they look cleaner and more modern. The standard for digital products.

Display

Decorative, with unusual shapes. For headlines, logos and large text that needs impact.

Handwriting

Imitate a pen or pencil on paper, imperfections included. For casual or personal designs.

Monospace

Every character has the same width. Common for code, and useful to align numbers.

Script

Imitate cursive handwriting or calligraphy. For invitations and elegant designs.

Symbol

Display symbols or icons, like arrows, emojis or currency signs, consistently.

Example from my Figma file: Serif
Serif
Example from my Figma file: Sans serif
Sans serif
Example from my Figma file: Display
Display
Example from my Figma file: Handwriting
Handwriting
Example from my Figma file: Monospace
Monospace
Example from my Figma file: Script
Script
Example from my Figma file: Symbol
Symbol

Type properties

Good typography is invisible. People don't notice it; they simply read more, understand faster and trust the product a little more.

Try it: type properties
Change one property at a time. Body text usually reads best at 16 to 18px with a line height around 1.4 to 1.6. Uppercase paragraphs are hard to read.

Weight

The thickness of the strokes: thin, light, regular, medium, bold and black, each usually with an italic version. Weight affects readability and impact. Bold emphasizes headings and keywords; light suits less important text. Combining weights creates hierarchy.

Size

The height of the characters, measured in points or pixels.

Style

The slant of the text: italic or oblique.

Color

Text color, taken from your palette, with enough contrast.

Letter spacing

The horizontal space between letters. Large uppercase text often needs a bit more; large headings often need a bit less.

Line spacing

The vertical space between lines, also called line height. Body text usually reads best at about 1.4 to 1.6 times the font size.

Paragraph spacing

The vertical space between paragraphs. It improves readability and helps organize content.

Alignment

Horizontal (left, center, right) and vertical, inside the line height or text box. Left alignment is best for long text.

Decoration

Underline, strikethrough or highlight. Reserve underlines for links.

Container size

A text box can grow with its text, or have a fixed size so the text adapts to it.

Case

UPPERCASE, lowercase, Title Case or SMALL CAPS. Use uppercase sparingly; it's harder to read in long text.

Effects

Shadows and other effects. Rarely needed, but useful in specific cases like text over images.

Example from my Figma file: Weight
Weight
Example from my Figma file: Weight
Weight
Example from my Figma file: Weight
Weight
Example from my Figma file: Size
Size
Example from my Figma file: Style
Style
Example from my Figma file: Color
Color
Example from my Figma file: Letter spacing
Letter spacing
Example from my Figma file: Line spacing
Line spacing
Example from my Figma file: Paragraph spacing
Paragraph spacing
Example from my Figma file: Alignment
Alignment
Example from my Figma file: Alignment
Alignment
Example from my Figma file: Decoration
Decoration
Example from my Figma file: Container size
Container size
Example from my Figma file: Case
Case
Example from my Figma file: Effects
Effects

Type scale

A type scale establishes a consistent hierarchy and structure for type across contexts and platforms. It usually includes headings (H1 to H6), body text and smaller sizes, each with a role in the hierarchy.

H1 is usually the main title of a page, H2 a subheading, and so on. This naming matters for developers and SEO, but as designers, each team can name its styles however works best.

H1 · 49Heading
H2 · 39Heading
H3 · 31Heading
H4 · 25Heading
H5 · 20Heading
Body · 16Body text for reading
Small · 13Body text for reading
Try it: type scale
Each step multiplies the previous one by the same ratio. Small ratios suit dense apps; large ratios suit editorial pages and landing pages. Sizes are rounded to whole pixels.
Example from my Figma file: Type scale
Example from my Figma file: Type scale

Choosing your font

Not every font is suitable for interfaces, so choose carefully.

How many fonts

I recommend only one font per project. You can add a second one for hero sections or special titles, and even a third, like a handwritten font, for special notes or banners. Those extra fonts should only appear in a few places. This is a recommendation to avoid overcomplicating a project. If you have a good reason to use more, rules are made to be broken.

Example from my Figma file: How many fonts
Example from my Figma file: How many fonts
Example from my Figma file: How many fonts

Weights

Choose a font with at least 3 to 5 weights. The most common are light, regular and bold, but it's good to have thin and black too. Otherwise you won't be able to create enough variation for hierarchy.

Example from my Figma file: Weights
Example from my Figma file: Weights

Family

For digital products, sans serif is the way to go. You might choose another family when the product is more artistic than business-oriented.

Example from my Figma file: Family
Example from my Figma file: Family

Where to get fonts

There are many sites to download and buy fonts, but if you want to play safe and get a free font that works perfectly, go to Google Fonts or Fontshare. Nobody will think less of your project for using a free font, and you avoid any risk with licenses and costs.

To install a font on Mac, double-click the file (.ttf or .otf) and click Install Font. On Windows, right-click the file and choose Install.

Example from my Figma file: Where to get fonts

Create your styles

After many projects, I found that a scale of 8 font sizes works best. Some projects need more or fewer, but eight is my standard.

I start from the body text size: 16px for mobile and 18px for desktop. Then I multiply by 1.25 to get each larger size. To make it easier, I use Typescale. Then I add all the styles to the design system, as you saw in the Design System lesson.

Example from my Figma file: Create your styles
Example from my Figma file: Create your styles

Resources

Quiz

Check what you learned

  1. Which font family is usually best for digital products?
  2. How many fonts do I recommend per project?
  3. What line height usually works well for body text?
  4. How do I create my type scale?

Exercise

Set up your typography

Choose a font and build a complete type system.

0/5 steps done