2022-11-24 08:06:06AM
This commit is contained in:
parent
d084b8d96e
commit
c55ea5a4d5
2 changed files with 11 additions and 0 deletions
|
|
@ -70,6 +70,8 @@ defendants.chesscom -> hans: 72 page report of cheating
|
||||||
|
|
||||||
<img src="./docs/assets/syntax.png" alt="D2 render example" />
|
<img src="./docs/assets/syntax.png" alt="D2 render example" />
|
||||||
|
|
||||||
|
> Rendered with the TALA layout engine.
|
||||||
|
|
||||||
> For more examples, see [./docs/examples](./docs/examples).
|
> For more examples, see [./docs/examples](./docs/examples).
|
||||||
|
|
||||||
## Quickstart
|
## Quickstart
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,15 @@
|
||||||
`d2themes` defines themes for D2. You can add a new one in `./d2themescatalog`, give a
|
`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.
|
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:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
d2 --theme 102 --watch example-twitter.d2 out-twitter.svg
|
||||||
|
```
|
||||||
|
|
||||||
|
Run `d2 --help` or `man d2` for more.
|
||||||
|
|
||||||
|
|
||||||
# Themes overview
|
# Themes overview
|
||||||
|
|
||||||
<img src="../docs/assets/themes_overview.png" />
|
<img src="../docs/assets/themes_overview.png" />
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue