# Tabular numbers

Tabular numbers are digits that all have the same width, so a column of amounts or dates lines up digit under digit. In CSS they are `font-variant-numeric: tabular-nums`, the OpenType feature `tnum` of the font. Meadowstack's tables turn them on by the kind of column, never by hand.

Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/glossary/tabular-numbers/

*DataTable's column kinds: dates, periods, money, numbers and meters get tabular figures, and money and numbers align to the end.*

From `packages/kit/src/components/data-table.tsx` in the Meadowstack repository:

```ts
export const columnKinds: Record<ColumnKind, ColumnKindSpec> = {
  id: { width: "md:w-32", align: "start", tabular: false, cap: "md:max-w-32", floor: "@5xl/table:min-w-32" },
  title: { align: "start", tabular: false, floor: "@5xl/table:min-w-40" },
  text: { width: "md:w-44", align: "start", tabular: false, cap: "md:max-w-44", floor: "@5xl/table:min-w-44" },
  person: { width: "md:w-44", align: "start", tabular: false, cap: "md:max-w-44", floor: "@5xl/table:min-w-44" },
  status: { width: "md:w-44", align: "start", tabular: false, cap: "md:max-w-44", floor: "@5xl/table:min-w-44" },
  date: { width: "md:w-28", align: "start", tabular: true, cap: "md:max-w-28", floor: "@5xl/table:min-w-28" },
  datetime: { width: "md:w-36", align: "start", tabular: true, cap: "md:max-w-36", floor: "@5xl/table:min-w-36" },
  period: { width: "md:w-44", align: "start", tabular: true, cap: "md:max-w-44", floor: "@5xl/table:min-w-44" },
  money: { width: "md:w-32", align: "end", tabular: true, cap: "md:max-w-32", floor: "@5xl/table:min-w-32" },
  number: { width: "md:w-24", align: "end", tabular: true, cap: "md:max-w-24", floor: "@5xl/table:min-w-24" },
  meter: { width: "md:w-56", align: "start", tabular: true, cap: "md:max-w-56", floor: "@5xl/table:min-w-56" },
  actions: { width: "w-12", align: "end", tabular: false },
```

## Why it matters in a business app

Most fonts draw proportional digits by default: a 1 is narrower than an 8. In a sentence that reads better. In an invoice table at 13px it means 1,111.00 is narrower than 8,888.00, the decimal points zigzag down the column and the eye has to read every amount to compare them. With tabular figures the magnitude is visible from the shape of the column before anyone reads a digit.

The same goes for anything that changes in place: a counter in a bulk bar, a timer, a total that updates as rows are ticked. Equal widths keep the text around it from jumping.

## How Meadowstack handles it

- **A utility.** `tokens.css` defines `tabular` as `font-variant-numeric: tabular-nums`. The kit uses it for counts in [saved views](https://meadowstack.com/glossary/saved-views/) and tabs and for the count in the [bulk bar](https://meadowstack.com/glossary/bulk-actions/).
- **By column kind.** Every `DataTable` column says what it holds (`meta: { kind }`). The kind sets width, alignment and figures: `date`, `datetime`, `period`, `money`, `number` and `meter` are tabular, `money` and `number` align right.
- **Guarded.** `npm run check:columns` fails on a column without a kind, and the review audit checks that one kind has one width and alignment on a screen.
- **Never on IDs.** AGENTS.md: "Never `tabular` on IDs like `OBJ-2026-1019`." An order number is read, not compared, and its own letters and digits look better at their natural width.

## Common mistakes

- **Right-aligning without tabular figures.** The ends line up, the digits still do not.
- **Tabular on every number.** A year in a sentence or a reference number does not need it.
- **Hand-set widths per table.** The same amount column ends up 120px in one table and 140px in the next; a kind keeps them equal.

## Questions

### What is the difference between tabular and proportional figures?

Tabular figures all have the same width, for columns and changing values. Proportional figures have their natural widths, which reads better inside running text.

### Does tabular-nums work with every font?

It switches to the font's tabular figures, the OpenType feature tnum. A font without them has nothing to switch to, so check the typeface you use.

### Should dates be tabular?

In a column, yes: Meadowstack's date, datetime and period kinds are tabular so rows of dates compare at a glance. A date inside a sentence can stay proportional.

## Sources

- [MDN, font-variant-numeric](https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant-numeric), checked 2 December 2026

## Related

- [Truncation](https://meadowstack.com/glossary/truncation/) (Glossary)
- [Business app UI check](https://meadowstack.com/tools/ui-check/) (Tools)
- [Data tables in business apps: kinds, figures, headers, cut text](https://meadowstack.com/blog/data-tables-in-business-apps/) (Blog)
- [The business app UI standard, with the numbers behind each rule](https://meadowstack.com/blog/business-app-ui-standard/) (Blog)
- [A packaging quote that works out its price as you type](https://meadowstack.com/screens/quote-form/) (Screens)
- [A recipe with its cost and its allergens](https://meadowstack.com/screens/recipe-with-allergens/) (Screens)
