Skip to content

Signal

Components

Line bar

The lines serving a station, as one rounded vertical bar per CTA line in contrast order. Used in stop rows, stop cards and search results.

Contract: components/line-bar.yaml. States are drawn live by transit.js.

iOS app specification

The app's rendering of this component, from the v3 spec.

Line bar

All lines at a stop as equal-width, evenly spaced rounded rectangles. Used wherever lines are read, not tapped.

UIC-Halsted · 1
Fullerton · 2
Belmont · 3
Howard · 3
Washington/Wabash · 5
Clark/Lake · 6
SizeEach segment is 10 × 24 with radius 3
SpacingFixed 3pt gap between segments. Segment size and gap never change with route count; total width grows from the count. Six-line stations are the current actual max
OrderMaximize the smallest color difference between neighbors, then the total; ties follow CTA order. Deterministic per set
Used inStop cards, sheet header, station rows
Not used inRoute filter and arrival rows, which stay circles

Variants

One form; no variants. LineBar (lineBar() on the web) draws one fixed-size segment per line in contrast order; only the count changes. Nothing else exists.

// Do
<LineBar routes={['red', 'purple', 'brown']} />
// Don't: bars drawn by hand, in your own order
{['red', 'purple'].map(r => <View key={r} style={{ width: 10, height: 24, backgroundColor: lineColor(r) }} />)}