d2/d2themes
2023-03-09 17:51:20 +08:00
..
d2themescatalog better CLI and fixes 2023-02-20 11:11:24 +01:00
common.go fix sketch tests, better trigger system 2023-02-19 14:26:24 +01:00
d2themes.go update 2023-03-03 21:02:02 -08:00
element.go fix: should add clipPath 2023-03-09 17:51:20 +08:00
README.md 2022-11-24 08:07:22AM 2022-11-24 08:07:22 -08:00
sketch_overlay.go fix sketch tests, better trigger system 2023-02-19 14:26:24 +01: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

Color coding example

Container gradients

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