We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 043844b + f1c54bf commit 268e968Copy full SHA for 268e968
1 file changed
src/components/mdx/mermaid.tsx
@@ -40,7 +40,7 @@ function MermaidContent({ chart }: { chart: string }) {
40
securityLevel: "loose",
41
fontFamily: "inherit",
42
themeCSS: "margin: 1.5rem auto 0;",
43
- theme: "default",
+ theme: resolvedTheme === "dark" ? "dark" : "default",
44
});
45
46
const { svg, bindFunctions } = use(
0 commit comments