From 2310f6160404914c7245c3178bc8f0f0532b2caf Mon Sep 17 00:00:00 2001 From: Ole Mussmann Date: Thu, 20 Feb 2025 21:00:16 +0100 Subject: make mermaid themes configurable --- wiki/features/other-parameters.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'wiki') diff --git a/wiki/features/other-parameters.md b/wiki/features/other-parameters.md index 2c4cfb0..136698e 100644 --- a/wiki/features/other-parameters.md +++ b/wiki/features/other-parameters.md @@ -89,4 +89,10 @@ You can easily generate favicons using [this website](https://realfavicongenerat ## Mermaid Diagrams -Mermaid diagrams are supported by theme, just follow [this reference](https://gohugo.io/content-management/diagrams/#mermaid-diagrams) to use them. \ No newline at end of file +Mermaid diagrams are supported, just follow [this reference](https://gohugo.io/content-management/diagrams/#mermaid-diagrams) to use them. You can set Mermaid's light- and dark themes in your config; they switch with your blog's light/dark state. These are the defaults: + +```toml +[params] +mermaidTheme = "default" +mermaidDarkTheme = "dark" +``` -- cgit v1.2.3