03 / 18

Principle 03

Every digit has its own outline

Numbers people act on, such as prices, codes, times and balances, use a face where 0, O, 1, l and 8 never blur together. Pixel, condensed or novelty faces are for words, not for figures that must be read without doubt.

In a real interface

✕ Avoid

  • Smoked$ 11.180
  • Citrus$ 8.400
  • Floral$ 1.090

✓ Do

  • Smoked$ 11.180
  • Citrus$ 8.400
  • Floral$ 1.090

01

Why

Numbers are what people compare and act on. Vercel's Web Interface Guidelines ask for 8 deployments rather than eight deployments, and for tabular numerals wherever figures are compared. If the eye stops on a number, its shape must be unambiguous.

02

How to apply it

Pick a text face with open, distinct figures and use lining figures in interfaces. When numbers sit in columns or change in place, turn on tabular figures with font-variant-numeric: tabular-nums, which MDN describes as figures that are all the same size so they align like a table.

Butterick recommends tabular figures for vertically aligned columns and proportional figures for running text. Where O and 0 can be confused, such as in codes, slashed-zero helps.

03

Edge cases

Counters and timers jump sideways without tabular figures. Large display numbers can be expressive, but the small price next to them cannot.

In tables, right-align figures so units line up, and keep the same number of decimals within a column.

✓ Do

  • Use tabular figures in tables, timers and totals
  • Prefer lining figures in UI
  • Disambiguate 0 and O in codes
  • Right-align columns of numbers

✕ Avoid

  • Set prices in a pixel or novelty face
  • Let a counter shift width as it changes
  • Use oldstyle figures in all caps
  • Write key figures as words

For agents · PRINCIPLE.md

## Every digit has its own outline

 

- Numbers that must be read without doubt use a face where 0/O, 1/l and 3/8 cannot be confused.

- Columns of figures use tabular numerals: `font-variant-numeric: tabular-nums`.

- Write numbers as numerals, not words, in interfaces.

- Pixel and novelty faces are for words, never for prices, codes or counts.

Enforced byBADESIGN tabular figures for compared numberskero-system records the numeric face and tabular figures