Heart Icon

heart · Like · 6 styles

Heart is one of the glyphs Solar Icons ships inside its Like set. It is one of 17 glyphs in that category and one of 1,246 icons in the library overall, each drawn on the same 24x24 grid so Heart lines up optically with everything around it. The icon is addressed in templates by the string "heart", and every style variant resolves from that single name.

Read literally, the shape signals likes and favourites. That places Heart in the Like family, which covers approval, favourites and hearts and turns up in like buttons, wishlists, rating rows and saved-item badges. Teams building social feeds and shopping products reach for this set first. Use Heart 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.

Heart in 6 styles

Heart has been redrawn for 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.

BoldHeartBold
Bold DuotoneHeartBoldDuotone
LinearHeartLinear
OutlineHeartOutline
BrokenHeartBroken
Line DuotoneHeartLineDuotone

How to use the heart icon in Angular

Every export is an isolated constant, so the bundler drops whatever you never mention. Import HeartBold from the "@rchernando/solar-icons/like" 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 heart live in that same entry point, so switching style is a one-line change.

typescript
import { HeartBold, HeartBoldDuotone, HeartLinear, HeartOutline, HeartBroken, HeartLineDuotone } from '@rchernando/solar-icons/like';
typescript
import { ApplicationConfig } from '@angular/core';
import { provideSolarIcons } from '@rchernando/solar-icons';
import { HeartBold } from '@rchernando/solar-icons/like';

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

More Like icons

Icons drawn alongside it in Like include Heart Shine, Medal Ribbon, Medal Star Circle, Dislike, Heart Lock, Like, Medal Star and Star Shine. They share stroke weight and corner radius with Heart, so mixing them in one toolbar stays consistent.

Browse all Like icons →

Icons related to Heart

If Heart is not quite the shape you want, Bag Heart, Chef Hat Heart, Clipboard Heart, Hand Heart and Heart Angle share part of its name and often work as substitutes.

Elsewhere in the library

Across the rest of the set, Record Minimalistic, Fog, Archive, Server Square, Hourglass Line and Bottle cover neighbouring ideas; the name "heart" is 5 characters long and splits into 1 token, which is how the explorer's search matches it.

Heart icon FAQ

How do I use the heart icon in Angular?
Import HeartBold from "@rchernando/solar-icons/like", register it with provideSolarIcons(HeartBold) and render <solar-icon name="heart" iconStyle="bold" />. No HTTP request is made — the SVG is inlined at build time.
Which styles does Heart 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 heart?
Yes. The size input accepts any CSS length and the SVG uses currentColor, so Heart 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.