--- name: generate-icons description: Generates a complete, original icon library that matches your project's design system. It reads the project's tokens, theme, fonts and the icons already in use, derives a style sheet (grid, stroke or fill, tones, radius, states, palette), proves it with a small sample next to the real UI, then draws every icon by hand as SVG and ships framework components (React, Vue, Svelte, React Native or plain SVG), standalone SVGs, a sprite, a self-contained review catalog and a README, all validated. Use it whenever someone wants custom icons, an icon set or icon pack, icons that match their brand or design system, to replace emoji or generic placeholder icons, product-specific icons (menu, product types, statuses, empty states, landing page), or types /generate-icons, even if they never say "library". Also covers duotone, outline, solid, 3D gradient, app-icon, flat, pixel and hand-drawn styles for projects with no design system yet. --- # generate-icons Build an icon library that looks like it was always part of this project. The center of the work is **matching the person's design system**: read what the project already says about color, shape, weight and type, turn that into an explicit style sheet, prove it on a few icons, and only then draw the whole set. The eight starter styles are adjustment references and the fallback for projects with no system yet, not the main path. Everything you draw is original. You write every path yourself on the style's grid. Never copy paths from icon packages (Lucide, Heroicons, Phosphor, Material, SF Symbols, Font Awesome, Tabler, or any other) and never redraw third-party brand marks freehand. See `references/licensing.md` and `references/third-party-marks.md`. ## Language Write files (style sheet, source, README) in English unless the project's own docs are in another language. Talk to the person, and ask every interview question, in the language they write in. ## Files you will use | Path | When | |------|------| | `scripts/scan_design_system.py` | Step 1. Reads tokens, themes, fonts, icon libraries, radius, dark mode. | | `scripts/inventory.py` | Step 4. Proposes icon candidates from menus, routes, enums, emoji. | | `scripts/export_reference_icons.py` | Step 5. Exports a few icons the project already uses, for the side-by-side check. | | `scripts/validate.py` | After every drawing pass. Must pass before a build is shown. | | `scripts/build.py` | Builds the package, the catalog, or a style gallery. | | `references/style-detection.md` | Step 1-2. How evidence turns into style parameters, and when to ask. | | `references/interview.md` | Step 2-3. The questions, with options, including the no-design-system branch. | | `references/source-format.md` | Writing `icon-style.json` and `icons.json`. | | `references/drawing-guide.md` | Before drawing anything. Grid, keylines, legibility, path craft. | | `references/styles/