streamdown-beautiful-mermaid
v1.0.0
Published
beautiful-mermaid plugin for Streamdown
Readme
streamdown-beautiful-mermaid
A beautiful Mermaid diagram rendering plugin for Streamdown, powered by beautiful-mermaid.
Installation
npm install streamdown-beautiful-mermaidUsage
Basic Usage in Streamdown
- import { mermaid } from "@streamdown/markdown";
+ import { mermaid } from 'streamdown-beautiful-mermaid';
Theme Variables
Configure visual appearance through themeVariables:
{
themeVariables: {
// Colors
primaryColor: '#ffffff', // Background color
primaryTextColor: '#27272A', // Foreground/text color
lineColor: '#666666', // Edge/connector color
primaryBorderColor: '#cccccc', // Border color
secondaryColor: '#f0f0f0', // Surface/fill tint
tertiaryColor: '#0066cc', // Accent color
tertiaryTextColor: '#666666', // Secondary text color
// Typography
fontFamily: 'Inter, sans-serif',
// Spacing (in pixels)
padding: 40,
nodeSpacing: 24,
layerSpacing: 40,
// Rendering
transparent: false
}
}License
MIT
