# @docusaurus/theme-mermaid

> Mermaid components for Docusaurus.

Latest version **3.10.2** (published 2026-07-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @docusaurus/theme-mermaid
pnpm add @docusaurus/theme-mermaid
yarn add @docusaurus/theme-mermaid
bun add @docusaurus/theme-mermaid
```

## Health

**Score 80/100 (A)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; popular repo; extremely popular.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 3.10.2 |
| Published | 2026-07-10 |
| First published | 2022-10-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=20.0 |
| Dependencies | 7 |
| Unpacked size | 25.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 66346 |
| Maintainers | fb, slorber, lex111, docusaurus-bot |

## Links

- npm: https://www.npmjs.com/package/@docusaurus/theme-mermaid
- Repository: https://github.com/facebook/docusaurus
- Homepage: https://github.com/facebook/docusaurus#readme
- Issues: https://github.com/facebook/docusaurus/issues
- npm.io page: https://npm.io/package/@docusaurus/theme-mermaid

## Dependencies (7)

- [tslib](https://npm.io/package/tslib.md) ^2.6.0
- [mermaid](https://npm.io/package/mermaid.md) >=11.6.0
- [@docusaurus/core](https://npm.io/package/@docusaurus/core.md) 3.10.2
- [@docusaurus/types](https://npm.io/package/@docusaurus/types.md) 3.10.2
- [@docusaurus/theme-common](https://npm.io/package/@docusaurus/theme-common.md) 3.10.2
- [@docusaurus/utils-validation](https://npm.io/package/@docusaurus/utils-validation.md) 3.10.2
- [@docusaurus/module-type-aliases](https://npm.io/package/@docusaurus/module-type-aliases.md) 3.10.2

## Recent versions

- 3.10.2 (latest) — 2026-07-10
- 4.0.0-canary-6881 (canary) — 2026-10-02
- 3.9.2-alpha.4 (alpha) — 2026-03-20
- 3.0.0-rc.1 (next) — 2023-10-26
- 4.0.0-canary-6880 — 2026-10-02
- 4.0.0-canary-6879 — 2026-10-02
- 4.0.0-canary-6877 — 2026-10-02
- 4.0.0-canary-6875 — 2026-10-02
- 4.0.0-canary-6874 — 2026-10-01
- 4.0.0-canary-6873 — 2026-10-01
- 4.0.0-canary-6872 — 2026-10-01
- 4.0.0-canary-6870 — 2026-10-01
- 4.0.0-canary-6869 — 2026-10-01
- 4.0.0-canary-6868 — 2026-10-01
- 4.0.0-canary-6866 — 2026-10-01
- … 771 more at https://npm.io/package/@docusaurus/theme-mermaid/versions

## README

# `@docusaurus/theme-mermaid`

The mermaid components for Docusaurus.

## Installation

Add `docusaurus/theme-mermaid` to your package:

```bash
npm i @docusaurus/theme-mermaid
# or
yarn add @docusaurus/theme-mermaid
```

## Swizzling components

```bash
$ npm swizzle @docusaurus/theme-mermaid [component name]
```

All components used by this theme can be found [here](https://github.com/facebook/docusaurus/tree/main/packages/docusaurus-theme-mermaid/src/theme)

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