hero-extras

hero-extras

563 extra outline icons drawn to the Heroicons 24px rules, plus a browser for them

JavaScriptStarted

README

563 extra outline icons drawn to the same rules as Heroicons 24px outline: 24×24 grid, 1.5 stroke, round caps and joins, the same keylines and corner radii. A browser in site/ shows them next to the 324 Heroicons originals. It is live at https://hero-extras.io27.com.

Browse

npm run serve

Then open http://localhost:8417. Search covers names and tags. You can filter by category or by source (extras or originals), change the stroke width and size, turn on keylines, and click an icon to see it on the grid at 16–48px and copy it as SVG or JSX.

Use

Every icon is a file in icons/24/outline/. The markup is the same as Heroicons, so the icons can be dropped in wherever Heroicons are used:

<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6">
  <path stroke-linecap="round" stroke-linejoin="round" d="…"/>
</svg>

dist/icons.json lists each icon's name, category, search tags, and (for modifier variants) the base icon and modifier.

How the icons are made

DESIGN.md has the full rules. In short:

  • One stroke width. 1.5 on the root <svg>, never per path, so the stroke slider and CSS overrides keep every icon matched.
  • Safe area 2.25–21.75 for stroke centerlines, so each icon has 1.5px of padding. Circles use r=9 and squares use 16.5. A square drawn as wide as a circle looks bigger.
  • 0.75 grid, corner radius 2.25 for large shapes, 1.5 for medium, 1.125 for small.
  • Clear gaps. Strokes that don't touch keep 1.5 of empty space between them where possible, and never less than 0.75.
  • Modifiers are generated, not drawn by hand. -plus, -minus, -x-mark, -check, -arrow-up, -arrow-down and -slash are added by the build. Containers get the mark inside them, as in Heroicons' document-plus. Other icons get a corner badge, and the base drawing is cut back with a 1.5 gap around it. A slash cuts the base on both sides. Variants of original icons (heart-slash, cloud-check, bell-plus…) are built from the original Heroicons paths, so they match exactly.

Icons are written as small JavaScript in src/icons/*.js using helpers from src/lib.js (rounded rects, arcs, rounded polygons, unions, transforms). Shapes are unioned and cut with paper.js.

Choosing what to draw

The list started from concepts that both Lucide and Tabler ship and Heroicons does not (about 300 of them), plus the everyday categories that icon sites rank highly: files, devices, media, text editing, charts, commerce, weather, maps, transport, development, health, food, nature and tools.

Build

npm install
npm run build

The build writes icons/24/outline/*.svg, dist/icons.json and site/icons.js. It also lints every icon. It fails on a name clash with Heroicons or on a stroke outside 1.5–22.5. It writes warnings to dist/lint.txt for strokes that come within 2.25 of each other without touching. Some warnings are expected: strokes that meet through a third stroke, and lines kept from the original Heroicons paths.

site/review.html?size=96&names=a,b,c shows chosen icons large, for checking drawings.

Deploy

The site is static and hosted on flint as the worker hero-extras:

npm run build
flint deploy   # → https://hero-extras.io27.com

License

MIT. The original Heroicons are MIT, © Tailwind Labs, and are shown in the browser for comparison.