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.
By Bohuslav PoláčekChecked
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.cssdefinestabularasfont-variant-numeric: tabular-nums. The kit uses it for counts in saved views and tabs and for the count in the bulk bar. - By column kind. Every
DataTablecolumn says what it holds (meta: { kind }). The kind sets width, alignment and figures:date,datetime,period,money,numberandmeterare tabular,moneyandnumberalign right. - Guarded.
npm run check:columnsfails 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
tabularon IDs likeOBJ-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.
Sources
- MDN, font-variant-numericChecked
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.
Two ways
Build it yourself, or have it built
Build it yourself
Build your app on the framework
Get the codebase these apps stand on and build yours with Claude Code, Cursor or Codex.
One payment, lifetime updates
Get the frameworkHave it built
Have us build your app
Tell us how your team works. We plan the app with you and build it on the same framework at a fixed price.
After launch, Care keeps it improving, from €99 a month.
from €1,990
Describe your app