Skip to content
Xerobi Icons

Contributing

How to contribute to Xerobi Icons: the kinds of contribution that help most, the one-time setup, and the path an icon takes from idea to release.

Last updated

Thank you for helping. The most useful contributions are new icons, fixes to how an icon looks in one weight, and clear bug reports. This page is the map; each step has its own page.

I want to… Read
Know whether my icon belongs here Icon eligibility
Add an icon Adding an icon
Fix an icon that looks wrong in a weight Fixing a weight
Rename an icon or merge duplicates Renaming or retiring an icon
Review someone else’s icon Review checklist
Learn the rules Design principles, language and specification
Draw in my design tool Figma, Illustrator, Inkscape, Affinity

Set up

You need uv (it installs Python and the build dependencies) and Bun.

git clone https://github.com/xerobi/xerobi-icons
cd xerobi-icons
uv sync --project tooling/generator
bun install
cd tooling/generator
uv run scripts/icon.py --help

The path of an icon

  1. Search for the concept (icon.py search). If it exists, improve its tags instead.
  2. Check eligibility. Is it a concept many products need, and is the artwork yours?
  3. Name it by what it means, not how it looks (naming).
  4. Scaffold it with icon.py new, and draw it on the 256 × 256 grid.
  5. Check it with icon.py check and look at all six weights with icon.py weights.
  6. Open a pull request with only the icon’s source file, and paste the checklist from icon.py review.
  7. A reviewer runs the same tools and reads the checklist.
  8. After the merge, maintainers regenerate the packages in the next release. You do not commit generated files.

What a pull request contains

  • Only tooling/generator/icons/<name>.svg, plus aliases.json or a baseline file if a decision needed them.
  • Not packages/, svg/ or build/. These are generated, and committing them makes icon pull requests huge and conflict-prone.
  • A screenshot of the weights sheet.
  • Any exception to the rules, written down: the icon, the issue, the decision, the reason.

Reporting a problem

Use the issue templates on GitHub: Icon request for something missing, Icon looks wrong for a weight that is clogged, clipped or hard to read. Include the icon name, the weight, the size where you see it, and a screenshot.

Code and documentation

  • The Python scripts in tooling/generator/scripts use only the standard library where they can.
  • Run bun run test from the repository root before changing the generator or the packages.
  • Documentation is MDX in apps/web/src/content/docs. Every page has an “Edit this page” link.
  • Be kind. A review is about the work.

License

By contributing you agree that your work is released under the MIT license, and that you drew it yourself or have the right to contribute it. Do not trace or copy artwork from another icon library.