Skip to content
Fleetline

Typography

Usage

Fleetline uses one family (Inter) for all UI text, chosen for legibility on tablets outdoors; data columns switch on tabular numerals with .text-tabular so mileage and costs line up. Type is applied through role classes, never raw sizes.

Anatomy

  1. Font family — --typography-{role}-font-family
  2. Size — --typography-{role}-font-size (from the --font-size-* scale)
  3. Weight — --typography-{role}-font-weight
  4. Line height — --typography-{role}-line-height
  5. Measure — --size-measure for running text

Examples

Headings

Demo headings below use <p> elements so they don't disturb this page's outline; in product screens use real h1–h6.

1,284 vehicles

Fleet overview

Open work orders

Van KX-219 — brake inspection

Parts and labour

Assigned mechanic

Service history

h2 element, h5 size

Depot: North Yard

<h1 class="text-h1">Fleet overview</h1>
<h2 class="text-h2">Open work orders</h2>

<!-- Semantic level and visual size are independent -->
<h2 class="text-h5">Depot: North Yard</h2>

<!-- Display: big numbers on dashboards, once per screen -->
<p class="text-display text-tabular">1,284 vehicles</p>

Body text

Track every vehicle's service schedule, assign repairs to mechanics and keep your fleet on the road.

The front brake pads on van KX-219 are at 3 mm. Replace them before the next scheduled route on Thursday, and check the discs for scoring while the wheels are off.

Last updated by Priya Nair at 14:32 · Odometer 84,210 km

Figure 2. Average repair time per vehicle class, last 90 days.

Work order

WO-4182 · Replace front brake pads

<p class="text-lead">Track every vehicle's service schedule…</p>
<p class="text-body">The front brake pads on van KX-219 are at 3 mm…</p>
<p class="text-small text-muted">Last updated by Priya Nair at 14:32</p>
<figcaption class="text-caption">Figure 2. Average repair time…</figcaption>
<p class="text-overline">Work order</p>

Code

Set the vehicle status to in_service after the inspection passes, or call PATCH /vehicles/KX-219.

{
  "id": "WO-4182",
  "vehicle": "KX-219",
  "status": "in_progress",
  "assignee": "Priya Nair",
  "tasks": ["Replace front brake pads", "Inspect discs for scoring"]
}
<code class="code">in_service</code>

<!-- Scrollable block: tabindex="0" + a name so keyboard users can scroll it -->
<pre class="code-block" tabindex="0" aria-label="Example API response for a work order"><code>…</code></pre>

Lists

  • Check tyre pressure and tread depth
  • Top up coolant and washer fluid
  • Test brake lights and indicators
  1. Lift the vehicle and remove the front wheels
  2. Remove the caliper and the worn pads
  3. Fit new pads and torque the caliper bolts to spec
  • Van KX-219 · North Yard
  • Truck HT-507 · Riverside depot
  • Van KX-344 · North Yard
<ul class="list">…</ul>
<ol class="list">…</ol>

<!-- role="list" keeps list semantics in Safari when markers are removed -->
<ul class="list list--unstyled" role="list">…</ul>

API

HookValuesPurpose
.text-display | .text-h1 … .text-h6classHeading roles (balanced wrapping, tight tracking)
.text-lead | .text-body | .text-smallclassRunning text, capped at --size-measure
.text-caption | .text-overlineclassCaptions and eyebrows (muted)
.text-muted, .text-tabularmodifier classSecondary color; tabular numerals for data
.code, .code-blockclassInline code; scrollable block (pre with tabindex="0")
.list, .list--unstyledclassProse lists; marker-less list (keep role="list")

Do and don't

Assigned mechanic

Do keep the outline correct and pick the visual size with a class.

This vehicle is overdue for its annual safety inspection and must not be dispatched

Don't put sentences in an overline or use uppercase for long text.

Accessibility

Keyboard interaction
KeyBehavior
Tab, then ← / →Focuses a code block and scrolls it horizontally

Tokens

Custom propertyPurpose
--typography-{display|h1…h6|lead|body|small|caption|code}-{font-family|font-size|font-weight|line-height}Composite type roles
--font-tracking-tight | -wideHeading and overline letter spacing
--font-weight-semiboldOverline weight
--size-measureMax line length (65ch)
--color-text-default | -mutedText colors
--color-bg-muted | -subtle, --color-border-default, --radius-sm | -mdInline code and code block surfaces