gentleface

Gentleface › Social & emotions › heart

heart icon

Heart: like, love, likes, heart suit. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed. Part of the free toolbar icon set.

Animated heart-beat · line-round

A double beat, strong then weaker. The outline itself swells, so the line stays one pixel thick throughout.

Download SVG

Native SVG animation, with no CSS or script. It loops by itself. Inline it to take the text color: in an <img> it draws black. To play it once on hover or click, run 0.2 s to 1.35 s. Examples and helper.

Code line-round

SVG
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8.653 13.87C8.444 13.957 8.226 14 8 14C7.774 14 7.556 13.957 7.347 13.87C7.138 13.783 6.953 13.66 6.793 13.5L2.146 8.854C1.83 8.537 1.566 8.131 1.353 7.634C1.118 7.085 1 6.541 1 6C1 5.452 1.097 4.928 1.292 4.428C1.476 3.956 1.734 3.535 2.066 3.166C2.393 2.802 2.764 2.519 3.179 2.316C3.61 2.105 4.051 2 4.5 2C4.913 2 5.331 2.065 5.755 2.194C6.147 2.313 6.522 2.48 6.882 2.696C7.23 2.905 7.538 3.143 7.807 3.412C7.875 3.48 7.939 3.549 8 3.619C8.061 3.549 8.125 3.48 8.193 3.412C8.462 3.143 8.77 2.905 9.118 2.696C9.478 2.48 9.853 2.313 10.245 2.194C10.669 2.065 11.087 2 11.5 2C11.949 2 12.39 2.105 12.821 2.316C13.236 2.519 13.607 2.802 13.934 3.166C14.266 3.535 14.524 3.956 14.708 4.428C14.903 4.928 15 5.452 15 6C15 6.541 14.882 7.085 14.647 7.634C14.434 8.131 14.17 8.537 13.854 8.854L9.207 13.5C9.047 13.66 8.862 13.783 8.653 13.87ZM13.728 7.241C13.909 6.817 14 6.404 14 6C14 5.577 13.925 5.174 13.776 4.791C13.637 4.432 13.441 4.113 13.191 3.834C12.951 3.568 12.681 3.361 12.382 3.215C12.089 3.072 11.795 3 11.5 3C11.187 3 10.865 3.05 10.536 3.15C10.223 3.245 9.922 3.38 9.632 3.554C9.355 3.72 9.111 3.909 8.9 4.119C8.699 4.321 8.548 4.522 8.447 4.724C8.398 4.823 8.323 4.898 8.224 4.947C8.098 5.01 7.97 5.02 7.841 4.977C7.712 4.934 7.616 4.85 7.553 4.724C7.452 4.522 7.301 4.321 7.1 4.119C6.889 3.909 6.645 3.72 6.368 3.554C6.078 3.38 5.777 3.245 5.464 3.15C5.135 3.05 4.813 3 4.5 3C4.205 3 3.911 3.072 3.618 3.215C3.319 3.361 3.049 3.568 2.809 3.834C2.559 4.113 2.363 4.432 2.224 4.791C2.075 5.174 2 5.577 2 6C2 6.404 2.091 6.817 2.272 7.241C2.434 7.619 2.628 7.921 2.854 8.146L7.5 12.793C7.638 12.931 7.805 13 8 13C8.195 13 8.362 12.931 8.5 12.793L13.146 8.146C13.372 7.921 13.566 7.619 13.728 7.241Z"/></svg>
React
// Gentleface "heart" (line-round), MIT. https://gentleface.com/icons/heart
import type { SVGProps } from 'react';

