Components
Station marker
A train station on the map, drawn like the brand logo: a white circle per served lane, bridged and outlined as one shape. Zoomed out it is a simple dot.
Contract: components/station-marker.yaml. States are drawn live by transit.js.
Loading the contract…
Line letters
With Show line letters on (the app's Show line letters toggle; stationMarkerEl(desc, selected, size, { letters: true }) on the web), each bar is followed by its line's two-letter code (lines[].letters: RD, BL, BR, GR, OR, PR, PK, YL), so a station never relies on line color alone. The letters are Ink on the neutral Card 2 capsule, not on the line color, which keeps them at 14.6:1 in light and 13.3:1 in dark for every line.
- Size: 40% of the capsule height, heavy weight. Never under
size.lineLetterMinimum(8): below a 20 pt capsule (a 24 px web marker) the marker keeps plain bars. The compact dot and tick never carry letters. - Width: the capsule grows by a code per line; Clark/Lake at 28 is about 160 wide.
- VoiceOver: unchanged. The label already names every line ("Clark/Lake station, Blue Line, Brown Line, …"); the letters are hidden so it never spells "B L".
Loading the contract…
iOS app specification
The app's rendering of this component, from the v3 spec.
Station icon
A station is a Card pressed capsule the height of the route icon: the Ink train glyph leads, then one short rounded bar per line. Every station uses the same form, so a single-line station has one bar. Width grows with the line count.
| Sizes | Map marker 40 (36 inside the 2pt Paper keyline) · Large 32 · Standard 24. Not used at Mini 14. |
|---|---|
| Body | Card pressed capsule: height is the size, corner radius 50% of the height. Trailing padding 22% of the height (min 4) |
| Glyph | Train glyph, Ink, 75% of the height, centered in a leading square cell as wide as the icon is tall |
| Bars | One per line, left to right in line-bar contrast order. Width 22.5% of the height, height 60%, corner radius 40% of the bar width; the first bar starts 8% of the height inside the glyph cell |
| Gap | Fixed 1.5 between bars at every size |
| At 36 / 32 / 24 | Bar 8.1 × 21.6 / 7.2 × 19.2 / 5.4 × 14.4 · radius 3.2 / 2.9 / 2.2 · trailing 7.9 / 7.0 / 5.3. Six lines at 36 is 97 wide |
| Single line | Same capsule with one bar. No solid line-color fill |
| Line bar | Still used wherever lines are read, not just recognized: stop cards, list rows, stop sheet |
| Label | "Clark/Lake station, Brown, Purple, Orange, Blue, Green and Pink lines" |
Variants
One form; no variants. stationMarkerEl(desc, selected, size, { letters }) draws one capsule with a bar per line; a one-line station is the same capsule with one bar. selected and letters (dropped below a 24 marker) are its only options. Nothing else exists.
// Do
const T = window.ChiTransitTransit;
T.stationMarkerEl({ name: "Clark/Lake", routes: ["brown", "purple", "orange", "blue", "green", "pink"] }, false, 28, { letters: showLineLetters });
// Don't: fill a one-line station with its line color
<span class="station-icon" style="background:var(--red-line)">…</span>