d2/d2themes
2022-11-24 08:06:06 -08:00
..
d2themescatalog Fix Everglade typo 2022-11-23 10:16:12 -08:00
d2themes.go [ci-base] cleanup 2022-11-14 19:05:23 -08:00
README.md 2022-11-24 08:06:06AM 2022-11-24 08:06:06 -08:00

d2themes

d2themes defines themes for D2. You can add a new one in ./d2themescatalog, give a unique ID, and specify it in the CLI or library to see it.

For example, to use the "Shirley temple" theme, which has an ID of 102:

d2 --theme 102 --watch example-twitter.d2 out-twitter.svg

Run d2 --help or man d2 for more.

Themes overview

Color coding guide

Color coding example

Container gradients

To distinguish container nesting, objects get progressively lighter the more nested it is.