Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Slick Mermaid

pasevinpasevin84 downloads

Minimal, monotone Mermaid diagrams with a larger pan / zoom viewer. Designed for the baseline theme.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates5

Opinionated, minimal, theme-adaptive Mermaid diagrams for Obsidian.

Slick Mermaid makes Mermaid diagrams feel native to whatever Obsidian theme you use. It reads the active theme's background, border, and text colors, matches diagram surfaces to the surrounding note, and adds subtle contrast so nodes and groups stay readable in both light and dark mode.

Slick Mermaid in light mode — flow and sequence diagrams

Slick Mermaid in dark mode — flow and sequence diagrams

Slick Mermaid in dark mode — class diagram and git graph

Git graph and pie chart — monotone shades

Git graph and pie chart — rainbow lanes

Demo Videos

  • Watch the light mode demo
  • Watch the dark mode demo

Install

Community Plugins

Once accepted into the Obsidian Community Plugins directory:

  1. Open Obsidian → Settings → Community plugins.
  2. Browse for Slick Mermaid.
  3. Install and enable the plugin.

Manual Install

  1. Download the latest release assets: main.js, manifest.json, and styles.css.
  2. Copy them into <vault>/.obsidian/plugins/slick-mermaid/.
  3. Open Obsidian → Settings → Community plugins.
  4. Enable Slick Mermaid.

Development Install

  1. Clone the repo.
  2. Run npm install && npm run build.
  3. Copy main.js, manifest.json, and styles.css into <vault>/.obsidian/plugins/slick-mermaid/.

Tip: Most diagram behavior lives in main.js. After syncing, reload Slick Mermaid (or reload Obsidian) so changes aren’t mistaken for CSS-only tweaks.

Repeatable sync:

export SLICK_MERMAID_VAULT=/path/to/your/VaultFolder
npm run vault:sync

Done. All Mermaid diagrams in the vault will use the new theme.


What it does

Native Obsidian Styling

  • Adapts Mermaid diagrams to the active Obsidian theme using standard theme variables.
  • Matches large diagram wrappers to the surrounding note surface, then adds subtle variation for nodes, borders, and edge-label pills.
  • Neutralizes Mermaid's explicit style / classDef colors by default so diagrams stay cohesive across themes (optional—can be disabled in settings).
  • Re-themes visible and virtualized diagrams after theme switches, without needing an Obsidian restart.
  • Disables theme-level Mermaid SVG invert filters when present, so correctly themed diagrams are not visually inverted.

Opinionated controls

Settings are grouped in the plugin tab (use Reset to defaults to restore factory settings):

  • Appearance: container corner radius, surface contrast vs. the note background, Git graph lane style (default: monotone shades; also drives pie and journey colors), Git graph branch variation, and Git graph contrast (optional extra boost, 50–150%).
  • Edge labels: padding and corner radius for connector label pills.
  • Diagram chrome: expand button visibility (hover vs always) and whether double-clicking the inline diagram opens fullscreen.
  • Compatibility: toggles for flowchart label quoting, \n → line breaks in labels, and neutralizing author style / classDef colors.

Better Mermaid compatibility

  • Patches Mermaid rendering so diagrams are themed at first paint.
  • Optional normalization of common flowchart labels before parsing, so Obsidian can accept labels like canTransfer(from, to, amount) without manual quotes.
  • Optional support for escaped newline labels like A["Smart Contracts\n(on-chain events)"], rendering real multiline nodes instead of literal \n text.
  • Themes ER diagram table rows (entityBox, attributeBoxOdd, attributeBoxEven) so table-style components do not keep white backgrounds.

Larger diagram viewer

  • Adds an expand button and optional double-click shortcut for a larger dialog.
  • Opens diagrams fitted by default.
  • Supports drag-to-pan and wheel-to-zoom for wide or dense diagrams.
  • Keeps inline Mermaid SVGs contained in the note while allowing the dialog view to zoom freely.

What it doesn't do yet

  • Per-diagram overrides
  • Per-theme presets beyond Obsidian's standard theme variables

Compatibility

Tested with:

  • Multiple light and dark Obsidian themes
  • Obsidian 1.x

Slick Mermaid should work with most Obsidian themes that expose the standard background, border, and text variables. It is no longer tuned for a single theme; the goal is to make Mermaid feel native wherever it is rendered.


Roadmap

  • Style Settings integration for color overrides
  • PNG/SVG export from fullscreen dialog

License

MIT

98%
HealthExcellent
ReviewPassed
About
Style Mermaid diagrams to match Obsidian's native theme and typography. Map Obsidian CSS variables to Mermaid so diagrams adapt to light/dark mode, use subdued fills, thin strokes and readable labels, disable theme SVG invert filters, normalize unquoted labels and escaped newlines, and provide a larger pan/zoom dialog for complex graphs.
ThemingVisualizationCSS
Details
Current version
0.1.7
Last updated
6 days ago
Created
3 weeks ago
Updates
5 releases
Downloads
84
Compatible with
Obsidian 1.5.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
pasevinpasevin
github.com/pasevin
GitHubpasevin
  1. Community
  2. Plugins
  3. Theming
  4. Slick Mermaid

Related plugins

Style Settings

Adjust theme, plugin, and snippet CSS variables.

Contextual Typography

Add a data-tag-name attribute to all top-level divs in preview mode containing the child's tag name, allowing contextual typography styling.

Advanced Canvas

Supercharge your canvas experience. Create presentations, flowcharts and more.

Minimal Theme Settings

Control the colors and fonts in Minimal Theme.

Hider

Hide interface elements such as tooltips, status bar, titlebar, and more.

Share Note

Instantly share/publish a note, with the full theme and content exactly like you see in Obsidian. Data is shared encrypted by default, and only you and the person you send it to have the key.

Mermaid Tools

Improved Mermaid.js experience: visual toolbar with common elements and more.

Maps

Adds a map layout to bases so you can display notes as an interactive map view.

Excalidraw

Visual PKM powerhouse. Create and edit Excalidraw drawings.

ExcaliBrain

An interactive, structured mind-map of your Obsidian vault.