Introducing a new way to review your PRs.

Read the announcement

remix-design / remixicon

Open source neutral style icon system

View on GitHub

5 documents · Updated Nov 16, 2026

docs / icons-collection

Icons Collection

Overview

The canonical Remix Icon source assets live under icons/, grouped by human-facing category directories such as icons/Arrows/, icons/Business/, icons/Design/, icons/Logos/, icons/System/, and icons/Weather/. These directories are the source collection that ships in the published npm package: package.json includes icons/ in its files allowlist, so every SVG committed under icons/** is part of the package payload alongside fonts/.

Most categories store each icon concept as a pair of one-line SVG files named <icon-name>-line.svg and <icon-name>-fill.svg. For example, icons/…/arrow-left-line.svg and icons/…/arrow-left-fill.svg are separate outline/filled drawings for the same arrow-left concept, both using <svg viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">. The same convention applies to category directories including icons/System/, icons/Design/, icons/Logos/, icons/Map/, and icons/Weather/. Some visually simple concepts can have identical fill and line paths, as shown by icons/…/add-line.svg and icons/…/add-fill.svg, but the pair still exists to preserve the public icon naming surface.

icons/Editor/ is the main naming exception: editor commands are stored as unsuffixed files such as icons/…/bold.svg, icons/…/align-left.svg, and icons/…/table-view.svg rather than -line/-fill pairs. Treat these as single-style icon IDs. Other category names can include spaces or ampersands, for example icons/Game & Sports/, icons/Health & Medical/, and icons/User & Faces/; keep those directory names stable because they are mirrored in the search metadata.

tags.json is the search/index metadata for the collection. Its top-level keys match the icon categories under icons/ (Arrows, Buildings, Business, Communication, Design, Development, Device, Document, Editor, Finance, Food, Game & Sports, Health & Medical, Logos, Map, Media, System, User & Faces, Weather, Others) plus _comment. Each category maps an icon base name to a comma-separated keyword string, often mixing English and Chinese search terms. For paired categories the metadata key is the base name without the style suffix, e.g. tags.json has Arrows.arrow-left for both icons/…/arrow-left-line.svg and icons/…/arrow-left-fill.svg; for icons/Editor/, the metadata key matches the unsuffixed file name, e.g. bold for icons/…/bold.svg.

Path-routing guidance for changes under this doc's globs:

  • Changes to icons/…/*.svg are icon source changes. Verify the file stays in the intended category, preserves the SVG wrapper convention (viewBox="0 0 24 24", fill="currentColor", SVG namespace), and follows the category's naming pattern.
  • Adding or removing a paired icon in directories such as icons/Arrows/, icons/Design/, icons/Logos/, or icons/System/ should usually add/remove both -line.svg and -fill.svg for the same base name, then update the matching category entry in tags.json.
  • Adding or removing an editor command under icons/Editor/ should use a single unsuffixed .svg file and update the Editor object in tags.json with the same base name.
  • Moving an icon between categories is not just a path change: also move its metadata entry between the corresponding tags.json category objects, and preserve category directory names with spaces/ampersands exactly when applicable.
  • Changes only to tags.json affect search/discovery metadata, not SVG geometry. Review them against the existing icon file names under icons/ so search terms do not point at missing icons or omit newly added ones.

Coupling

  • If an SVG is added, deleted, renamed, or moved under icons/, also update tags.json: search metadata is keyed by category and icon base name, so a missing or stale tag entry makes the website/package search inconsistent with the source assets.
  • If a new category directory is introduced under icons/, add a matching top-level object in tags.json; category names such as Game & Sports, Health & Medical, and User & Faces are literal keys, so punctuation or spacing drift creates a second category instead of updating the existing one.
  • If the paired -line.svg/-fill.svg convention changes in any paired category, verify downstream package consumers that address icons by file name under icons/; package.json publishes the raw icons/ tree, so file name churn is public API churn.
  • If editing icons/Editor/, do not apply the paired-icon rule blindly: icons/Editor/ uses unsuffixed SVG names while tags.json stores the same unsuffixed base names.

Risks

  • tags.json can silently drift from icons/**: if icons/…/github-fill.svg or its paired line file were renamed without changing the Logos.github metadata key, search/index consumers would still advertise the old base name while the package ships a different path.
  • Category directory names with spaces and punctuation, especially icons/Game & Sports/, icons/Health & Medical/, and icons/User & Faces/, are easy to mistype in scripts or manual moves; if a category is renamed without the same literal key change in tags.json, icons can appear under one category in the file tree and another in search metadata.