Skip to content

Commit

Permalink
Documentation: complete available themes for d2 diagrams (#1511)
Browse files Browse the repository at this point in the history
  • Loading branch information
deining authored Apr 18, 2023
1 parent b99a464 commit 28f4250
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion docs/modules/setup/pages/diagram-options.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,11 @@ With flag set, option takes effect.
* `earth-tones` (`103`)
* `everglade-green` (`104`)
* `buttered-toast` (`105`)
* `dark-mauve` (`200`)
* `terminal` (`300`)
* `terminal-grayscale` (`301`)

| See: https://github.com/terrastruct/d2/blob/master/docs/assets/themes_overview.png
| See: https://d2lang.com/tour/themes/
|===

== GraphViz
Expand Down
5 changes: 4 additions & 1 deletion server/src/main/java/io/kroki/server/service/D2.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ public class D2 implements DiagramService {
entry("shirley-temple", 102),
entry("earth-tones", 103),
entry("everglade-green", 104),
entry("buttered-toast", 105)
entry("buttered-toast", 105),
entry("dark-mauve", 200),
entry("terminal", 300),
entry("terminal-grayscale", 301)
);

public D2(Vertx vertx, JsonObject config, Commander commander) {
Expand Down

0 comments on commit 28f4250

Please sign in to comment.