How many font weights should one app use?
We searched our own Flutter app for FontWeight this week. Leave out the
screenshot templates and 45 files still ask for six different weights, from 400 to 900.
Semibold appears 124 times and Bold 111 times. Regular, the weight people actually read,
appears 35 times. Nobody decided on that mix. It built up one widget at a time. Here is
what Apple and Google use, why fewer weights read more clearly, and how to audit yours.
What Apple and Google actually use
Apple’s Human Interface Guidelines list eleven iOS text styles. At the default text size, ten of them are Regular. Only Headline is Semibold. Each style also has an emphasized variant: Bold for Large Title, Title 1 and Title 2, and Semibold for the rest. That makes three weights for the whole system, and two of them exist mainly for emphasis.
Material 3 is stricter. Its fifteen type-scale styles, as generated into Flutter’s
Typography class, use two weights. Display, headline, body and the large
title are 400. The medium and small titles and every label style are 500. The 2018
Material scale used a Light 300 for its two biggest display sizes. Material 3 dropped it.
Both systems also set their largest titles in Regular. At the top of the scale, size already says “this is important”. Weight earns its place at small sizes, where a label can’t grow without breaking the layout, so a step up in weight is the only way left to stand out.
Each weight you add weakens the others
Weight tells the reader what matters more. That only works if the difference is easy to see. At 13pt on a phone, 500 and 600 look almost the same. Use both and the reader doesn’t get two levels of importance. They get two things that are almost the same but not quite, which looks like a mistake.
A rule of thumb we use, not a standard: keep the weights you pair at least 200 apart. 400 with 600, or 400 with 700. Then every step is visible at a glance, even on a dim screen in sunlight.
The heavy end has its own problem. At body size, the holes in letters like “e” and “a” start to fill in at 800 and 900. This gets worse in light text on a dark background, which we covered in setting white type on dark. And when Semibold means “section title” on one screen and Bold means the same thing on the next, users can’t learn what either weight means.
Weights you ask for but never shipped
Asking for a weight in code doesn’t mean you get it on screen. What actually renders depends on the font files you ship, and the rules differ by platform.
Flutter. Each font file is declared in pubspec.yaml with the weight its
outlines really are. The docs say plainly that the declaration can’t change the font:
ask a family whose heaviest file is Bold for w900 and it “would still
render as however bold” that file looks. If no bold file is declared at all,
“Flutter attempts to make the regular font look bold”, and the docs add:
“Avoid relying on this capability. Import the proper font file instead.” So if your
heaviest declared file is 700, every w800 in your code renders exactly like
w700. The code then
claims a difference nobody can see.
The web. The CSS Fonts specification has an exact fallback order, and one case
catches people. For a weight above 500, the browser tries heavier weights first, so
600 with only 400 and 700 loaded renders as 700. For a weight between 400
and 500, it tries heavier weights only up to 500, then lighter ones. So
font-weight: 500 with only 400 and 700 loaded renders as Regular. Your
“medium” buttons simply look like body text. If a family has no bold face at
all, browsers can fake one, and the result looks smeared.
Variable fonts remove both problems, because a single file renders any value between its limits as a real, distinct weight. That is why all six of our weights render exactly as written: the app UI uses Inter’s variable file. It also removes the last technical limit. When every weight is free, only your own rules keep the count down.
What the files cost
We measured the fonts bundled in our repo. Our six static Poppins files run from 153 KB to 160 KB each, 940,476 bytes together. Inter’s variable file is 876,576 bytes on its own. Two static weights of Poppins come to about 318 KB.
Families differ in how many characters and scripts they cover, so treat those numbers as one example, not a rule. The pattern is worth checking on your own files, though. If your system needs two or three weights, static files are often the smaller download. A variable file pays for itself when you really do use many weights, or values between the named ones. Ask before you bundle it, not after.
A system that fits on an index card
This is what we would set up in a new app today. It is close to what both platforms already do:
- Regular (400) for anything people read: body text, captions, list rows, descriptions.
- One emphasis weight for labels, buttons, section headings and the headline style. Semibold 600 if your app feels like iOS, Medium 500 if it follows Material. Pick one.
- Optionally, Bold (700) for titles only, at sizes where it can’t clog. Apple only uses Bold for its three largest styles, which run from 22pt to 34pt by default.
Then make the weights hard to reach for directly. Name your text styles by role
(body, label, title), not by weight, and keep
every weight inside the theme file. In Flutter that means a TextTheme, with
widgets reading Theme.of(context).textTheme. In SwiftUI it means the built-in
text styles plus .bold() where you need emphasis. On the web it means CSS
variables. When a screen seems to need a new weight, it usually needs a different size
or color instead.
Audit yours in ten minutes
Count first, then decide. From your source folder:
- Flutter:
grep -rhoE "FontWeight\.(w[0-9]00|bold|normal)" lib | sort | uniq -c - SwiftUI:
grep -rhoE "\.fontWeight\(\.[a-z]+\)|\.bold\(\)" . | sort | uniq -c - CSS:
grep -rhoE "font-weight: *[0-9a-z]+" src | sort | uniq -c
Next to each count, write the role it plays: body, label, title. A weight with no clear
role, or one that only turns up a handful of times, is probably an accident. Ours are
easy to spot. w900 appears four times in our interface code and
w800 thirty times, and none of them is a role the platforms needed a weight
for. Map each one to Regular, your emphasis weight or your title weight, render the
screen again and compare. Most of the time the screen looks calmer and nothing gets
harder to find.
We haven’t finished ours yet. The counts at the top of this post are now our cleanup list.