d2/d2themes
2024-10-09 15:14:47 -06:00
..
d2themescatalog id 2023-04-13 15:20:52 -07:00
common.go fix sketch tests, better trigger system 2023-02-19 14:26:24 +01:00
d2themes.go customize theme colors in vars-config 2023-12-14 11:35:49 -08:00
element.go use inline theme 2024-10-09 15:14:47 -06:00
pattern_overlay.go implement pattern 2023-03-13 23:01:33 -07:00
README.md update readme 2023-03-13 19:50:06 -07:00
sketch_overlay.go Fixing typos 2023-04-14 07:48:22 +02: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 in.d2 out.svg

Run d2 --help or man d2 for more.

Themes overview

Color coding guide

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

Color coding example