Skip to content
English
No focus14 / 71

Tabular numbers

What goes wrong

Ordinary digits have different widths, so a column of prices will not line up and a running timer jitters as it counts.

The fix

Turn on equal-width figures wherever numbers are compared or change, and right-align number columns.

Tell your AI

Add font-variant-numeric: tabular-nums to every price, table column, timer and counter in var(--ds-font-sans), and right-align number columns so the decimal places sit under each other.

  • --ds-font-sans
Why AI-generated UIs all look the same: 12 rules that fix it

Your basket

3 items
Free delivery ends in04:41
  • Trail shoes€141.10
  • Wool socks × 3€18.00
  • Steel bottle€21.50
  • Total€180.60