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.
SVG Requirements
| Rule | Requirement |
|---|---|
| Grid | viewBox="0 0 24 24" (no width / height required; stripped on build). |
| Colors | Use currentColor (hardcoded colors are normalized automatically, except inside <mask>). |
| Naming | Kebab-case filename (0-circle.svg → <Icon0Circle />). |
| Duotone | Mark secondary filled layers with opacity=".4" or data-layer="secondary". |
Folder Placement
Source Folders
TEXT
packages/icons/src/
├─ stroke/<name>.svg
├─ duotone/<name>.svg
└─ solid/<name>.svgBulk Import
Import a directory of SVGs into a variant folder (kebab-cased automatically):
Import CLI
BASH
pnpm import:icons ./path-to-svgs strokePer-Part Animation (data-part-anim)
Annotate individual paths with data-part-anim to drive the auto choreography (e.g. draw, draw-reverse, zoom-in, breathe, dash-march, bounce, tada):
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:
meta.json
JSON
{
"0-circle": { "category": "Numbers", "tags": ["0", "circle", "numbers"] }
}Build
BASH
pnpm build:icons
pnpm sync:website