Skip to content

Commit 268e968

Browse files
Merge pull request #73 from OpenZeppelin/chore/update-mermaid
chore: updated mermaid.tsx
2 parents 043844b + f1c54bf commit 268e968

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/mdx/mermaid.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function MermaidContent({ chart }: { chart: string }) {
4040
securityLevel: "loose",
4141
fontFamily: "inherit",
4242
themeCSS: "margin: 1.5rem auto 0;",
43-
theme: "default",
43+
theme: resolvedTheme === "dark" ? "dark" : "default",
4444
});
4545

4646
const { svg, bindFunctions } = use(

0 commit comments

Comments
 (0)