...
1# d2themes
2
3`d2themes` defines themes for D2. You can add a new one in `./d2themescatalog`, give a
4unique ID, and specify it in the CLI or library to see it.
5
6For example, to use the "Shirley temple" theme, which has an ID of 102:
7
8```sh
9d2 --theme 102 in.d2 out.svg
10```
11
12Run `d2 --help` or `man d2` for more.
13
14
15# Themes overview
16
17<img src="../docs/assets/themes_overview.png" />
18
19# Color coding guide
20
21To distinguish container nesting, objects get progressively lighter the more nested it is.
22
23<img src="../docs/assets/themes_coding.png" />
24
25# Color coding example
26
27<img src="../docs/assets/themes_coding_example.png" />
View as plain text