A tram seen head-on under its pantograph, for trams, light rail and city transit. On a 24×24 grid in stroke, two-tone, duotone and fill, free under MIT.

TransportNewv2.2.0Added
Drawn byKeyline Icons
16
20
24 px
32
24px
2px
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  <path d="M7 6L17 6C18.6569 6 20 7.3431 20 9L20 17C20 18.6569 18.6569 20 17 20L7 20C5.3431 20 4 18.6569 4 17L4 9C4 7.3431 5.3431 6 7 6ZM4 12L20 12M8 2L16 2M10 6L12 2L14 6M8 20L7 22M16 20L17 22" fill="none"/>
  <path d="M9 16C9 16.5523 8.5523 17 8 17C7.4477 17 7 16.5523 7 16C7 15.4477 7.4477 15 8 15C8.5523 15 9 15.4477 9 16ZM17 16C17 16.5523 16.5523 17 16 17C15.4477 17 15 16.5523 15 16C15 15.4477 15.4477 15 16 15C16.5523 15 17 15.4477 17 16Z" fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" stroke="none"/>
</svg>

Also called

What someone searching for this drawing would have typed instead. These are the words the browser's search matches on.

  • tram
  • streetcar
  • trolley
  • light rail
  • cable car

Related icons

The rest of the tram family first, then the Transport shelf.

FAQ

Answered from tram-front's own facts: its shelf, the weights it was drawn in, its siblings and its dates.

What is the tram-front icon for?
A tram seen head-on under its pantograph, for trams, light rail and city transit. It is filed under Transport in Keyline Icons, drawn on the same 24×24 grid as the rest of the set. People look for it as tram, streetcar, trolley, light rail and cable car, and the browser's search matches all of those.
What styles does the tram-front icon come in?
All four: stroke, two-tone, duotone and fill. They are drawn from the same geometry, so swapping style never moves anything.
Is there a square or circle version of tram-front?
No. tram-front is drawn as a bare glyph, and the set has no boxed variant of it.
What other icons go with tram-front?
tram-front-off, bike, bike-2, bike-2-off, bike-fast and bike-off, and 12 more, all shown below. The tram family is listed first, then the rest of the Transport shelf, so the row under this one is the useful one even where a shelf runs long.
How do I import tram-front in React?
<TramFront /> is the component, and the weight decides the module: stroke from "@keyline-icons/react", two-tone from "@keyline-icons/react/two-tone", duotone from "@keyline-icons/react/duotone" and fill from "@keyline-icons/react/fill". It takes the usual SVG props plus a size, so <TramFront size={16} /> and className="size-4" both work, and there is no provider or theme to set up.
Where is the tram-front SVG?
icons/stroke/tram-front.svg, icons/two-tone/tram-front.svg, icons/duotone/tram-front.svg and icons/fill/tram-front.svg in the repository, normalised: no wrapper, no ids and no classes to strip out. The tabs above hand you the same drawing as SVG or JSX without the download, and neither needs an install.
When was tram-front added to the set?
Added 25 Oct 2026. It ships in v2.2.0, so an install at that version or later has it.

Questions about the set rather than about this drawing are answered where they belong. The home page covers what the set is, how the three styles differ, why some icons come boxed and where the Figma file is; installing the set in a shadcn/ui project covers the React package, the CLI and using an icon without React. The MIT licence is stated in the footer of every page.