<p align="center">
  <a href="https://healing-icons.vercel.app">
    <img src="https://healing-icons.vercel.app/logo.png" width="72" height="72" alt="Healing Icons logo">
  </a>
</p>

<h1 align="center">@healing-icons/font</h1>

<p align="center">3,500+ icons in 4 styles as icon fonts. Type a name, get the icon: in Figma, Office, Windows apps and on the web. MIT.</p>

<p align="center">
  <a href="https://www.npmjs.com/package/@healing-icons/font"><img src="https://img.shields.io/npm/v/@healing-icons/font?color=047857&label=npm" alt="npm version"></a>
  <img src="https://img.shields.io/npm/l/@healing-icons/font?color=047857" alt="MIT license">
  <img src="https://img.shields.io/badge/styles-outline%20%C2%B7%20outline--duo%20%C2%B7%20fill%20%C2%B7%20glyph--duo-10b981" alt="4 styles">
</p>

<p align="center"><a href="https://healing-icons.vercel.app"><b>Browse all icons →</b></a></p>

Also available: plain SVG files in [`healing-icons`](https://www.npmjs.com/package/healing-icons) · components for
React, Vue, Svelte, Angular, React Native and web components ([docs](https://healing-icons.vercel.app/docs))

| Style | Font family | Files |
| --- | --- | --- |
| outline | Healing Icons Outline | `dist/healing-icons-outline.ttf` / `.woff2` |
| outline-duo | Healing Icons Outline Duo | `dist/healing-icons-outline-duo.ttf` / `.woff2` |
| fill | Healing Icons Fill | `dist/healing-icons-fill.ttf` / `.woff2` |
| glyph-duo | Healing Icons Glyph Duo | `dist/healing-icons-glyph-duo.ttf` / `.woff2` |

## Figma, Word, PowerPoint

1. Download the `.ttf` files ([jsDelivr](https://cdn.jsdelivr.net/npm/@healing-icons/font/dist/)) and install them
   (Windows: right-click → *Install for all users*; macOS: open → *Install Font*). Restart Figma.
2. Pick the font for a text layer and type an icon's name in lowercase: `heart`, `arrow-left`, `user-plus`.
   The name turns into the icon. Change its size and color like any text.

Nothing shows while the name is incomplete; renamed icons still work under their old names.

## Web

```bash
npm install @healing-icons/font
```

```js
import "@healing-icons/font";   // or "@healing-icons/font/css"
```

or from a CDN:

```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@healing-icons/font@0.9/dist/healing-icons.css">
```

```html
<i class="hi-font-outline hi-heart" aria-hidden="true"></i>   <!-- class per icon -->
<i class="hi-font-fill" aria-hidden="true">heart</i>          <!-- ligature -->
<button><i class="hi-font-outline hi-trash" aria-hidden="true"></i> Delete</button>
```

`hi-font-outline`, `hi-font-outline-duo`, `hi-font-fill`, `hi-font-glyph-duo` pick the style; size and color follow
`font-size` and `color`. Works with the classes from `healing-icons/animations.css` (`hi-spin`, `hi-beat`, …).

## Windows apps (WinUI, WPF, UWP)

Every icon has a fixed code point (`dist/codepoints.json`, also `codepoint` in `healing-icons/icons.json`):

```xml
<!-- WinUI 3: copy the .ttf to Assets/ -->
<FontIcon FontFamily="/Assets/healing-icons-outline.ttf#Healing Icons Outline" Glyph="&#xE631;" />   <!-- heart -->
```

Code points never change between versions, and the same code point is the same icon in all 4 styles.

## Good to know

- Strokes are fixed at the 1.5 width of the SVGs. To change it, use the SVGs or components.
- The duo styles draw their faded layer as a COLRv1 color layer in the text color (Chrome, Edge, Firefox,
  Windows 11). Apps without color fonts (Safari, older apps) show the opaque parts only.
- Prefer the SVG/components where you can: an icon font loads every icon of the style (about 300–480 KB as
  WOFF2) and screen readers need `aria-hidden` or a label.

[Docs](https://healing-icons.vercel.app/docs#font) · [Changelog](https://unpkg.com/@healing-icons/font/CHANGELOG.md) ·
License: MIT © Hoang Huy Linh
