Icons

Octicons Heart Icon

The Octicons Heart icon uses uses stroked lines with no fill — clean, legible, and versatile at any size. Compare it against similar icons in 27 other libraries on IconStash, adjust stroke width, change colors with a hex picker, and export at any size.

Interactive Customizer

1.5px
128px

About this icon

Use the Heart icon

Icons in the outline style — like Heart — are designed for app navigation bars, toolbar buttons, form labels, and UI controls where clarity at 16–24px is critical. Use it across health and fitness apps, medical record systems, wellness dashboards, telemedicine platforms, and patient portals for a consistent, professional look.

IconStash's editor lets you fine-tune color, size, and stroke width in real time, then export in the format that fits your workflow: SVG, PNG, JSX, or CSS background-mask.

Export formats

Copy clean SVG vectors with one click, generate custom-size PNG files from 16px to 512px, export JSX/React components ready to paste into your project, or use the icon as a CSS background-mask for flexible theming.

All exports are based on the same editable vector — so the Heart icon stays pixel-perfect at 16px, 24px, 48px, and any large marketing size.

Design & UX integration

Aesthetic characteristics

Octicons is GitHub's own icon set, so Heart is tuned for the density of GitHub's interface — small default sizes, tight shapes, and silhouettes that stay identifiable at 16px. That makes it a reliable baseline for developer tooling, code review screens and anything code-adjacent.

UX best practices

In health, fitness and clinical interfaces, the Heart icon usually sits beside a number, so align it to the same baseline as the metric and give it room. Avoid encoding severity in colour alone: red-only status fails for colour-blind users and reads as alarm fatigue in long-term tracking screens.

Use in your project

React / npm — Octicons

npm install @primer/octicons-react

import { HeartIcon } from '@primer/octicons-react';

// JSX usage:
<HeartIcon size={24} />

Copy the SVG markup directly from the IconStash editor to use the Heart icon without any npm package — paste it into HTML, JSX, or a design tool.

Inline SVG (copy & paste)

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" role="img" aria-label="heart icon"><path fill-rule="evenodd" d="M9 2c-.97 0-1.69.42-2.2 1c-.51.58-.78.92-.8 1c-.02-.08-.28-.42-.8-1c-.52-.58-1.17-1-2.2-1c-1.632.086-2.954 1.333-3 3c0 .52.09 1.52.67 2.67C1.25 8.82 3.01 10.61 6 13c2.98-2.39 4.77-4.17 5.34-5.33C11.91 6.51 12 5.5 12 5c-.047-1.69-1.342-2.913-3-3z" fill="currentColor"/></svg>

Library & related icons

About Octicons

GitHub's design-system icon library. 900+ interface icons used across GitHub.com, GitHub Desktop, GitHub Mobile, and GitHub Docs.

  • Total icons: 929+
  • Style: outline
  • License: MIT
  • npm package: @primer/octicons-react
Browse all 929 Octicons icons →

People also search for

Frequently asked questions

What is the Heart icon?

The Heart icon is a outline-style SVG icon from the Octicons library, categorized under Health. It is designed for use in health and fitness apps, medical record systems, wellness dashboards, telemedicine platforms, and patient portals. On IconStash you can preview it, customize its color and size, and export it in SVG, PNG, JSX, or CSS formats directly from your browser.

Is the Heart icon free to use?

Yes. Octicons is licensed under MIT, making it free for personal and commercial use. This means you can freely use the Heart icon in personal, commercial, and open-source projects. IconStash provides SVG and PNG access at no cost with no login required.

How do I use the Heart icon in React?

Install the package with `npm install @primer/octicons-react`, then import the component into your React file. IconStash's detail panel shows you the exact npm command, import statement, and JSX usage snippet for every icon — just click the Code tab and copy with one click.

What is the Octicons icon library?

GitHub's design-system icon library. 900+ interface icons used across GitHub.com, GitHub Desktop, GitHub Mobile, and GitHub Docs. It contains 929+ icons. IconStash indexes the complete Octicons collection alongside 27 other open-source libraries — 134,701 icons total — in a single unified search interface.

Can I download the Heart icon as a PNG?

Yes. Open the Heart icon in IconStash, set your desired pixel size (16px to 512px) in the detail panel, and click Download PNG. You can also export a multi-resolution ZIP pack containing 16, 24, 32, 48, 64, 128, 256, and 512px PNGs with a single click.

What does the outline icon style mean?

An icon in outline style uses stroked lines with no fill — clean, legible, and versatile at any size. This style is best suited for app navigation bars, toolbar buttons, form labels, and UI controls where clarity at 16–24px is critical. The Octicons Heart icon follows this visual convention throughout the Octicons design system.

Can I change the Heart icon's color and size before downloading?

Yes. In IconStash's editor panel, choose from six color presets (blue, slate, green, purple, red, teal) or enter a custom hex value. Drag the size slider (16–256px) or type an exact pixel value up to 512px. Changes apply instantly to the SVG preview, the PNG output, and the copied code.