Icons
Icons
Transit and UI icons, the Favorite glyph and vehicle marker states, all Signal glyphs.
The app's icons are the Signal glyphs in icons/ (the transit icons and the web UI icons below), on iOS, Android and the web: go generate ./... turns each into template PNGs for React Native and a CSS mask or #i-{name} symbol on the web. A code name that isn't a file name is the SF Symbol the icon matches. The Favorite is a five-point rounded star in a 24pt box: center 12 × 12.9, outer radius 10.8, inner radius 5.6, tip radius 3.4, and valley radius 1.8, joined with quadratic curves. Unsaved uses a 2pt round-join outline; saved uses a fill plus a 0.6pt round-join stroke. Both weights scale with the glyph at 14 / 18 / 22 / 32pt. Other icons are filled for identity and outlined for actions; 22pt in controls and 28pt for the alert.
train.svgbus.svghouse.fillmap.fillgearshape.fillgearshapeline.3.horizontal.decreaseRoundedStarShapestopwatchexclamationmark.triangle.fillchevron.leftxmarklocationchevron.downmagnifyingglassrefresh.svgRefresh is one clockwise arrow (SF Symbol arrow.clockwise), never two. icons/refresh.svg is the single source for every refresh control on the web (#i-refresh): filled paths in currentColor matching the 2.2 stroke of the other action icons. It spins one turn (0.6 s, ease-in-out) while refreshing; no spin under Reduce Motion.
Web UI icons
The web app's control and source glyphs, drawn from icons/ like the transit icons and shipped in @chitransit/signal/icons/. The second name under each is the SF Symbol it matches. Strokes are outlined to filled paths (2.2 stroke weight, round caps), so they tint like the transit icons. The alert's exclamation mark is a cut-out, as in the SF Symbol. site.js adds each as #i-{name}.
alert.svgexclamationmark.triangle.fillclose.svgxmarklocate.svglocationsearch.svgmagnifyingglasstune.svgslider.horizontal.3map.svgmap.fillnearby.svgiOS: transit.nearbyscheduled.svgclocktimeline-arrow.svgarrowtriangle.down.fillmore.svgellipsisgithub.svgGitHub markback.svgchevron.leftchevron.svgchevron.rightcheck.svgcheckmarklocate-fill.svglocation.filllocation-off.svglocation.slash.filllayers.svgsquare.3.layers.3dstar.svgstarstar-fill.svgstar.fillsettings.svggearshape.fillfares.svgcreditcard.fillstep-free.svgfigure.rollprivacy.svghand.raised.fillsupport.svgquestionmark.circle.fillreset.svgarrow.counterclockwisetimer.svgstopwatch.fillTransit icons
Train and Bus are custom SVGs. icons/ is the single source: train.svg and bus.svg. The web app and the iOS app draw these files and nothing else for transit modes. Each is a 24 × 24 viewBox of filled paths in currentColor: no hard-coded colors, no stroke-only shapes, no text. Color comes from the context: Ink on Paper, white on a line or Brand fill, and Always black on Yellow. Shown at 16 / 24 / 44pt.
Updating a transit icon
- Draw on a 24 × 24 artboard with filled shapes only; outline any strokes and remove text.
- Export as SVG, run
npx svgo --multipass, and set every fill tocurrentColor. - Replace the file in
icons/with the same name. - Run
go test ./...; it fails on a missing file, a hard-coded color, a stroke or text. - Check this section at 16 / 24 / 44pt in light, dark and on the line colors.
- Run
go generate ./...; it regenerates the web icons and the React Native PNGs.
Vehicle markers
A pin in the line colour (Brand for a bus) in an Always White keyline, its tip and an open chevron turned to the bearing, with the train or bus glyph upright at the centre. Stale vehicles look the same as live ones. Selected: the marker scales to 1.25×, with no halo or shadow. Sizes, colors and rules: Vehicle positions › Marker.