Xerobi Icons documentation
Use the icons, draw new ones, understand the design rules, and publish a release. Everything about Xerobi Icons in one place.
Last updated
Xerobi Icons is an open source icon family by Xerobi Labs: 6,054 icons in six weights, drawn on one 256 × 256 grid and released as packages for web and native platforms under the MIT license.
- House
- Magnifying Glass
- Heart
- Bell
- Gear
- User
- Envelope
- Calendar
Where to start
| I want to… | Go to |
|---|---|
| Install the icons in my project | Getting started, then your platform: React, React Native, Vue, Flutter, SwiftUI, Android |
| Use icons accessibly | Accessibility guide |
| Choose the right icon for a job | How to pick the right icon |
| Add a new icon | Contributing, then Adding an icon |
| Fix an icon that looks wrong in one weight | Fixing a weight |
| Know the rules the icons follow | Design principles, Design language and Design specification |
| Draw in Figma, Illustrator, Inkscape or Affinity | Design software |
| Publish a release | Publishing |
How the icons are built
Every icon is a single source file, tooling/generator/icons/<name>.svg, drawn with plain SVG shapes. Each shape sits in a group that says what it is for (an outline, a detail, a filled area, a hole). A build script reads those groups and produces all six weights, so the weights are always the same drawing:
- Thin
- Light
- Regular
- Bold
- Fill
- Duotone
From those outlines the build generates every package: SVG files, React, React Native, Vue and Web Components, an icon font, Flutter, SwiftUI and Jetpack Compose. Nothing generated is edited by hand. To change an icon you change its source file and rebuild. The design weights page explains the groups, and SVG conventions the file format.
What is enforced, and what is judgment
Some rules are checked by a script on every pull request: the canvas, the stroke, the live area, names, tags, duplicates, unsafe markup. They are listed in the lint rules reference. Others no script can check: whether the metaphor is right, whether the icon reads at 16 pixels, whether it sits well beside its neighbours. Those are covered by the review checklist and by reading the design principles.
Conventions in these docs
The words must and must not mark a required rule. Should and should not mark a rule that can flex when it makes a better icon, and any exception is written down. May is optional. The same wording is used in the design specification.
All sizes in the design documents are in icon units on the 256 × 256 canvas. At 24 px, one pixel is 10.667 units, so a 16-unit stroke renders 1.5 px wide.