Agentic Mermaid

One primitive covers visual rendering: a style is a partial, composable description of palette, typography, stroke character, and fills. A style that only sets colours is a palette. Styles such as hand-drawn, watercolor, and blueprint also change renderer treatment. Styles stack left → right ({ style: ['hand-drawn', 'dracula'] } gives hand-drawn geometry with the dracula palette), the optional seed re-rolls styled ink without moving layout, and custom styles are plain JSON records. Use Custom styles for schema, complete JSON examples, and screenshots. The browser editor exposes both pickers: Style chooses renderer treatment; Palette chooses colors. SVG output can also inherit CSS variables for live palette swaps.

Built-in styles

The editor menus show the display name; render options, the CLI, and MCP tools take the stable input name. Stack a style with a palette: --style crisp,paper.

NameidBest for
CrispcrispThe default renderer with precise SVG geometry.
Hand-drawnhand-drawnBlack ink on ruled paper — wobbly double strokes, unfilled boxes.
ExcalidrawexcalidrawVirtual whiteboard style — rough strokes, pastel hachure fills.
Pen & inkpen-and-inkFine single-pass linework on warm cream — no interior hatching.
FreehandfreehandPressure-sensitive marker ribbons — variable-width filled strokes.
WatercolorwatercolorRough outlines over translucent glazes with pigment-pooled edges.
BlueprintblueprintCyanotype: white linework on Prussian blue with a drafting grid.
Tuftelook:tufteMaximal data-ink: crisp hairlines, warm paper, one red accent.
Accessible Contrastaccessible-high-contrastAccessibility-first: large labels, heavy strokes, white ground, colorblind-safe blue accent.
Patent Hatchingpatent-drawingPrint-safe patent figure: uniform ink, strong outlines, tone via oblique hatching.
Dark Ops Dashboardstatus-dashboardOperational dashboard: dark surface, rounded modules, bright status-friendly accent.
Compact Trace Mapops-schematicDense operational schematic: compact mono labels, sturdy traces, theme-friendly geometry.
ChalkboardchalkboardClassroom chalkboard: dusty off-white strokes on green slate.
Riso PrintrisographTwo-ink poster print: warm stock, offset blue linework, coral accent, coarse hachure.
Plan Draftingarchitectural-planArchitectural plan: square technical linework, uppercase mono labels, room-like frames.
Report Figurepublication-figurePolished publication figure: serif labels, confident rules, rounded boxes, one quiet accent.

Palettes

A palette is a colors-only style: pass its id alone for recoloring, or after a style id to recolor that style.


Docs index