#2560 Adding dark mode to allowed options in directives

This commit is contained in:
Knut Sveidqvist
2021-12-15 00:19:04 +01:00
parent 9c12502a36
commit 036f9dc359
2 changed files with 13 additions and 1 deletions

View File

@@ -12,11 +12,22 @@
</style> </style>
</head> </head>
<body> <body>
<div class="mermaid"> <div class="mermaid2">
%%{init: { 'themeCSS': '} * { background: lightblue }' } }%% %%{init: { 'themeCSS': '} * { background: lightblue }' } }%%
flowchart TD flowchart TD
a --> b a --> b
</div> </div>
<div class="mermaid">
%%{init:{"theme":"base", "themeVariables": {"primaryColor":"#411d4e", "titleColor":"white", "darkMode":true}}}%%
flowchart LR
subgraph A
a --> b
end
subgraph B
i -->f
end
A --> B
</div>
<script src="./mermaid.js"></script> <script src="./mermaid.js"></script>
<script> <script>
function showFullFirstSquad(elemName) { function showFullFirstSquad(elemName) {

View File

@@ -37,6 +37,7 @@ const config = {
themeCSS: undefined, themeCSS: undefined,
/* **maxTextSize** - The maximum allowed size of the users text diamgram */ /* **maxTextSize** - The maximum allowed size of the users text diamgram */
maxTextSize: 50000, maxTextSize: 50000,
darkMode: false,
/** /**
* | Parameter | Description | Type | Required | Values | * | Parameter | Description | Type | Required | Values |