Design2 min read

7 Secrets to Perfect Typography in Your Interface

Here’s what to keep in mind every time you sit down to work with text in an interface.

Text plays a key role in any interface. Sure, colors, images, and icons matter too. But in most interfaces, the bulk of the content is text.

Knowing how to work with typography is vital for a designer. What’s more, typography itself can serve as a decorative element.

In this article, I’ll walk you through what a designer needs to know to handle text well in their projects.

Typeface vs. Font: What’s the Difference?

First, let’s settle once and for all how a typeface differs from a font, using Inter as an example. A typeface is a family. Everyone knows Inter, and Inter is exactly that: a typeface. Inter Bold, on the other hand, is a specific font within that typeface. A bit pedantic? I get it.

The difference between a typeface and a font, shown with the Inter typeface

The Inter typeface and the Inter Bold font

Honestly, call your fonts and typefaces whatever you like. Calling the Inter typeface a font won’t kill anyone. That’s how I’m used to saying it myself. What matters is that everyone you work with understands what you mean.

In the end, what you call something isn’t that important. How you work with it matters far more.

What Is Text Readability?

Readability is the key indicator of whether anyone will want to read your text at all. It depends directly on the typeface and its settings: size, line spacing, contrast, and tracking. That’s why I recommend choosing fonts that are easy to take in and quick to scan. Your users shouldn’t spend hours guessing which letter is hiding behind those ornate serifs.

A good and a bad example of typeface use in a card design

An example of font use

To avoid needless complexity in your design, use just one typeface per project. And to build hierarchy, lean on different weights and styles, such as Regular, Bold, Italic, and so on.

Font Weight

Weight is one of the best tools for showing text hierarchy. There are plenty of options: Black, Bold, Semibold, Medium, Regular, Light, and so on. Take the famous Helvetica, which comes in all of these weights (we covered its history in a separate article). There are also variable fonts, which let you flexibly adjust properties, from the weight to the length of the serifs and other details.

Make it a rule: the more important the information, the bolder its weight should be. But of course, don’t forget about visual balance.

A good and a bad example of using font weights in a card design

Working with font weights

A very common mistake I see among beginner designers is using the Light weight. In many fonts, it’s too thin and gets lost on screen, especially at small sizes. You can use Light, but only when the text is large enough to stay readable. So my recommendation: don’t go below Regular when choosing a weight for your text.

Text Color

Another common mistake I often see designers make is insufficient contrast between text and background. Remember: if text is hard to see, nobody reads it. Just put yourself in the user’s shoes. Picture it: you land on a website, and it’s gray text on a gray background. Would you read it? Neither would I.

That’s exactly why it’s so important to watch the color of not just the text but the background too. But how much contrast is enough, and how do you check it? According to guidelines from WCAG (an international working group that develops accessibility standards, in case you were wondering), the contrast ratio between text and background should be at least 4.5:1.

An example of sufficient and insufficient text contrast in a card design

An example of working with text color

And you can check contrast without ever leaving Figma. The color picker has a built-in contrast checker. There you can choose strict checking against the 4.5:1 standard, or a slightly more lenient 3:1 for large or secondary text.

The color contrast checking feature in Figma

Checking contrast in Figma

You can also check text contrast with the Color Contrast Checker on our site. Just enter the background and text colors and you’ll get the contrast ratio right away. Fast, easy, and WCAG-compliant.

Line Height

Line height, aka line spacing, aka leading.

Call it whatever’s easiest—just understand that it means the distance between lines of text.

To set line spacing correctly, you need to find a balance: on the one hand, lines shouldn’t merge into an unreadable wall of text; on the other, you shouldn’t spread them so far apart that they look like several separate blocks.

From experience, I can tell you there’s no universal line height value—it’s chosen for the specific typeface and size. But a range of 120% to 160% works for most fonts.

A good and a bad example of line height in interface design

Optimal line height in UI design

Here’s another rule that helps when setting line spacing. The larger the font size, the smaller the line height should be. For example, if you use 150% line height for body text (say, set in Golos Text), then for H1 headings in the same typeface it makes sense to set 100–110%. That makes the heading tighter and more visually cohesive.

By the way, line height below 100% is trendy right now, and it really does look stylish and modern. But be careful: if that kind of tightness isn’t justified by anything, it’s better to choose readability and set a sensible line height.

The trend of reducing line height below 100% in a poster design

The trend of reducing line height below 100%.

Letter Spacing

It’s also called tracking. The same goes here as with line height. Aim for a balance so your letters neither drift apart nor get squeezed into an unreadable mush.

An example of correct and incorrect letter spacing in interface design

Optimal tracking for text

I recommend following the same rule as with line spacing: the larger the font size, the smaller the letter spacing should be (tracking).

For example, for regular text at 16–18 px, you can leave tracking at 0% (though this also depends on the specific font). But for headings at 96 px and up, it makes sense to use negative letter spacing—say, –2%. Why?

Because as font size increases, the space between letters visually grows too. So you need to tighten them up slightly, which makes the heading more cohesive and readable.

Alignment

There are four types of text alignment:

  • left,
  • center,
  • right,
  • justified (full width).

In interface design, it’s recommended to use only two options: left alignment and center alignment. If your interface is in a language read right to left (Hebrew or Arabic, for example), then right alignment is the logical choice.

As for center alignment, use it only for short pieces of text, such as headings, buttons, or labels of one or two lines.

In all other cases, left alignment will be the most readable and the best option.

Centered and left-aligned text in UI design

Correct text alignment in UI design

And what about justified alignment? Remember: you can’t use it in web interfaces. Why?

Because huge gaps appear between words, the text becomes uneven and ragged, and the interface itself looks visually weak and hard to read.

You can use this alignment in graphic work or “awards-style” interfaces, where the technique is justified by the style and doesn’t hurt readability or usability. But in products where structure, readability, and adapting to different screens matter, it’s better to do without it.

Building a Style Library

A system of type styles is a must-have for any project.

With it, you’ll have a clearly built text hierarchy where every element is in its place. No random, stray text slapped on here and there—and users will appreciate it, because an interface like that is easy, clear, and pleasant to interact with.

A text style library using the San Francisco typeface as an example

One way to lay out text styles

Styles also save you time as a designer. Without them, any change—to the heading font, for instance—turns into hell: you have to click through every text layer by hand. With styles, you make the edit once and it’s automatically applied across the whole project. Trust me, it saves a huge amount of time and stress.

And here’s a pro tip: organize your styles into a hierarchy and split them into groups. We covered how to do that in Lesson 17, “Styles: What They Are and How to Use Them,” in the free Figmaster course.

Please pay attention to typography in your projects. Sloppy work with text is exactly what can wreck even a good, strong design. Remember: almost any font needs tuning—you have to tweak it, fit it, and adapt it to your specific interface. Try putting all these tips into practice, and I guarantee your projects will get noticeably better.

Article updated

Subscribe to our regular digest

We'll send you useful articles and news from the world of AI, design, tech, and career growthdesign, and tech

Over 3,000 people already get our useful content