Skip to content

Dark theme

Use the darkTheme attribute to customize the dark theme of a diagram.

src/content/docs/example.md
```d2 theme=301 darkTheme=301
Content -> Website: Astro
```

The above code block will be rendered as the following diagram with the Terminal grayscale dark theme:

Diagram