# vuepress-plugin-default-theme-mermaid

> **_Vuepress V2 plugin_**

Latest version **0.1.0** (published 2021-12-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install vuepress-plugin-default-theme-mermaid
pnpm add vuepress-plugin-default-theme-mermaid
yarn add vuepress-plugin-default-theme-mermaid
bun add vuepress-plugin-default-theme-mermaid
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2021-12-23 |
| First published | 2021-12-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 (+8 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | jcloud |
| Keywords | vuepress-plugin |

## Links

- npm: https://www.npmjs.com/package/vuepress-plugin-default-theme-mermaid
- npm.io page: https://npm.io/package/vuepress-plugin-default-theme-mermaid

## Dependencies (3)

- [mermaid](https://npm.io/package/mermaid.md) ^8.13.7
- [@vuepress/utils](https://npm.io/package/@vuepress/utils.md) ^2.0.0-beta.28
- [@vuepress/client](https://npm.io/package/@vuepress/client.md) ^2.0.0-beta.29

## Recent versions

- 0.1.0 (latest) — 2021-12-23
- 0.0.8 — 2021-12-23
- 0.0.7 — 2021-12-23
- 0.0.6 — 2021-12-23
- 0.0.5 — 2021-12-23
- 0.0.4 — 2021-12-23
- 0.0.3 — 2021-12-23
- 0.0.2 — 2021-12-23

## README

# vuepress-plugin-default-theme-mermaid

**_Vuepress V2 plugin_**

This plugin allows you to write mermaid.js diagrams in your markdown like so

```mermaid
journey
    title My working day
    section Go to work
      Make tea: : Me
      Go upstairs: 3: Me
      Do work: 1: Me, Cat
    section Go home
      Go downstairs: 5: Me
      Sit down: 5: Me
```

and have it rendered on the client side. The plugin will change the theme of
your diagrams based your vuepress theme. This is accomplished by watching for
the `dark` class on the root `html` element. This is how the default vuepress
theme swaps back and forth, but any other theme that uses a similar method
should also work.

---
_Source: https://npm.io/package/vuepress-plugin-default-theme-mermaid · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
