#2088 Add the possibility to theme forks and joins using theme variables

This commit is contained in:
Knut Sveidqvist
2021-05-23 10:42:07 +02:00
parent 529824e2b3
commit bf21aa8cd6
5 changed files with 10 additions and 8 deletions

View File

@@ -10,7 +10,7 @@
<style>
body {
/* background: rgb(221, 208, 208); */
background:#333;
/* background:#333; */
font-family: 'Arial';
/* font-size: 18px !important; */
}
@@ -66,14 +66,16 @@ stateDiagram-v2
</div>
<div class="mermaid" style="width: 100%; height: 20%;">
%%{init:{"theme":"neutral", "themeVariables": {
"specialStateColor":"red", "innerEndBackground":"lightgreen"
%%{init:{"theme":"forest", "themeVariables": {
}}}%%
%% "specialStateColor":"red", "innerEndBackground":"lightgreen"
stateDiagram-v2
state fork [[fork]]
state join [[join]]
[*] --> fork
fork --> join
fork --> Test
Test --> join
join --> [*]
</div>
<script src="./mermaid.js"></script>