From viz
Activated when the user asks to set, change, or configure Mermaid diagram colors or themes, mentions theme names like Tokyo Night, Nord, Catppuccin, Dracula, GitHub, or Solarized, or asks about available color schemes for diagrams.
How this skill is triggered — by the user, by Claude, or both
Slash command
/viz:mermaid-themeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Configure color themes for Mermaid diagrams by managing the `MERMAID_COLOR_SCHEME` environment variable.
Configure color themes for Mermaid diagrams by managing the MERMAID_COLOR_SCHEME environment variable.
Use the AskUserQuestion tool with these options:
{
"questions": [
{
"question": "Which color scheme would you like to use for Mermaid diagrams?",
"header": "Color Scheme",
"multiSelect": false,
"options": [
{"label": "Tokyo Night", "description": "Deep blue-purple tones, modern dark theme"},
{"label": "Nord", "description": "Ice blue tones, arctic-inspired palette"},
{"label": "Catppuccin Mocha", "description": "Warm purple tones, cozy dark theme"},
{"label": "Catppuccin Latte", "description": "Warm tones, light theme with pastels"},
{"label": "Dracula", "description": "Purple-pink tones, high contrast dark theme"},
{"label": "GitHub Dark", "description": "Deep blue tones, familiar GitHub dark mode"},
{"label": "GitHub Light", "description": "Light blue tones, clean GitHub light mode"},
{"label": "Solarized Dark", "description": "Amber-blue tones, precision colors"},
{"label": "Custom", "description": "Provide your own hex colors"}
]
}
]
}
For built-in schemes: Map the label to scheme name (see references/color-schemes.md for mapping).
For "Custom": Ask for custom colors using AskUserQuestion:
{
"questions": [
{
"question": "What primary color would you like? (hex format, e.g., #7aa2f7)",
"header": "Primary Color",
"multiSelect": false,
"options": [
{"label": "Blue (#7aa2f7)", "description": "Tokyo Night blue"},
{"label": "Purple (#bb9af7)", "description": "Tokyo Night purple"},
{"label": "Cyan (#88c0d0)", "description": "Nord cyan"},
{"label": "Green (#a6e3a1)", "description": "Catppuccin green"}
]
}
]
}
Use the Write tool to create ~/.mermaid-theme.sh:
#!/bin/sh
# Mermaid Theme Configuration
# Generated by mermaid-theme skill
export MERMAID_COLOR_SCHEME="<scheme-name>"
For custom colors, also export:
export MERMAID_PRIMARY_COLOR="<user-color>"
export MERMAID_SECONDARY_COLOR="<optional>"
export MERMAID_TEXT_COLOR="<optional>"
Theme saved to ~/.mermaid-theme.sh
To apply now: source ~/.mermaid-theme.sh
To make permanent: add 'source ~/.mermaid-theme.sh' to your shell profile
~/.mermaid-theme.sh already exists, ask if user wants to overwrite/diagram command and mermaid-display skillreferences/color-schemes.mdnpx claudepluginhub musingfox/cc-plugins --plugin vizConfigures Mermaid plugin via interactive wizard or direct args: sets themes (15+ options + custom), output_directory/format, auto_validate/render toggles. Runs dependency health checks.
Enforces syntax rules for Mermaid diagrams in documentation: quote labels with special chars, avoid <br/> and hardcoded colors, use themes. Validates via check-mermaid.sh.
Generates Mermaid diagrams for flowcharts, sequences, states, classes, and architecture using semantic styling, shapes, and visual hierarchy.