Iconography

From event4u-app/agent-config · View interactive version

Iconography is an AI agent skill from the GitHub repository event4u-app/agent-config. Resolve an icon request to an Iconify name and emit the stack's embedding. Use when adding icons, picking an icon set, or wiring Lucide/Heroicons/Phosphor/Tabler.

How to use this skill

Skill file

iconography

Resolve an icon request to a verified Iconify name (set:name) and emit the

correct embedding for the project's stack — CSS class, inline SVG, or

framework component — while keeping icon-set usage consistent across the UI.

When to use

Procedure

  1. Identify the icon need — what does the icon communicate? Name the semantic

intent (e.g., "download action", "warning state", "user profile") rather than

visual description alone.

  1. Choose the icon set — three rungs, and record which one answered. The

set is chosen, never inherited: adopting one because a scaffold shipped it

is the anti-pattern CODE0

§ What this gates names by name. Stop at the first rung that answers.

1. A brand token or brand guide that names an icon set — authoritative,

stop here (brand-source-of-truth).

2. The set already in use in this project — detected at the Inspect step

of the Iconography floor below. One icon system per project; a second

visual language is the defect, not a preference.

3. **Neither exists → select from the open candidates by the criterion the

surface actually imposes, and state which criterion decided it.** The

candidates, unordered: Heroicons, Lucide, Phosphor, Tabler.

| Criterion the surface imposes | Candidates that satisfy it |

|---|---|

| Several stroke weights inside one UI (thin captions, bold empty states) | Phosphor (six weights) |

| One uniform stroke across a dense admin UI | Lucide, Tabler |

| First-party match to a component library the project already adopted | Heroicons (Tailwind UI), Lucide (shadcn/ui) |

| Widest glyph coverage for domain-specific nouns | Tabler, Phosphor |

Two criteria pointing at different candidates is a real trade-off — name it

and pick one; do not split the UI across both. Brand and provider marks are

a separate axis and use lobe-icons (lobe-icons:openai-color) whatever

the UI set is.

  1. Resolve to a concrete Iconify name in set:name format, e.g.

lucide:arrow-right, heroicons:user-solid, ph:warning-bold,

tabler:download. Verify the name exists on

iconify.design before emitting.

  1. Emit the embedding matched to the stack:
  1. Verify — check the resolved name on iconify.design/icon/{set}:{name};

confirm the icon renders as expected before shipping.

Which set each stack ships with — an observation, not a pick

Recorded so rung 2 above can recognise an incumbent. Finding one of these in a

project is rung-2 evidence. Reaching for it because the stack is new skips

rung 3 and is exactly the scaffold inheritance

CODE0 forbids.

| Stack / consumer | Ships with |

|---|---|

| react-shadcn-ui | Lucide |

| blade-ui | Heroicons (Tailwind first-party) |

| tailwind-engineer | none of its own — any web-font-friendly set |

Iconography floor (design fidelity)

Before resolving any new icon, honour the project's existing icon system — the

Inspect stage of the

design-artifact lifecycle.

set:name usages, brand assets) before picking one. A new icon matches the

incumbent set's **stroke weight, fill style, corner radius, size, and

metaphor** — do not introduce a second visual language (see

CODE0).

⚙️/🔔/✅ for a real icon in a product/admin/marketing surface (functional

CLI/status markers are a different context, out of scope here).

or brand mark, use it — do not hand-author a one-off SVG that drifts from the

system. Hand-rolling is for a genuinely missing glyph, and then it matches the

set's grid + stroke — read the grid, stroke and padding off the set's OWN

SVGs and author it under CODE0, which

checks the result instead of trusting that it matched.

brand mark does not exist in the set, pick the nearest and **state the

substitution** ("no exact 'sync' glyph in Heroicons; used arrow-path") rather

than silently approximating or inventing. (fixtures: daf-emoji-as-icon,

daf-fake-svg-logo.)

Output format

  1. Iconify name — set:name string, e.g. lucide:arrow-right.
  2. Embedding snippet — the ready-to-paste code for the project's stack

(CSS class, inline SVG, or component import + usage).

  1. Set/consistency note — which set was chosen, why, and whether it matches

the icons already in use in this codebase.

Gotcha

different stroke weights and visual rhythm; mixing them without a deliberate

brand reason produces a jarring result. Audit the existing set before

introducing a second one.

(camelCase) or heroicons:user (missing -solid/-outline suffix) resolves

to nothing at render time — the slot is empty with no error. Always verify on

iconify.design before committing the snippet.

Do NOT

reason and a note in the set/consistency output.

the bundle cost is orders of magnitude higher than a single Iconify CDN include.

Iconify registry; a plausible-sounding name that doesn't exist renders as

nothing.

See also

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.