← Back to the screen

Design system portfolio

Freightpost — Ant Design — the record

The four direction lines behind this page, the generator command that produced its tokens, and the pairs it was measured against.

Cross-border freight: 140 open consignments, their customs status, and the ones that have stopped.

Direction

LeverDecision
ArchetypeShell. Ant Layout.Sider at 208px, collapsing to a 64px icon rail under 992px; one scroll region for the table.
Data stanceTable-first at maximum density. Fourteen columns, the checkbox and the reference frozen, the horizontal scroll held inside the table. Filters live in the column headers.
DensityAnt small: 8px cell padding on 14px text, 43px rows measured, 24px header controls, 32px page controls.
The bold thingAn exception is a sentence, not a colour. The row keeps its own background and gains a second line naming what stopped it. That sentence is sticky: past the frozen columns on a desktop, and at the left edge of the scroll box below 992px, where it wraps to as many lines as it needs.

Generator

ant_palette.py "#0B5FFF"                 # tokens.css (committed, never edited)
ant_palette.py "#0B5FFF" --contrast      # the audit, below
ant_palette.py "#0B5FFF" --dark          # the ramp under the dark algorithm
ant_palette.py --map                     # neutrals, status, dimensions, motion
ant_palette.py --map --dark
ant_palette.py --presets                 # the gray ramp, which is special-cased

tokens.css holds the seeded ramp alone. tokens.support.css holds everything else and is generated the same way: a script reads the four commands above and emits it, so nobody typed a value into either file.

The contrast audit, and what it changed

step  hex         on white  on black   use
5     #3381ff        3.67:1     5.72:1   hover state of the primary
6     #0b5fff        5.13:1     4.10:1   THE primary — colorPrimary
7     #0045d9        7.36:1     2.85:1   active / pressed
Step 8 (text) on white: 9.88:1 passes 4.5:1
White on step 6 (primary button): 5.13:1 passes 4.5:1

Deviations from CONTRACT.md