One component language for four viewing geometries. Cards, status labels and controls behave the same way everywhere; type, density and icon scale adapt to the distance the eye actually reads at. Sans throughout, tabular figures for every reading, mono only for identifiers, colour plus a word for state.
System fonts onlyNo webfontsWorks offline
01 · Families
Three roles, zero downloads
Display
Arrizo 8
SF Pro Display → -apple-system → Inter → system-ui
Headlines and the largest numerals, 22px and above. Optical sizes stay crisp on the 1920 canvas and on high-density laptops.
Text
Lock, climate and charge port
SF Pro Text → -apple-system → Segoe UI → sans-serif
Body copy, card titles and buttons. Used below 22px where tighter spacing and sturdier stems suit small sizes.
Mono · identifiers only
GD · AR8 42423.1.2
SFMono-Regular → ui-monospace → Menlo → monospace
Plate, VIN and build/software strings: characters that must line up and be told apart, where a slashed zero is an asset. Never a reading, a unit, a time or a sentence. The resolved face varies by machine — SF Mono draws a plain zero, Menlo a slashed one — which is harmless here because an identifier is read character by character, not scanned as a quantity.
Why no webfont: the dashboard runs from a local folder with no network access. A webfont would add a download, a flash of fallback type and an external request. The system stack already ships optical sizes for display and text, and every target platform (macOS, Windows, iOS, Android, head-unit) renders it without a payload.
02 · Type scale
One scale, four resolutions
Role
Desktop 1440
In-car 1920
Mobile 390
Weight
Line height
Tracking
Where used
Display
22 px
—
28.0 px · 9.2 cqw
350 / 250
1.15 / 1.05
0.01 / −0.01 em
Destination and page headings — at most one per surface; never a card reading
Metric hero
46 px
—
—
200
0.92
−0.03 em
Live speed; once per product, never repeated inside a card
Primary value
30 px
25.8 px · 2.4 cqw
30.3 px · 10 cqw
300
0.9–1
−0.02 / 0.01 em
The one number a card leads with: remaining range, next charge time; once per card
Value
18 px
19.9 px · 1.85 cqw
14.9 px · 4.9 cqw
500 · tabular sans
1
0–0.01 em
Every reading: tyre pressure, distance, spec rows, history rows, climate, service values
Body
10.5 px
10.2 px · 0.95 cqw
9.1 px · 3.0 cqw
400–500
1.4–1.55
0.01 em
Sentences, notes, plan lines, energy readings, meta text
Label
9.5 px
9.1 px · 0.85 cqw
7.9 px · 2.6 cqw
600
1–1.2
0.02 em · never ≥ 0.09 em
Eyebrows, status labels, row keys, tyre positions
Unit
0.6 × value
0.6 × value
0.6 × value
500 · tabular sans
1
0.02 em
Every unit token follows its reading at 60 %: km, bar, kWh, %, °C, min
Sizes are resolved at the reference canvas: 1440 × 900 desktop, 1920 × 1080 in-car, 390 × 844 mobile. Desktop is pixel-based; in-car and mobile are container-unit based, so a cqw figure resolves against the screen container and holds its ratio at any render size. The battery band is its own container: 171.7 px in-car at the reference render, 241.9 px on the mobile card. A unit is never its own role: it is 60 % of the reading it follows. A standalone reading is sans 500 with font-variant-numeric: tabular-nums; the card's single primary is display sans and may be a timestamp (next charge) at 30 px. There is no second opinion: if a size is not on this list, it does not ship.
Card type ladder
Rule · four steps, and no off-ladder size
Label · 9.5 pxDoors and windows
Body · 10.5 px14.9 kWh/100 km
Value · 18 px2.4 bar
Primary · 30 px412 km
Four roles, one size each per surface: a label names a thing, body is any sentence, note or plan line, value is a reading, and primary is the one number a card leads with.
No off-ladder size: a card may not introduce its own px or cqw value. If a card seems to need a fifth size, the card is wrong, not the ladder.
Before → after, resolved: the energy line 9.5 → 10.5 px desktop, 8.97 → 9.12 mobile, 9.14 → 10.22 in-car. “Planned stop” 10.5 → 10.5, 8.21 → 9.12, 9.14 → 10.22 — a plan line is body on every surface, so it now matches the energy line instead of outranking it. “Doors and windows” 13 → 9.5 desktop, 7.91 → 7.91 mobile, not present in-car.
One reading treatment: every reading — spec tile, tyre cell, history row, service row — uses value step, sans 500 with tabular figures, unit at 0.6 × value. A list or history column may not invent a fifth size. If a card needs emphasis it may spend its one primary on a single lead number; the others stay value.
One-line check after dropping “avg”: at 10.5 px the line is 73.9 of 106.8 desktop, 66.5 of 95.8 at mobile 390, 52.0 of 74.4 at mobile 320 and 49.9 of 115.8 in-car 1280. It holds one line on every surface; the copy shortened rather than the type shrinking.
Rejected · per-card sizes
Before this round the same role had three sizes inside three cards: 9.5 px for the energy note, 10.5 px for the plan line, 13 px for a row key.
A card is a component, not a typographic island. It inherits the ladder and may only choose a step, never a size.
The ladder lives in components.css as --card-label, --card-body, --card-value and --card-primary; every surface binds its card selectors to those four tokens.
HUD. The HUD is a projected band rather than a card, so it is not bound to the card ladder and is sized entirely in cqw: speed 7.2, distance 2.9, limit 2.4, road name 0.92, notes 0.72–0.8. In the 922 px cockpit band that resolves to 66 / 27 / 22 / 8.5 / 6.6 px; on the 2560 px standalone HUD, 184 / 74 / 61 / 23.5 / 18.4 px. It is not cap-exempt: road names, the “Then …” line and assistance states are sentence case, and units keep their symbol case (km).
Value vs label
Rule · a value is never smaller than its label
Volume45
Battery68 %
Hard rule: a value's computed font-size must be ≥ the font-size of the label that names it (ratio ≥ 1.00). A reading may grow past its label; it may never shrink below it. The in-car “Volume 45” was 7.1 px under a 9.1 px label and is now 10.9 px.
Design target: value ≥ label × 1.2 for a stacked readout (label on its own line above the value). Inline baseline rows such as “Ready by 22:35” may sit at parity, because weight and ink separate the two.
One reading, one treatment: every reading uses the value step at sans 500 with tabular figures and the unit at 0.6 × value. The spec tile 705, the tyre cell 2.4 and the history column 24.6 were three treatments (sans 300, mono 300, mono 500 with a full-size unit); they are now one: 14.9 px sans 500, tabular, with an 8.9 px unit. Only a card's single lead number may take the primary step; a list or history column may never invent a fifth size.
Check:tools/check-types.py measures every visible label/value pair on all five pages and fails below 1.00, so the rule cannot regress.
One largest type per surface
Rule · no value outranks its surface
In-car route distance120 m · 25.8 px
In-car remaining range412 km · 25.6 px
Hard rule: a single value may never be larger than the largest type elsewhere on the same surface, unless the element is a designated metric display. A value leads its card; it does not lead the screen.
Designated metric displays are exactly two: the desktop Live driving status card (46 px speed, one per product) and the HUD, which is a projected band rather than a card. The in-car centre display is not a designated metric display. Its surface maximum is the route distance at 25.8 px, so the remaining range sits at 25.6 px.
In-car destination: “Canton Tower” is a card heading, not the card's lead number. The in-car scale has no Display step, so it takes the step below Primary — the Value step, 19.9 px at 1920 — and the route distance keeps the surface maximum instead of tying it.
What changed: the in-car range was 18.5 cqw of the 162 px band — 31.8 px at 1920 and 21.4 px at 1280 — and outranked every other word on the centre display. It now sits at 13.7 cqw of the widened 187.0 px band: 25.59 px at 1920 and 17.25 px at 1280, just under the 25.82 / 17.28 px route distance, which holds the surface maximum. The band's ratios were divided by 1.089 when the side cards widened, so the ring, gap, padding and labels keep their rendered pixel size.
Check: compare the computed font-size of every visible text node in a surface's content region. Map artwork is excluded because it scales with the map, not the type system.
A card may own its internal hierarchy. It may not own the screen's: a number that is larger than its surface's designated maximum reads as the single thing to look at, which is a product claim the card did not earn.
The fix is always to reduce the value, never to enlarge the surrounding type to keep the ratio, and never to shrink the label under it.
Spacing rhythm
Surface
Base step
Card padding
Between cards
Label → value
Head → content
Desktop
4 px
16 px · 14 px at ≤ 820 px height
16 px · 8 px compact
4 px
8 px
In-car
10 px floor
max(12 px, 1.2 cqw)
max(10 px, 1.1 cqw)
0.9 em
max(10 px, 0.9 cqw)
Mobile
10 px floor
17.2 px native · 13.4 px in the 304 px frame
max(10 px, 3 cqw)
0.9 em
10 px floor
Spacing rules
Five steps only: 4 / 8 / 12 / 16 / 24. 4 is label-to-value, 8 is a stacked row or head-to-content, 12 is a group inside a card, 16 is card padding and the gap between cards, 24 is a section.
The 6 px icon-to-text gap is the one exception; it is optical, not rhythmic, and never used between text lines.
Nothing sits at 14 px on desktop any more: the compact density at ≤ 820 px height moves a whole step (padding 16 → 14, column gap 16 → 8) instead of inventing an in-between value.
In the battery band the gaps are em-based (0.32 em above the range label, 0.55 em above the limit line, 0.7 em inside it), so the spacing follows the type size instead of the container width.
Optical checks
A unit never floats: it shares the numeral's baseline, gap ≤ 0.2 em, and is 50–60 % of the value.
Every inline label + value + unit row uses align-items: baseline, on all five surfaces’ production readings. Measured baseline spread is ≤ 0.5 px; the in-car “Outside 24 °C”, the HUD speed unit and the system rows each moved from 1.4–12.4 px to 0. The one exception is the inset specimen below, which is a vertical-centring demo and stays centred.
An inline icon has two legal modes, and the row says which one it uses. Centred — align-self: center plus an optical lift; for marks and badges that read as their own object (the 6 px status dot inside Charge limit, the HUD driver-assist glyph); its centre lands within 0.5 px of the text’s box centre. Baseline-sitting — align-self: baseline; for unit-like row glyphs that should rest on the words’ baseline. Measure this on ink, not on the SVG box: the thermometer’s path ends 4.25 viewBox units above the box floor, so a box-aligned icon floats 2.3 px even though the box touches the baseline. Its drawn bottom — path bbox plus half the 1.2-unit stroke — is offset 0.223 cqw to meet the O’s ink bottom, which itself sits 0.11 px below the baseline because round letters overshoot; that measures 0.00 px at 1920, 1280 and 1280×720. The box is 1.4 cqw ≈ 15.1 px against the 19.9 px temperature, with the stroke scaling through the viewBox (0.86 → 0.75 px). Either way the icon is sized from the value it annotates and the row keeps one text baseline — the in-car top-right row still measures spread 0.00 across Outside, 24, °C, Online, 18:42 and Fri · 6 Nov, with clock and date on one line.
A limit line sits at least 8 px under the value it qualifies; the in-car marker, “Charge limit” and 80 % are now 5.9 px apart instead of the 1 px the container-unit gap collapsed to.
Rows that stack share one left edge and one right edge; values keep tabular-nums so the right edge does not jitter.
Card padding is equal on all four sides except the battery footer, which uses 8 / 8 above its hairline.
Breathing space
Rule
Token
Floor (never reduced)
Proportional target
Where it applies
D · display edge
--bs-display
16 px
4 % of the display's height
HUD glass, phone canvas, centre-display composite
P · panel inset
--bs-panel
12 px
2.5 % of the panel's short side
Every card, panel and instrument cluster
G · stack gap
--bs-gap
10 px
1.6 % of the container's height
Between sibling cards and distinct stacked blocks
M · micro gap
--caption-gap
—
0.9 em
Label → value only; never used between blocks
Balance
—
±2 % of height
top vs bottom clearance
Display-level blocks are centred, not pinned to an edge
Priority order: readability and breathing-space floors first, then the owner's content. Page length is not a constraint: when content needs more room the page grows and scrolls vertically. Horizontal scrolling is forbidden, and padding, gaps, type, maps and card grids are never compressed to avoid page scroll.
Measured, not eyeballed: every panel is checked on all four sides against the floors; a value below the floor fails the round. The display block must be centred within ±2 % of its height.
Vertical scroll is normal; horizontal is forbidden: every surface may be taller than its viewport and scroll vertically; none may scroll sideways. Avoid page scroll by letting the page grow — never by compressing design, shrinking an illustration, reflowing cards into a different grid, or hiding an element.
Never remove a requested element: a surface, band, card or dock item the owner asked for is never dropped — not even to win height. Reflowing, scaling and reordering a composition is allowed; removing an element is a product decision and needs explicit owner confirmation before implementation. If the composition cannot hold everything, surface the trade-off first, never after the fact.
Correct · content inset, optically centred
62km/h120 m
16 px inset above, below and both sides (4 % of a 400 px display). Measured to the ink: 18 px top, 19 px bottom, 16 px left and right — the block is centred, not pinned, and top and bottom differ by 1 px.
Rejected · edge-to-edge
62km/h120 m
The reported HUD failure: padding was the only slack left, so the block grew until it touched the glass. If this appears, cut a row (the THEN line went) — never reduce the inset.
Readings rule · sans with tabular figures
Every reading · sans, tabular-nums
68%412km2.4bar18:4224.6kWh
Values, units, clock times and energy figures all use the text sans with font-variant-numeric: tabular-nums: 68 %, 412 km, 2.4 bar, 22.5 °C, 18:42, 24.6 kWh.
Tabular figures give every digit the same advance width, so a changing number keeps its column: 61 → 62 → 63 does not shift the unit beside it. This is the reason mono was used; the feature does the job without the face.
Sans draws a plain zero. One face for all readings means 705, 2.4 and 24.6 share the same zero, instead of mixing slashed and plain in one card.
Units keep their 0.6 × value size, the unit ink and one space before them. Only the face changed.
Mono · identifiers only
GD · AR8 42423.1.2
Reserved for plate, VIN and build/software strings — characters that must line up and be told apart, where the slashed zero is an asset (0 vs O).
Never a reading: mono on 68 %, 412 km, 18:42 or 2.4 bar is the defect this rule removes.
Never sentences, notes, status labels, headings or eyebrows.
A mixed string stays sans except the identifier itself: “Software 3.1.2” sets 3.1.2 in mono inside its own element.
03 · Specimens
Real copy, real sizes
Display
Canton Tower
Desktop destination · 22 px / 350Primary value
412 km
Desktop range · 30 px / 300 · unit 10 pxCard value
2.4 bar
Desktop tyre value · 18 px / 400 · unit 9 pxBody
You're on the move — Canton Tower in 12.4 km, arriving 18:56.
Desktop body · 10.5 px / 400Body · note
Next charge 21:00, 7.4 kW, ready 22:35
Desktop note · 10.5 px sans, values tabularLabel
Next charge
Desktop label · 9.5 px / 600 · 0.02 emNav label
DESKTOP
Nav system · 10 px sans / uppercaseRoute title
Canton Tower
In-car destination · 19.9 px / 600 · value step (no in-car display role)Key value
12.4 km
In-car stat · 35.5 px / 500 · tabularCard title
Jimmy
In-car driver name · 20.2 px / 600Label / note
Battery on arrival 66 %, 12.4 km remaining
In-car label · 16.3 px / 500Status
All OK
In-car status · 13.8 px / 600 · sentence casePage title
Arrizo 8 EV
Mobile page title · 36 px / 250Card label
Battery
Mobile label · 11.3 px / 600Body / value
12.4 km remaining, arriving 18:56
Mobile body · 14 pxSpec value
705 km
Mobile spec · 26.5 px / 400 · unit 12.5 pxHUD value
42
HUD speed · 7.2 cqw ≈ 66 px / 200HUD label
Huanshi East Rd
HUD road name · 0.92 cqw ≈ 8.5 px sans / 600
04 · Case rules
When to use uppercase
Allowed · two cases, and only two
The main menu: the cross-surface switch DESKTOP, IN-CAR, MOBILE. It is the product's primary navigation and the only app-level chrome that may shout.
The centre display's primary navigation: MAPS, MEDIA, CONTROLS, VEHICLE, SETTINGS. Glanceable while driving; the same shortest-recognition argument.
Not casing: unit symbols keep their symbol case (kW, kWh, km, V), and established acronyms keep their spelling (EV, OK). These are not styled uppercase words; they are the correct written form.
Everything else is sentence case, including status words, position labels, HUD driving labels, eyebrows and card labels. A label is a label because of its size and weight, not because it shouts.
Rejected · status, positions and HUD
DRIVING→Driving
FRONT L→Front left
REAR R→Rear right
PLAYING→Playing
HUANSHI EAST RD→Huanshi East Rd
THEN 12.3 KM→Then 12.3 km
CABIN / OUTSIDE→Cabin / Outside
ON THE MOVE→Driving
Sentence case reads faster because the word shape carries the meaning; uppercase removes that shape. Position labels are written out — “Front left”, never “Front L” — because the abbreviation saves two characters and costs a glance. The HUD is a peripheral surface, but it still uses sentence case: size and tracking carry its glance hierarchy, not caps.
05 · Unified surface language
One product, three densities
Desktop, in-car and mobile now share one component vocabulary: the same card recipe, the same status grammar, the same way of expressing state, and one icon family measured to a single optical box. Only the scale changes between surfaces.
Cards
Cabin climateAuto
Driver22.5 °C
Outside24 °C
One recipe: --hair 1px edge, --glass gradient, 1px top sheen, 14px desktop radius, 16px padding (14 px at ≤ 820 px height; 0.9 / 1.1 cqw in-car; 3.8 cqw mobile).
Slots never move: eyebrow → primary value → supporting rows. No card invents its own order.
The number is the hero; supporting figures stay one step quieter and share the baseline.
One subject, one card: the battery level and the charge plan are separate cards on all three surfaces, so neither has to borrow the other's facts to fill its content box. Each stays at content height — no stretched padding, no shrunken footer.
Status labels
ScheduledAutoOnline
SecuredUp to dateNo faultsOKAll OK
Two shapes, one grammar. A mode, a schedule or a connectivity word is a bare label in label ink — Scheduled, Auto, Online — with no border, fill, radius or padding. Any word that is a status conclusion takes the chip, whether it sits in a card header or inside a labelled row: All OK, No faults, OK, Secured, Up to date, Charge complete. Readings that happen to be words (Doors → Locked, Windows → Closed, Software → 3.1.2) are values, not statuses: they keep value ink and stay bare. The chip is a 999 px pill with a hairline ring, a faint fill, the same label size and ink, so it adds scannability without becoming a control.
The chip is never a control. No hover state, no pointer cursor, no focus ring, no press. Its ring is a hairline (1 px at 24 % blue for a neutral verdict, 34 % green for a whole-system OK) and its fill is 7 % blue or 10 % green — one step quieter than a real button, which uses 46 % line and a filled control plate.
Position decides the ink, not the word type. A status tag in a card header is label ink. The reading slot of a labelled pair is value ink even when the reading is a word: Doors → Locked, Windows → Closed, Alarm → On, Sentry guard → On, Software → 3.1.2. A state word standing alone with no label (the HUD’s “Driver assist on”) stays label ink. The colour audit classifies by slot, so a word value cannot regress to grey. The chip changes the shape, never the ink — an OK chip inside a row is still the same green label ink.
Whole-system healthy is the one colour exception: green --tag-ok-ink on the status chip.
Per-surface scale, identical ratios. Desktop 9.5 px text, 2 × 7 px pad; Mobile 2.9 cqw text, 1.1 × 2.4 cqw pad; In-car 0.85 cqw text, 0.24 × 0.72 cqw pad and a matching -0.38 cqw block margin so the chip's layout box stays on the label line and height-constrained in-car cards keep their bottom inset (the pill still draws at full height). All three use a 1 px hairline and 999 px radius, so the chip reads as the same object at each reading distance.
Battery card
Battery
68%
Remaining range
412km
Charge limit80%
1.8kWh to destination
14.9kWh/100km
Structure: eyebrow “Battery” → the ring as the left anchor → the readout column 24 px after it (remaining range as the primary, then the charge limit as its third line) → one footnote row of the two energy readings. No status label and no charge facts. The same order on all three surfaces: desktop .battery-card, the in-car energy card, and the mobile battery card.
Values: ring 66 px desktop / 65.6 px in-car (35.1 cqw of the 187.0 px band) / 53.2 px mobile; range 30 / 25.6 / 30.4 px. Ring weight, cyan fill, limit marker and colour meaning are identical everywhere, so the battery reads the same on every surface.
Band and footnote row: the ring anchors the band's left edge and the readout follows at a fixed 24 px on every width — measured at 1440, 1280, 1180 and the ≤ 1000 px one-column layout the ring-to-readout gap is 24 px, so the pair never changes rhythm and never tears to opposite edges. The space right of the reading is accepted card breathing room, not a second alignment anchor: measured right inset 105.2 px at 1440/1280 (283 px band, 317 px card), 60.2 px at 1180 (238 px band, 272 px card), and 739.2 px in the full-width 1000 layout (917 px band). “Charge limit 80 %” is one meta-size line under 412, on the same left edge; below the band the two notes form one row that reaches both card edges — 1.8 on the content's left edge, 14.9 on its right edge, the same label-left / value-right spread the other right-rail cards use. Measured from the card's content top: desktop — ring +17.5, label +17.6, 412 +40.0, limit +71.0, notes +95.5; mobile 390 — +19.3 / +16.1 / +35.3 / +65.4 / +83.0. Card heights: 144.2 px desktop, 127.1 px mobile, 147.6 px in-car. Earlier shapes were rejected: the readout pinned to the band's right edge (a 129.2 px ring-to-reading gap that read as two islands), the limit two-lining under the ring (a cramped ring-width column, 176.9 px desktop) and the notes stacked inside the right column (150.2 px, card's right edge ran empty).
In-car note order: the height-bound in-car card stacks the two notes under the band where desktop and mobile run them as one footnote row; the reading order is identical on all three: 412 → charge limit → 1.8 → 14.9.
In-car card width: the side tracks are 21% instead of 19.5%, and every battery-band ratio is divided by 1.089 so the ring, range and labels keep their rendered pixel size. The readout column grows from 98.2 to 113.5 px at 1920 and from 66.3 to 76.6 px at 1280 — 28 % headroom, so “Charge limit” stays on one line. The HUD band, the centre display's outer width and the HUD-to-centre ratio are unchanged.
Range cap: the range is the largest number in the card but never the largest type on its surface — 30 px desktop, 25.6 px in-car (under the 25.8 px route distance), 30.4 px mobile. See “One largest type per surface”.
Ring centring: the grid was centring the numeral's line box, but that box was sized by the ambient 16 px strut while the digits were 38 cqw, and lining figures have no descender — so the ink drifted with the ring, by up to 1.6 px either way. The value now sets its own font-size and line-height: 1 strut, and where supported the pair is trimmed to cap height and alphabetic baseline with text-box-trim (a 6 % nudge on older engines). Measured ink offsets: −0.30 / +1.35 / +1.60 / −0.15 / +0.60 px became 0.00 / −0.45 / −0.50 / −0.15 / −0.40 px across in-car 1920 / 1440 / 1280, desktop 1440 and mobile 390. The ring is not a box to centre; the digits' ink is.
Arc: the 68 % arc is an explicit dash in user units (188 / 88 on a 276-unit circumference), never pathLength normalisation or an SVG filter, so it paints in every renderer. The 80 % limit stays a separate dot outside the fill.
Next charge card
Next chargeScheduled
21:00
Planned stop · 7.4kWReady by 22:35
Structure: eyebrow “Next charge” with the “Scheduled” status → clock time as the primary value → one supporting row: “Planned stop · 7.4 kW” on the content's left edge, “Ready by 22:35” on its right edge. The same card on all three surfaces: desktop .next-card, the in-car charge card, and mobile .m-next-card. Measured card height 102.7 px desktop (118.8 px before the two lines were merged), 172 px in-car (1920), 84.8 px mobile.
Content is fixed and verbatim: 21:00, “Planned stop · 7.4 kW”, “Ready by 22:35”; the in-car card also carries “Duration 1 h 35 min”. Splitting the old combined card moved these lines into their own card on desktop and mobile — it did not rewrite or drop a word. Merging “Ready by” onto the plan row removes one text line (14.2 px) plus its 2 px stack gap: the card is 16.2 px shorter, while the clock time keeps its own left edge and every other row keeps its position.
Values: time 15 px tabular sans desktop, 24.7 px in-car (2.3 cqw of the route column), 11 px mobile (4.6 cqw); the clock time is a value and keeps value ink.
Status: “Scheduled” is a muted label, never cyan, and it belongs to this card. The battery card has no status: a charge plan is a state of the charging session, not of the battery level.
Why separate: the two cards answer different questions — how much energy is left, and when the next charge happens. Combined, the plan sat in a third column beside the ring and did not change the battery card's height; it only made one card carry two subjects. Split, each card is content height on its own — 144.2 + 102.7 px desktop, 127.1 + 84.8 px mobile — and the three surfaces share one structure.
Status vs control
PlayingAll OK
A status is a label; a control is a <button>. Only the button gets pointer cursor, hover, focus ring and a control shape.
If it wears a pill outline or a fill, it must do something. Nothing decorative wears a control shape.
Test: strip the colour and the border. A state word is a status; a verb or a destination is a control.
Status colour never replaces the word: muted for every neutral state, green for the one whole-system OK. No dot, halo or pulsing motion.
Icons
24-unit grid; each glyph is drawn in a 16-unit box, then given its own optical scale (0.86–1.12) and centred on (12, 12) — perceived mass, not the bounding box, is matched across the set.
One outline weight at render (~1.50 units), round caps and joins, currentColor only.
Thin glyphs get heavier strokes (media 1.53 at 1.06, vehicle 1.43 at 1.12) so the five dock icons read as one set at native 1920.
No filled glyphs inside an outline set and no decorative glow; only the active dock item shifts colour.
06 · Colour
One text-colour system for four surfaces and the HUD
Colour is assigned by role, never by importance. A number, its unit, its label and its prose each have one token; cyan is a role token for live chrome, not an accent. The five tokens below are declared once per surface (styles.css for desktop, experience/base.css for in-car, mobile and HUD) and resolve to that surface's existing ink, ink-dim and muted values.
Token
Resolves to
Role
Applied to
Never applied to
--text-value
--ink
Primary value
Every number presented as a reading — 68, 412, 2.4, 22.5, 12.3, 18:56. One per hierarchy level.
Units, labels, whole sentences
--text-unit
--ink-dim
Unit
Only the unit token of a reading — %, km, °C, bar, kWh, kW, m, km/h, s, KM.
The number itself; state words; a sentence as a whole
--text-label
--muted
Label / state word
Card eyebrows, tyre positions (Front left …), state words whether bare or on a chip — Playing, Auto, Up to date, Scheduled, Driver assist on — and map annotations.
Values or units
--text-prose
--ink-dim
Secondary prose
Sentences, notes and helper copy — “Turn right · Huanshi East Rd”, “to destination”.
Hero values, numbers that carry a reading
--text-live
--cyan #38bdf8
Live / active chrome
Active dock item and tab, route line, ring fill, progress, the icon on a live control.
Any static label, word or sentence
--tag-ok-ink
#a9e6cf
Success
The whole-system OK status only: All OK, No faults, OK, Charge complete — as a green chip, never as body text.
Numbers, headings, neutral states, decorations
--amber
#ffc46b
Warning
A real limit or exception: low tyre pressure, charge delayed, range short by more than the reserve.
Emphasis, active states, accents
--danger
#ff6b5a
Danger
Faults and failed actions only.
Anything informational
68%412km22.5°C2.4bar7.4kWPlayingUp to date1.8kWh to destinationAll OKLow pressure
Enforced rule table
This table is executable: tools/check-colors.py loads every page offline, walks each visible leaf text node and fails when a role gets the wrong ink, face or spacing. These six roles and one spacing rule are the only permitted answers.
Role
Token
Face
Space before unit
Flagged when
Value
--text-value
Sans
—
A numeric reading resolves to label, prose or unit ink.
Unit
--text-unit
Tabular sans
Exactly one U+0020
A unit resolves to any ink other than --text-unit or is not tabular sans; a number touches %, °C, bar, km, km/h, kW, kWh, V, s, min or h.
Label / state
--text-label
Sans
—
A caption, eyebrow, pill label or state word takes value, prose or unit ink, any mono, or tracking ≥ 0.09 em.
Prose
--text-prose
Sans
—
A sentence or note takes ink or label ink, or any mono.
Time
--text-value
Mono
—
A clock reading does not take value ink.
Identifier
--text-value
Mono (identifiers only)
—
An identifier is not in value ink, or a word identifier or heading is set in mono.
Live / active
--text-live
Role's own face
—
Cyan appears on a word that is not live chrome or a status chip's own ink.
Rejected in v0.4.14
Rejected · Volume with no gap and a muted value
Volume45
Volume45
Left, rejected: the reading touches its label and “45” resolves to muted prose ink. The tool reports no space before unit and colour muted, expected value ink.
Right, shipped: one real space between label and reading. “45” is a reading, so it takes --text-value; “Volume” stays --text-label.
Rejected · Duration with arbitrary colours
Duration1h 35min
Duration1h35min
Left, rejected: the label takes value ink while the numbers and units are muted, and the units touch their digits. Colour no longer matches role.
Right, shipped: “Duration” is a label (--text-label); 1 and 35 are readings (--text-value); h and min are units (--text-unit, tabular sans), each after one real space.
Reading rows & label order
Two rules prevent the two defects found in v0.4.10: a value row whose readings use different inks, and a label that sits after the value it identifies. Both are enforced here and on every surface.
Correct · one value row
Cabin22.5 °C
Outside24 °C
Fan3
Every reading in one row takes --text-value for the number and --text-unit for the unit. No reading is muted, ever.
Equal columns, one baseline: the three readings occupy three equal widths with a shared baseline.
No separator dot or slash between readings. Whitespace and column rhythm separate them; a dot is punctuation, never a data separator.
Labels sit above their value and take --text-label; prose takes --text-prose.
Correct · label then value
DoorsLocked
WindowsClosed
AlarmOn
Label identifies, value follows. Stacked groups put the label above the value; inline pairs put the label to the left of the value.
A card head keeps its label on the left and its status word on the right; the status is a label, not the value's label. It stays bare for a mode, schedule or connectivity word and takes the shared chip for a status conclusion.
A status word is not a reading and not a value’s label — “Auto”, “Scheduled”, “Secured” stay --text-label wherever they sit. Secured may wear the chip; its ink does not change.
Rejected: a value above its label (the v0.4.10 Mobile locks card) and a value to the right of its label in an inline pair.
The unit rule
One rule for every unit: a unit always takes the dedicated unit colour — the same light grey as prose, --ink-dim — never the value colour and never the label colour. %, km, °C, bar, kWh, kW, m, km/h and s behave identically in a card, in the HUD and on the map scale.
One real space before every unit. A unit signifier (%, °C, bar, km, km/h, kW, kWh, V, s, min, h) follows its number after exactly one U+0020 space in the text itself — never a margin, flex gap or pseudo-element. The same rule covers a unit inside a chip, a footnote or a sentence.
The unit is always tabular sans at 60 % of the value it follows — that is the reading rule, and colour does not change it.
Inside a prose reading (“1.8 kWh to destination”) the number still takes --text-value and its unit still takes --text-unit; only the words around them are prose. There is no second unit colour anywhere in the product.
The state-label rule
A word that names a state is a label, so it takes --text-label. “Playing”, “Up to date”, “Auto”, “Scheduled”, “Standby” and “Driver assist on” are muted at every size, in every state.
“Playing” is never cyan, in any state. Cyan on a state word made the same word change meaning between screens.
Shape follows meaning, not position. A mode, a schedule or a connectivity word is a bare label: no border, fill, radius or padding, so it cannot be read as a button. Any status conclusion takes the same non-interactive chip wherever it sits — card head or labelled row: All OK, No faults, OK, Secured, Up to date, Charge complete. Readings — numbers, units, and word values such as Locked or Closed — are values and never chip. The one colour exception is a whole-system healthy state, which takes green --tag-ok-ink ink on either shape.
Where cyan is permitted
One use only: live or active chrome — active dock item, tab, route, ring, progress, the icon on a live control.
Never as emphasis on a heading, label, state word or number that is already present; colour reinforces a role, it does not add importance.
A reading group carries no cyan at all: size and ink already separate the number, its unit, its label and its prose.
Rejected
Mislit unit: a % or km resolving to --muted while the next card's °C resolves to --text-unit. This was a real in-car override bug and is now impossible by construction.
Cyan state word: “Playing” in cyan on one screen and muted on another.
Control-shaped status pill: a border plus hover and pointer cursor on a word that cannot be clicked. Rejected; the chip keeps a hairline ring and fill but adds no interactive affordance.
Colouring a unit by its value's emphasis, or by the card it sits in. Units never inherit.
Warning amber used to make a number louder; amber means attention, not importance.
Correct · caption clearance
Remaining range412 km
Caption and value never touch. A caption above a value keeps at least --caption-gap (0.9em) of clear space between their text boxes; on the HUD the equivalent is 1.8cqw. The value's line box may not enter the caption's box.
The same clearance governs a 2×2 reading grid: a hairline over each cell, 1.6cqw between cells, 2.6cqw between a stacked label and its value (never below 1.6cqw in compact spec tiles), one baseline per cell, and no cell may wrap. A cell is not a tile: no border box, fill, radius or inner padding — the four wheels read as plain rows in the card, identical to the desktop and in-car cards.
Rejected: the v0.4.11 defect where “remaining range” intersected “412” by 1.8–4.2 px on in-car, mobile and the HUD.
A repeated reading row is one grid. Equal columns and gaps, the row's outer edges on the card edges, one reserved caption line per column, captions never wrap, and every value starts on the same baseline. Rejected: the v0.4.11 mobile Location row, where “Battery on arrival” wrapped and pushed “66 %” a line below “12.4 km” and “18:56”.
Specimen rows are the exception, and only here. The ladders and comparison rows on this page size each cell to its own content and wrap when the card is too narrow, because a 26 px specimen (“Doors and windows”) is wider than any equal third of a card and may never run into its neighbour. Product rows stay equal-column grids.
Face and colour are independent axes. The face is sans for every reading, with tabular figures; mono is left for identifiers. Colour decides the role (value, unit, label, prose, live). A unit is tabular sans and the neutral unit ink — the same light grey as prose; a time is tabular sans and ink or muted depending on whether it is a reading (“18:56” in a card head) or a label (“Arrives” beside it). A prose sentence stays in the text sans even when it contains a unit, and the unit inside it keeps its own colour.
07 · Typography roles
What each voice is for
Headings
Arrizo 8 EV
Sans, weights 250–400, sentence case, −0.01em tracking. One heading per card, never a second line competing with the value.
Values
62km/h68%18:56
Tabular sans, units one size down at 60 % and in unit ink. A standalone value, its unit or a clock time only — the same face as the sentence it sits in, so nothing inside a card changes family.
Micro-labels
Tyre pressure · Battery on arrival
Sans 600 at 9.5px desktop / 13.8px in-car / 11.3px mobile, 0.02em tracking. Eyebrows, captions and status labels; sentence case, never uppercase sentences. Wide tracking is the mono look, not a label style.
The role split is identical on all three surfaces. Only the resolved size changes, which is why the same card reads as one product in a laptop browser, a centre stack and a phone.
08 · Deliberate density
Same language, different scale
Surface
Card padding
Card radius
Eyebrow
Primary value
Bare status label
Status chip
Status ink
Desktop
16 px · 14 px compact
14 px
9.5 px · 600 · 0.02em
30 px range · 17 px charge · 22 px title
9.5 px · 600 · 0.02em
9.5 px · 2 × 7 px pad · 999 px
Muted; green for OK
In-car
0.9 / 1.1 cqw
1.1 cqw
0.85 cqw · 600 · 0.02em
14.9 cqw range (card band) · 9.2 cqw charge · 25.6 px at 1920
0.85 cqw · 600 · 0.02em
0.85 cqw · 0.24 × 0.72 cqw pad · 999 px
Muted; green for OK
Mobile
3.8 cqw
3.6 cqw
2.9 cqw · 600 · 0.02em
10 cqw range · 4.9 cqw charge
2.9 cqw · 600 · 0.02em
2.9 cqw · 1.1 × 2.4 cqw pad · 999 px
Muted; green for OK
Density diverges because the reading distance does. Desktop sustains reading at 650 mm; the centre stack gets a sub-second glance through glass at the same distance; mobile is held at 300 mm with a thumb. Container units keep the in-car and mobile ratios exact at any render size, while desktop stays on pixels. The invariants do not change: one card order, one status grammar, colour-plus-word status, one icon box, sans throughout, tabular figures for readings, mono only for identifiers.
Value caps inside a card. A value is a size relative to the card that contains it, not a global headline. The hero numeral may never exceed its class cap:
Density class
Hero cap: width / height
Resolved cap
Desktop rail card
12 % / 27 %
31.3 px at 330 × 116; range 30 px (9.1 % / 25.9 %)
In-car card
16.5 % / 27 %
30.7 px at 186 × 128.6; range 25.6 px (13.8 % / 19.9 %)
Mobile card
14 % / 32 %
38.2 px at 273 × 113.6; range 30.4 px (11.1 % / 26.8 %)
Dedicated metric hero
16 % / 42 %
48 px at 300 × 114; desktop Live driving status only
HUD
Exempt — not a card
Dedicated display; speed 7.2 cqw, unit 1 cqw
Inside a value card every hero keeps the same internal ratios: unit at 25–35 % of the hero, secondary numeric at 42–54 %, label at 25–33 % (hero 3.0–4.0× the label), meta at 80–100 % of the label, footnotes at 75–100 % of the label. The one dedicated metric hero (desktop Live driving status) has no secondary numeric; its unit is 24–30 % and its status line 20–28 % of the hero. A summary card never exceeds its cap; if the value is too large, reduce the value, never shrink the label to fit it. Only the desktop Live driving status card and the HUD are designated metric displays — no other card may opt out, and the in-car centre display is explicitly not one of them: its largest type is the route distance (25.8 px at 1920), not a card value. See “One largest type per surface” in the type scale.
09 · Cross-surface rationale
Why one style has four sizes
Surface
Canvas
Physical width
View distance
Pixel pitch
14px angle
Glance budget
Input
Desktop
1440 × 900
≈ 531 mm
650 mm
0.369 mm
27 arcmin
Sustained reading
Keyboard, pointer
In-car
1920 × 1080
≈ 345 mm
650 mm
0.180 mm
13 arcmin
< 1 second
Touch and steering
HUD
2560 × 1000
≈ 800 mm virtual
1000 mm
0.313 mm
15 arcmin
0.2–0.4 second
None
Mobile
390 × 844
≈ 65 mm
300 mm
0.167 mm
27 arcmin
1–3 seconds
Thumb, 44px targets
In-car conversion
15.6-inch 16:9 panel → 345 mm across 1920 px → 0.180 mm per pixel. At a 650 mm eye distance, 16px subtends 15.2 arcmin; 34px subtends 32.3 arcmin; 14px subtends 13.3 arcmin.
Comfortable glance reading needs roughly 18–20 arcmin. That is why in-car values move to 30–39 px (29–38 arcmin), titles to 20 px (19 arcmin) and nothing drops below 13.8 px.
Why surfaces diverge
Desktop and mobile can afford smaller type because the eye is close and the user controls dwell time. In-car and HUD cannot: distance, vibration and a sub-second glance all shrink the effective window.
Brightness matters too. Daylight washes out thin strokes, so in-car and HUD labels carry more weight; the dark dashboard keeps contrast with a single cyan accent instead of extra font weight.
10 · Live components
Paint, media and identity
Paint swatch orb
Rule: a preview is a material, not a lighter fill. The base colour stays the dominant hue; gloss comes from a clearcoat specular point, an environment lift, a horizon reflection and two derived tints for body shading.
Colour source:--swatch is written at runtime from the same data-color that app.js assigns to the car's CarPaint material, so the orb and the 3D body cannot drift apart.
Values: specular core at 32 % / 24 %, opacity 0.55 + metal × 0.40, spread 5 % + rough × 9 %; environment lift 10–28 %; horizon line 0.10; body shading between base 55 % + white and base 70 % + ink; rim inset 0 1px 1px white 0.55 plus inset 0 −3px 6px black 0.40.
States: rest; hover scale 1.06; selected scale 1.06 with 2 px ink, 3 px cyan ring and 16 px glow; keyboard focus uses the same ring. Four base values stay distinguishable by hue and lightness.
Media progress bar
0 %54 % · playing100 %
Rule: the playing-music progress bar and the volume line are one family. Both use the same track, the same fill and the same 2 px radius.