mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-24 17:59:39 +02:00
#2560 Adding dark mode to allowed options in directives
This commit is contained in:
@@ -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) {
|
||||||
|
@@ -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 |
|
||||||
|
Reference in New Issue
Block a user