Tram Icon

tram · Transport Parts Service · 6 styles

Tram sits in the Transport Parts Service shelf of the Solar Icons library. It is one of 19 glyphs in that category and one of 1,246 icons in the library overall, each drawn on the same 24x24 grid so Tram lines up optically with everything around it. The icon is addressed in templates by the string "tram", and every style variant resolves from that single name.

In practice it stands for the idea of vehicles, parts and roadside service. That places Tram in the Transport Parts Service family, which covers vehicles, parts and roadside service and turns up in fleet dashboards, garage bookings, parts catalogues and delivery views. Teams building automotive and logistics products reach for this set first. Use Tram where the label alone would be ambiguous — an icon-only button, a dense table row, a mobile tab bar — and keep an accessible name on the control, because the SVG itself is decorative.

Tram in 6 styles

Tram is available in 6 style variants: Bold, Bold Duotone, Linear, Outline, Broken and Line Duotone. Bold gives you solid filled shapes that hold their weight at 16px and read clearly against coloured backgrounds. Bold Duotone gives you a filled body with a second, lower-opacity layer that adds depth without a second colour token. Linear gives you even 1.5px strokes, the neutral default for dense interfaces and toolbars. A common pairing is Bold for the selected state and Line Duotone for the rest, so the active item reads without a colour change.

BoldTramBold
Bold DuotoneTramBoldDuotone
LinearTramLinear
OutlineTramOutline
BrokenTramBroken
Line DuotoneTramLineDuotone

How to use the tram icon in Angular

Registration is explicit, which is what keeps the bundle small. Import TramBold from the "@rchernando/solar-icons/transport-parts-service" entry point, hand it to provideSolarIcons in your application config or in a route-level providers array, and render it with the solar-icon component. All 6 exports for tram live in that same entry point, so switching style is a one-line change.

typescript
import { TramBold, TramBoldDuotone, TramLinear, TramOutline, TramBroken, TramLineDuotone } from '@rchernando/solar-icons/transport-parts-service';
typescript
import { ApplicationConfig } from '@angular/core';
import { provideSolarIcons } from '@rchernando/solar-icons';
import { TramBold } from '@rchernando/solar-icons/transport-parts-service';

export const appConfig: ApplicationConfig = {
  providers: [provideSolarIcons(TramBold)]
};
html
<solar-icon name="tram" iconStyle="bold" size="24px" />
<solar-icon name="tram" iconStyle="bold-duotone" size="24px" />
<solar-icon name="tram" iconStyle="linear" size="24px" />
<solar-icon name="tram" iconStyle="outline" size="24px" />
<solar-icon name="tram" iconStyle="broken" size="24px" />
<solar-icon name="tram" iconStyle="line-duotone" size="24px" />

More Transport Parts Service icons

Icons drawn alongside it in Transport Parts Service include Kick Scooter, Transmission, Scooter, Transmission Circle, Shock Absorber, Transmission Square, Spedometer Low and Wheel. They share stroke weight and corner radius with Tram, so mixing them in one toolbar stays consistent.

Browse all Transport Parts Service icons →

Elsewhere in the library

In other corners of the library, Notes, Upload Track2, Dumbbell Large Minimalistic, Record Minimalistic, Alarm Pause and Graph cover neighbouring ideas; the name "tram" is 4 characters long and splits into 1 token, which is how the explorer's search matches it.

Tram icon FAQ

How do I use the tram icon in Angular?
Import TramBold from "@rchernando/solar-icons/transport-parts-service", register it with provideSolarIcons(TramBold) and render <solar-icon name="tram" iconStyle="bold" />. No HTTP request is made — the SVG is inlined at build time.
Which styles does Tram support?
6 of them: Bold, Bold Duotone, Linear, Outline, Broken and Line Duotone. Each is a separate export, so you only ship the ones you import.
Can I change the size and colour of tram?
Yes. The size input accepts any CSS length and the SVG uses currentColor, so Tram inherits the text colour of its container — a Tailwind class such as text-violet-400 is enough.

One of 1,246 icons in the Solar Icons explorer. See also the installation guide and the styling reference.