pages/_page.xnode in utopia-project-0.18.0 vs pages/_page.xnode in utopia-project-0.18.1
- old
+ new
@@ -22,12 +22,17 @@
<script src="/_static/links.js"></script>
<script type="text/javascript">
//<![CDATA[
jQuery(function($) {
- mermaid.init();
$.syntax();
});
+
+ let isDarkMode = window.matchMedia("(prefers-color-scheme: dark)").matches
+ let config = {theme: 'light'};
+ if (isDarkMode) config.theme = 'dark';
+ else config.theme = 'forest';
+ mermaid.initialize(config);
//]]>
</script>
</head>
<body>