Save icon
fabrement-save-iconAdd an icon to the site library, or replace one, from EXACTLY ONE source: svg markup, or fileKey+nodeId of a Figma node (exported as vector). id = /, group one of brand, ui, feature, social, contact, flag; ids are permanent once a block names them. The markup is sanitised and its colours turned into CSS-driven paint per colorMode. list-icons FIRST.
Rules: get-skill-doc {id:"icons-contract"} — read it before the first call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | <group>/<slug>, e.g. "ui/arrow-right". | |
| svg | No | The <svg> markup. Not with fileKey/nodeId. | |
| name | Yes | ||
| tags | No | ||
| nodeId | No | Figma node id, colon form ("12:34"). | |
| fileKey | No | Figma file key. With nodeId, instead of svg. | |
| colorMode | No | Default: original for brand/flag, mono otherwise. | |
| accentColor | No | duotone only, REQUIRED there: which of the icon's two colours (hex, as in the svg) is the accent. The other paints with CSS `color`. | |
| description | Yes | What it shows and where it fits — what list-icons shows the next session. |