export function HeartIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M8.653 13.87C8.444 13.957 8.226 14 8 14C7.774 14 7.556 13.957 7.347 13.87C7.138 13.783 6.953 13.66 6.793 13.5L2.146 8.854C1.83 8.537 1.566 8.131 1.353 7.634C1.118 7.085 1 6.541 1 6C1 5.452 1.097 4.928 1.292 4.428C1.476 3.956 1.734 3.535 2.066 3.166C2.393 2.802 2.764 2.519 3.179 2.316C3.61 2.105 4.051 2 4.5 2C4.913 2 5.331 2.065 5.755 2.194C6.147 2.313 6.522 2.48 6.882 2.696C7.23 2.905 7.538 3.143 7.807 3.412C7.875 3.48 7.939 3.549 8 3.619C8.061 3.549 8.125 3.48 8.193 3.412C8.462 3.143 8.77 2.905 9.118 2.696C9.478 2.48 9.853 2.313 10.245 2.194C10.669 2.065 11.087 2 11.5 2C11.949 2 12.39 2.105 12.821 2.316C13.236 2.519 13.607 2.802 13.934 3.166C14.266 3.535 14.524 3.956 14.708 4.428C14.903 4.928 15 5.452 15 6C15 6.541 14.882 7.085 14.647 7.634C14.434 8.131 14.17 8.537 13.854 8.854L9.207 13.5C9.047 13.66 8.862 13.783 8.653 13.87ZM13.728 7.241C13.909 6.817 14 6.404 14 6C14 5.577 13.925 5.174 13.776 4.791C13.637 4.432 13.441 4.113 13.191 3.834C12.951 3.568 12.681 3.361 12.382 3.215C12.089 3.072 11.795 3 11.5 3C11.187 3 10.865 3.05 10.536 3.15C10.223 3.245 9.922 3.38 9.632 3.554C9.355 3.72 9.111 3.909 8.9 4.119C8.699 4.321 8.548 4.522 8.447 4.724C8.398 4.823 8.323 4.898 8.224 4.947C8.098 5.01 7.97 5.02 7.841 4.977C7.712 4.934 7.616 4.85 7.553 4.724C7.452 4.522 7.301 4.321 7.1 4.119C6.889 3.909 6.645 3.72 6.368 3.554C6.078 3.38 5.777 3.245 5.464 3.15C5.135 3.05 4.813 3 4.5 3C4.205 3 3.911 3.072 3.618 3.215C3.319 3.361 3.049 3.568 2.809 3.834C2.559 4.113 2.363 4.432 2.224 4.791C2.075 5.174 2 5.577 2 6C2 6.404 2.091 6.817 2.272 7.241C2.434 7.619 2.628 7.921 2.854 8.146L7.5 12.793C7.638 12.931 7.805 13 8 13C8.195 13 8.362 12.931 8.5 12.793L13.146 8.146C13.372 7.921 13.566 7.619 13.728 7.241Z" />
    </svg>
  );
}
Vue
Vue: see /icons/heart.md
Svelte
Svelte: see /icons/heart.md
HTML img
HTML img: see /icons/heart.md
CSS
CSS: see /icons/heart.md
Data URL
Data URL: see /icons/heart.md
Sprite
Sprite: see /icons/heart.md
SwiftUI
SwiftUI: see /icons/heart.md
Compose
Compose: see /icons/heart.md
Android XML
Android XML: see /icons/heart.md
Flutter
Flutter: see /icons/heart.md

Each icon is drawn on the 16 px grid, and most also on the 20 and 24 px grids (at 24 in three weights: light 1 px, regular 1.5 px, bold 2 px). Show the drawing made for your size, or an exact multiple of it, on whole pixels: 16 for 16 and 32 px, 20 for 20 and 40, 24 for 24 and 48. A size in between or a fractional position blurs it. The code on each icon page is the 16 px drawing, an SVG with fill="currentColor"; the icon page's downloads follow its Grid switch, and npm has the 20 and 24 px drawings too. The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. More in how to use.

With npm: import { HeartIcon } from '@gentleface/react'; (setup).

Meaning

Use it for
like, love, likes, heart suit, loved
Alternatives
  • thumbs-up: like, where the product's hearts mean favorite
Don’t confuse with
Also fits
  • like comment: like a post or item
  • liked by: the like action itself
  • reaction: a single like reaction
  • favorite: favorite, where the product uses hearts
Not for
  • health (use heart-pulse): the heart motif does not mean health
Tags
favorite, love, like
Category
Social & emotions
Component name
HeartIcon
History
  • added
  • 20 px drawn, 24 px drawn
  • released in 0.1.0
Since
version 0.1.0

Family 10

More social & emotions icons

For agents

Metadata: /icons/heart.json · Markdown: /icons/heart.md · SVG: https://gentleface.com/svg/{style}/16/heart.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/heart.png