Create or replace style
set_styleCreate or replace a reusable style in a mapnotes graph by ID, then assign it to nodes or edges via their style field to control colors, shapes, icons, arrows, widths, and line styles.
Instructions
Create or replace (by id) a reusable style in the graph styles. Assign it via the "style" field of nodes/edges. Colors are CSS colors, e.g. "#7aa2f7". Fields marked "Nodes only" / "Edges only" are rejected for the other target.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| icon | No | Nodes only, icon drawn inside the node. A full-color brand logo from svgl by its library file name without .svg (https://svgl.app), e.g. "slack", "linear", "github_dark"; or a Lucide line icon as "lucide:<name>" (https://lucide.dev/icons), e.g. "lucide:folder", "lucide:bug" | |
| name | No | ||
| size | No | Nodes only, in px, 8-300 (default 36) | |
| arrow | No | Edges only, target arrow shape | |
| color | No | Node fill / edge line color | |
| curve | No | Edges only | |
| shape | No | Nodes only | |
| width | No | Edges only, line width in px, 1-20 | |
| target | Yes | ||
| iconSize | No | Nodes only, icon size as a percentage of the node, 10-100 (default 70) | |
| iconColor | No | Nodes only, color of Lucide icons (default: black or white to suit the fill) | |
| lineStyle | No | Edges only | |
| textColor | No | ||
| borderColor | No | Nodes only | |
| borderWidth | No | Nodes only, outline width in px, 0-20 (default 2) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Current graph file; null when the graph is in memory only | |
| style | Yes |