REFERENCE

Icon Authoring

Add your own icons to a Minimalicons build. Every icon is a single SVG on a 24×24 viewBox, mirrored across the three variants.

Requires a local clone of the repository with Node.js 20+ and pnpm 9 (npm i -g pnpm).

SVG Requirements

RuleRequirement
GridviewBox="0 0 24 24" (no width / height required; stripped on build).
ColorsUse currentColor (hardcoded colors are normalized automatically, except inside <mask>).
NamingKebab-case filename (0-circle.svg → <Icon0Circle />).
DuotoneMark secondary filled layers with opacity=".4", data-layer="secondary", or class="secondary". All three are normalized identically to ai-secondary (with fill="currentColor" and stroke="none"); if none is set, all shapes become ai-primary.

Folder Placement

Source Folders
TEXT
packages/icons/src/
├─ stroke/<name>.svg
├─ duotone/<name>.svg
└─ solid/<name>.svg

Bulk Import

Import a directory of SVGs into a variant folder (kebab-cased automatically):

Import CLI
BASH
pnpm import:icons ./path-to-svgs stroke

Per-Part Animation (data-part-anim)

data-part-anim accepts part-level values that are not valid on the animation prop. Part-level values animate an individual <path>; the animation prop only accepts the 16 whole-icon values listed in Animations.

Supported data-part-anim values: draw, draw-left, draw-right, draw-top, draw-bottom, draw-reverse, draw-center, zoom-in, zoom-out, blur-in, dash-march, elastic, jitter, stroke-throb, flip-x, flip-y, rubber-band, jello, bounce, heartbeat, shake-x, shake-y, wobble, tada, fade-in, fade-up, fade-down, fade-left, fade-right, iris-open, unfold-x, unfold-y, glow, hue-cycle, neon-flicker, breathe, twinkle, swing, tick, pop, pulse, spin, float, slide-x, slide-y.

Annotated SVG
SVG
<path data-part-anim="draw" d="..." />
<path data-part-anim="zoom-in" d="..." />

Icons without data-part-anim fall back to staggered multi-path animation; solid icons fall back to tada.

Metadata & Build

Add category and search tags in packages/icons/src/meta.json, then rebuild. Each key is the kebab-case icon name with { "category": string, "tags": string[] }; categories are Title Case and case-sensitive—reuse an existing category from packages/icons/src/meta.json where possible.

meta.json
JSON
{
  "0-circle": { "category": "Numbers", "tags": ["0", "circle", "numbers"] }
}
Build
BASH
pnpm build:icons
pnpm sync:website