Skip to content
Xerobi Icons

Design decisions

Recorded exceptions and decisions, and the findings of the audit of the existing set: what was checked, what was found, and what is still open.

Last updated

Significant exceptions and disputed calls are written down here, in the format from the design principles: icon, issue, decision, reason, alternatives, impact. Add an entry whenever an icon or a rule departs from the specification.

Decision records

DR-001: the live area is 32–224

  • Icon: all
  • Issue: a wider live area would make icons larger in the same box.
  • Decision: geometry stays inside 32–224, so a 16-unit stroke ends at 24–232 (19.5 of 24 units when scaled to a 24 px box).
  • Reason: the set is built so it sits beside Phosphor in one interface, and the same padding keeps both sets at one visual size. Changing it would resize all 6,054 icons in every product that uses them.
  • Alternatives: scale everything up (breaks every layout); ship a second, larger edition (a possible future weight family).
  • Impact: none. Consumers who want a larger look use a larger size.

DR-002: four outline weights, no 20-unit stroke

  • Issue: a 2-unit (21.3) stroke is a common default elsewhere. The set has 8, 12, 16 and 24.
  • Decision: keep 8, 12, 16 and 24.
  • Reason: regular (1.5 px at 24 px) is the reference and bold (2.25 px) covers the heavier need. An extra weight adds a sixth more files and bytes to every package and to the website’s data.
  • Impact: none.

DR-003: the source is role groups, not styled paths

  • Issue: a styled path cannot yield six weights.
  • Decision: shapes sit in <g data-role> groups that carry the presentation, and the build flattens them per weight.
  • Reason: one drawing must make every weight. See Weights and roles.
  • Impact: the source keeps its primitives; only generated output is flattened.

DR-004: width and height stay at 256

  • Decision: width="256" height="256" are kept, and the lint requires exactly that value.
  • Reason: editors and file previews that ignore the viewBox show the file at the right size.

DR-005: names follow the existing vocabulary

  • Issue: a name like cloud-upload is more direct than cloud-arrow-up.
  • Decision: keep the published names, and follow their pattern for new icons.
  • Reason: names are public API (components, symbols, URLs).

Audit of the existing set

The set was measured against these rules when the standard was adopted (lint.py, audit.py, weights.py --report).

What was found

  1. Names and structure are clean. None of the 6,054 names breaks the format; no source has scripts, images, filters, gradients, styles, ids, transforms or external references; every file uses the 256 viewBox. These rules could therefore be turned on as hard failures.
  2. Twelve groups of icons are drawn identically. Five are different concepts that share a shape (atom and react-logo, bleach and triangle, file-text and google-docs-logo, helipad and hospital-sign). Seven are near-duplicates that need a decision: clock and clock-hour-4, currency-dollar and currency-dollar-circle, currency-euro and currency-euro-circle, exclude and selection-exclude, intersect and selection-intersect, hourglass and hourglass-empty, layout-grid and squares-four. They are recorded in duplicates-baseline.json, and no new ones can be added.
  3. The fill weight equals the regular weight for 883 icons and the duotone has no tint for 885 (not counting the ones deliberately marked data-fill="outline"). Most are open-stroke icons (205 arrows, 107 editor icons) with nothing to fill, which is correct. The site marks those weights “= regular”. The list is uv run scripts/weights.py --report --list.
  4. The components were not decorative by default. They are now. This is a behaviour change.
  5. Review was only partly automated. The lint catches geometry. The checklist, the weights sheet and the pull request template cover meaning and the weights.
  6. The audit was advisory. audit.py --check now fails on new size, centring, corner and stroke outliers. Six are recorded: music-notes, paint-brush, pill, rss (size) and cloud-moon, cloud-sun (centring).
  7. Tags vary in depth. 467 icons have exactly the minimum of three tags and 759 repeat their own name as a tag.

Open work

  • Resolve the seven near-duplicate groups: alias one name, or redraw.
  • Walk the fill=regular list for icons with a closed shape that should be solid.
  • Replace the design-monks-logo icon, which is another studio’s logo.
  • Confirm that every icon is original. The construction, and many names, follow Phosphor deliberately, and the principles say not to copy another library’s artwork. Provenance has not been checked, and the Brands category (652 logos) needs its own review of trademark and source terms.
  • Say “6,000+ icons” in the headline rather than “70,000+”, which counts the same set again as Android drawables. The set is 6,054 icons in six weights, 36,324 SVG files.
  • Add tags to the 467 icons at the minimum.

Later

  • An optional larger edition with a wider live area, as a future family.
  • A hand-tuned 16 px variant only for icons that render poorly at 16 px, after measuring.
  • Animated icons, once there is a reduced-motion story.