v7.3.0 llm.txt Download
DocsAdding an icon

Guides · docs/guides/adding-an-icon.md

Adding an icon

  1. Name it. Add one line to src/taxonomy.txt, in the right category:

    name | the metaphor in a few words | tags | v6 names it replaces

    Object first, modifier last (file-plus, user-check). Search the taxonomy first: if the idea exists, add a tag instead of a new icon.

  2. Draw the source. Create src/icons/<category>/<name>.svg following construction. Copy a sibling and change one thing. Coordinates are stroke centrelines on the 24 grid; never set a stroke width. tools/icons/author.mjs has helpers for rotated points, stars, gears and arcs if you draw in code.

  3. Check it.

    make lint
    node tools/qa/sheet.mjs --names <name>,<sibling>,<sibling> --out qa/new.png

    Open qa/new.png. It shows 16, 20 and 24 px in all five styles, on light and dark. Compare the icon with its siblings for weight, size and centre.

  4. Build. make build regenerates build/, the taxonomy reference and the migration guide. make site refreshes the collection page.

  5. Review. Open a pull request with the source, src/taxonomy.txt, the regenerated files and the QA sheet. A second designer signs off the sheet. Lint warnings need a written reason.

Versioning: adding icons is a minor release, redrawing without a change of meaning is a patch, renaming or removing is a major release (the old name becomes an alias for at least one major version).