Skip to content

Theme

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

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

The above code block will be rendered as the following diagram with the Shirley temple theme:

Diagram