# Healing Icons > 3,504 open-source (MIT) SVG icons in 4 styles (outline, outline-duo, fill, glyph-duo), with packages for React, Vue, Svelte, Angular, React Native, Web Components and plain SVG. Current version: 0.9.0. - Icon names are English kebab-case (`arrow-left`). Components are PascalCase + `Icon` (`ArrowLeftIcon`; names starting with a digit become `Icon2fa`). - Packages: `@healing-icons/react`, `@healing-icons/vue`, `@healing-icons/svelte`, `@healing-icons/angular`, `@healing-icons/react-native`, `@healing-icons/elements`, `healing-icons`. All share one version and the same icons. - Import a style entry: `import { HeartIcon } from "@healing-icons/react/fill"` (`outline` is the default entry). - Props everywhere: `size`, `color`, `secondaryColor` (duo styles), `strokeWidth`, `absoluteStrokeWidth`, `title` (without it the icon is aria-hidden). - Find a name: `npx healing-icons search --json`, or read `healing-icons/icons.json` (link below). - Icon font: `@healing-icons/font` (TTF/WOFF2 per style, ligatures: `heart` or ``; fixed code points in `codepoint` of icons.json). See [Icon font](https://healing-icons.vercel.app/docs#font). - Never invent icon names; search first. Old names of renamed icons still work but are deprecated. ## Docs - [Full documentation](https://healing-icons.vercel.app/docs.md): install, every framework, props, CDN, sprites, animations, accessibility - [Getting started](https://healing-icons.vercel.app/docs#getting-started) - [Styles](https://healing-icons.vercel.app/docs#styles) - [React](https://healing-icons.vercel.app/docs#react) - [Vue](https://healing-icons.vercel.app/docs#vue) - [Svelte](https://healing-icons.vercel.app/docs#svelte) - [Angular](https://healing-icons.vercel.app/docs#angular) - [React Native](https://healing-icons.vercel.app/docs#react-native) - [Web Components](https://healing-icons.vercel.app/docs#web-components) - [SVG files, CDN and sprites](https://healing-icons.vercel.app/docs#svg) - [Icon font](https://healing-icons.vercel.app/docs#font) - [Editor and design tools](https://healing-icons.vercel.app/docs#tools) - [Props](https://healing-icons.vercel.app/docs#props) - [Icon names from data](https://healing-icons.vercel.app/docs#dynamic) - [App-wide defaults](https://healing-icons.vercel.app/docs#defaults) - [Animations](https://healing-icons.vercel.app/docs#animations) - [Search from code and the terminal](https://healing-icons.vercel.app/docs#search) - [AI coding assistants](https://healing-icons.vercel.app/docs#ai) - [Renamed icons](https://healing-icons.vercel.app/docs#renamed) - [Accessibility](https://healing-icons.vercel.app/docs#accessibility) - [Icon design guidelines](https://healing-icons.vercel.app/docs#design) - [Troubleshooting](https://healing-icons.vercel.app/docs#troubleshooting) ## Icons - [Icon library](https://healing-icons.vercel.app/): search and preview every icon - [Icon page](https://healing-icons.vercel.app/icons/heart): one page per icon at /icons/, with code for every framework - [icons.json](https://cdn.jsdelivr.net/npm/healing-icons@0.9.0/icons.json): name, component, category, styles, tags, aliases and icon font code point of every icon ## Optional - [What's new](https://healing-icons.vercel.app/whats-new): icons added and removed per release - [Everything in one file](https://healing-icons.vercel.app/llms-full.txt) --- # Healing Icons documentation Source: https://healing-icons.vercel.app/docs ## Getting started Healing Icons has 3,504 icons in 4 styles. Pick the package for your stack: every package has the same icons, names and options. | Framework | Package | | --- | --- | | React | `@healing-icons/react` | | Vue | `@healing-icons/vue` | | Svelte | `@healing-icons/svelte` | | Angular | `@healing-icons/angular` | | React Native | `@healing-icons/react-native` | | Web Component | `@healing-icons/elements` | | Plain SVG / sprite | `healing-icons` | | Icon font | `@healing-icons/font` | Icon names are English kebab-case, like `arrow-left`. Components use PascalCase with an `Icon` suffix: `ArrowLeftIcon` (names that start with a digit get a prefix instead: `Icon2fa`). Find names with the search on the [icon library](https://healing-icons.vercel.app/), or press `Ctrl` `K` there. ## Styles - `outline` - `outline-duo` - `fill` - `glyph-duo` Every package exposes the styles as entry points: `…/outline` (the default), `…/outline-duo`, `…/fill` and `…/glyph-duo`. Icons are drawn on an 18 × 18 grid; outline icons use a 1.5 stroke. Single-color icons use `currentColor`, so they follow the text color unless you set `color`. **Duo** styles have a second layer you can recolor with `secondaryColor`. ## React ```sh npm install @healing-icons/react ``` Like.jsx: ```jsx import { HeartIcon } from "@healing-icons/react"; // outline (default) import { HeartIcon as HeartFill } from "@healing-icons/react/fill"; export function Like({ liked }) { return liked ? : ; } ``` Each icon is its own module, so bundlers only ship the icons you import. You can also import a single file: `import HeartIcon from "@healing-icons/react/outline/HeartIcon"`. Components forward `ref` and pass other props (`className`, `onClick`, `aria-*`) to the ``. They work in Server Components. ## Vue ```sh npm install @healing-icons/vue ``` Like.vue: ```vue ``` Vue 3.3 or newer. Props can be written in kebab-case (`secondary-color`, `stroke-width`). `class`, `style` and listeners such as `@click` fall through to the ``. ## Svelte ```sh npm install @healing-icons/svelte ``` Like.svelte: ```svelte {#if liked} {:else} {/if} ``` Svelte 5. Single-icon imports (`…/ ``` Every file is also on jsDelivr and unpkg. Pin a version in production. An `` can't follow the text color; use the icon as a CSS mask for that: CDN: ``` ``` **Sprites** put many icons in one file. Build one with just the icons you need, then reference them with ``: terminal: ```sh npx healing-icons sprite heart star arrow-left --style outline --out public/icons.svg ``` index.html: ```html ``` On the [icon library](https://healing-icons.vercel.app/), **Select** icons to download them as a ZIP of SVG files or as a sprite. ## Icon font `@healing-icons/font` has every icon as a font, one per style. Type an icon's name and it turns into the icon: in Figma, Word, PowerPoint and anywhere else that supports ligatures. Each icon also has a fixed code point for Windows apps and plain HTML. - [Healing Icons Outline (.ttf)](https://cdn.jsdelivr.net/npm/@healing-icons/font@0.9/dist/healing-icons-outline.ttf) - [Healing Icons Outline Duo (.ttf)](https://cdn.jsdelivr.net/npm/@healing-icons/font@0.9/dist/healing-icons-outline-duo.ttf) - [Healing Icons Fill (.ttf)](https://cdn.jsdelivr.net/npm/@healing-icons/font@0.9/dist/healing-icons-fill.ttf) - [Healing Icons Glyph Duo (.ttf)](https://cdn.jsdelivr.net/npm/@healing-icons/font@0.9/dist/healing-icons-glyph-duo.ttf) - [All font files (TTF, WOFF2, CSS)](https://cdn.jsdelivr.net/npm/@healing-icons/font@0.9/dist/) **Install.** Windows: right-click the `.ttf` files → **Install for all users**. macOS: open each file → **Install Font**. Restart the apps that should see them; Figma in the browser needs the Figma font helper (desktop app: nothing to add). **Figma, Word, PowerPoint.** Pick a font such as **Healing Icons Outline** and type the icon's name in lowercase: `heart`, `arrow-left`, `user-plus`. Nothing shows until the name is complete; then size and color work like any text. In Word, if the name stays as text, turn on **Font → Advanced → Ligatures: Standard Only**, or type the code point (`e631`) and press `Alt` `X`. **Web.** Install the package (or use the CDN), then use a class per icon or type the name: terminal: ```sh npm install @healing-icons/font ``` index.html: ```html ``` `hi-font-outline`, `hi-font-outline-duo`, `hi-font-fill` and `hi-font-glyph-duo` pick the style; size and color follow `font-size` and `color`, and the [animation classes](https://healing-icons.vercel.app/docs#animations) work too. Font icons are text to a screen reader: keep `aria-hidden="true"` and name icon-only buttons with `aria-label`. **Windows apps (WinUI, WPF, UWP).** Use the code point shown in each icon's **Font** tab (also `codepoint` in `healing-icons/icons.json`). Code points never change, and the same code point is the same icon in all 4 styles. MainWindow.xaml: ```xaml ``` > **Limits.** Strokes are fixed at 1.5: use the SVGs or components to change them. The duo styles draw their faded layer as a COLRv1 color layer in the text color (Chrome, Edge, Firefox, Windows 11); Safari and apps without color fonts show the single-color version. A font loads every icon of its style (300–480 KB as WOFF2), so on the web prefer the components when you can. ## Editor and design tools - **VS Code**: Search icons with previews and insert them as code for the file you're in (`Ctrl` `Alt` `I`), with the import added. Hover an icon name to see it. [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=hoanghuilinh.healing-icons-vscode) - **Icon font**: Install the fonts, then type an icon's name in Figma, Word or PowerPoint and it turns into the icon. Also CSS classes for the web and code points for WinUI and WPF. [Download and set up](https://healing-icons.vercel.app/docs#font) terminal: ```sh code --install-extension hoanghuilinh.healing-icons-vscode ``` ## Props The same options in every package. React Native accepts numbers only for `size`; the web component takes them as kebab-case attributes. | Prop | Default | Description | | --- | --- | --- | | `size` | `24` | Width and height (number or CSS length) | | `color` | `currentColor` | Icon color; single-color icons follow the text color | | `secondaryColor` | `color` | Color of the second layer of duo icons | | `strokeWidth` | `1.5` | Stroke width of outline icons, in grid units (18 per icon) | | `absoluteStrokeWidth` | `false` | Treat strokeWidth as pixels, the same at every size | | `title` | | Accessible name; without it the icon is hidden from screen readers | ## Icon names from data Every package exports an `IconName` type (a union of all names) and `IconStyle`. When the icon is only known at runtime (CMS, config), `DynamicIcon` loads it on demand: React: ```jsx import { DynamicIcon, type IconName } from "@healing-icons/react/dynamic"; function MenuItem({ icon, label }: { icon: IconName; label: string }) { return (
  • } /> {label}
  • ); } ``` Vue and Svelte: `DynamicIcon` from `…/dynamic` (with a `fallback` slot / snippet). Angular: `` from `@healing-icons/angular/dynamic`. Web component: the lazy build always loads by name. > Prefer static imports when you can. With `DynamicIcon`, every icon becomes a lazy chunk of your build (React Native's Metro bundles all of them), and showing one costs an extra request. ## App-wide defaults Set `size`, `color`, `secondaryColor`, `strokeWidth` or `absoluteStrokeWidth` once for every icon; props on an icon still win. `variant` picks the default style of `DynamicIcon`, so a whole app can switch from outline to fill in one place. React / React Native: ```jsx import { HealingIconsProvider } from "@healing-icons/react"; ``` Vue: ```js import { createApp } from "vue"; import { createHealingIcons } from "@healing-icons/vue"; createApp(App).use(createHealingIcons({ size: 20, strokeWidth: 1.75 })).mount("#app"); ``` > In Next.js and other React Server Components setups, the provider applies to icons rendered in client components; icons in Server Components use their own props. ## Animations Every package ships `animations.css`. Import it once, then add a class: `hi-spin`, `hi-spin-reverse`, `hi-pulse` (spins in 8 steps), `hi-beat`, `hi-fade`, `hi-bounce`, `hi-shake`, `hi-wiggle` or `hi-float`. Try them in the icon dialog on the [library](https://healing-icons.vercel.app/). React: ```jsx import "@healing-icons/react/animations.css"; import { LoaderIcon, BellIcon } from "@healing-icons/react"; ``` index.html: ```html ``` Tune them with custom properties on the icon or a parent: `--hi-animation-duration`, `--hi-animation-delay`, `--hi-animation-iteration-count`, `--hi-animation-timing`, plus `--hi-beat-scale`, `--hi-fade-opacity` and `--hi-bounce-height`. Animations stop for people who ask for reduced motion. React Native has no CSS: use `Animated` or Reanimated. ## Search from code and the terminal The website's search (synonyms, small typos, Vietnamese, old names) is also a command and a module: terminal: ```sh npx healing-icons search shopping cart npx healing-icons search trash --style fill --limit 5 --json ``` search.js: ```js import { rankIcons } from "healing-icons/search"; import icons from "healing-icons/icons.json" with { type: "json" }; rankIcons(icons, "giỏ hàng", (icon) => icon).slice(0, 5).map((icon) => icon.name); ``` ## AI coding assistants Point your assistant at [/llms.txt](https://healing-icons.vercel.app/llms.txt): it lists these docs as plain markdown ([/docs.md](https://healing-icons.vercel.app/docs.md), [/llms-full.txt](https://healing-icons.vercel.app/llms-full.txt)), so answers come from the current version instead of stale training data. Assistants that can run commands can find icons with `npx healing-icons search --json` (see above), which returns names, component names, styles and tags. ## Renamed icons When an icon is renamed, its old name keeps working as a deprecated alias: the old component, SVG file, `DynamicIcon` name and web component name all render the new icon, and editors strike through the old import. The icon's page lists its former names, and old links redirect. Aliases are removed only in a major version; the [changelog](https://healing-icons.vercel.app/whats-new) lists every rename. ## Accessibility Icons are decorative by default: they're hidden from screen readers (`aria-hidden`). When an icon carries meaning on its own, give it a `title` (`label` on the web component) and it becomes an image with that name. React: ```jsx // Icon-only button: name the button, keep the icon decorative. // Icon that stands alone ``` Three rules cover most cases. **Decorative** (next to visible text): leave it as is. **Icon-only control** (a button or link with no text): put the name on the control with `aria-label`, not on the icon. **Status icon** (meaning without text, like a warning in a table cell): give the icon a `title`. Keep icons at least 16 px, and give interactive ones a 24 × 24 px target or larger (44 px on touch screens). Icons follow the text color, so text contrast rules apply: 3:1 against the background for icons that carry meaning. Animated icons stop for people who ask for reduced motion. ## Icon design guidelines For contributors and for checking icons exported from Figma. Every icon is drawn on an **18 × 18** grid (`viewBox="0 0 18 18"`) with about 1.5 units of padding for most shapes. Names are English kebab-case (`arrow-left`), one folder per style and category: `icons/