Skip to content
Fleetline

Icon

Usage

Icons help dispatchers scan dense screens and mechanics recognise actions at arm's length. They support text; they rarely replace it. Fleetline uses one outline set (Lucide-style, ISC licence) at a single stroke weight, delivered as an SVG sprite — never an icon font.

Anatomy

  1. Sprite symbol — <symbol id="icon-NAME" viewBox="0 0 24 24">, stroke = currentColor
  2. Instance — <svg class="icon"><use href="#icon-NAME"></use></svg>
  3. Size — .icon--sm | --md | --lg (16 / 20 / 24px)
  4. Accessible name (labelled only) — role="img" + aria-label

Examples

Icon

Due 12 Nov Truck HT-507
Van KX-219 Pickup PU-118
Next vehicle
<!-- Decorative: the text says it all -->
<span class="icon-text">
  <svg class="icon icon--sm" aria-hidden="true" focusable="false"><use href="#icon-calendar"></use></svg>Due 12 Nov
</span>

<!-- Labelled: the icon carries meaning on its own -->
<svg class="icon" role="img" aria-label="Service overdue" focusable="false"><use href="#icon-alert-circle"></use></svg>

<!-- Directional -->
<svg class="icon icon--mirror-rtl" aria-hidden="true" focusable="false"><use href="#icon-arrow-right"></use></svg>

API

HookValuesPurpose
.iconblock classSizes the SVG, inherits currentColor, sets stroke weight
.icon--sm | --md | --lgmodifier class16 / 20 (default) / 24px
.icon--mirror-rtlmodifier classFlips directional glyphs in right-to-left pages
.icon-textclassAligns an icon with adjacent text
aria-hidden="true" focusable="false"attributesDecorative icon
role="img" aria-label="…"attributesLabelled icon

Do and don't

Overdue
Do pair status icons with text.
Don't rely on an unlabelled icon to communicate meaning.

Accessibility

Tokens

Custom propertyPurpose
--icon-size-sm | -md | -lg16 / 20 / 24px
--icon-strokeStroke width (1.5) for the whole set
--space-1-5Gap between icon and text