We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6991589 + ae60562 commit 69dafb8Copy full SHA for 69dafb8
doc/footer.html
@@ -2,7 +2,13 @@
2
<script type="text/javascript" src="$relpath^mingcute.json.js"></script>
3
<script type="text/javascript" src="$relpath^panzoom.js"></script>
4
<script type="text/javascript">
5
+ let theme = "default";
6
+ // Detect browser dark mode and use dark theme for Mermaid if enabled
7
+ if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
8
+ theme = "dark";
9
+ }
10
mermaid.initialize({
11
+ theme: theme,
12
startOnLoad: true,
13
graph: {
14
useMaxWidth: true
0 commit comments