From 87d1dd87d680a92bc935c17bf28891641c326ed5 Mon Sep 17 00:00:00 2001 From: Mark Crossfield Date: Fri, 4 Nov 2022 21:14:02 +0000 Subject: [PATCH] Use configurable mermaid theme (default `dark`) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I’ve added CSS to change edge labels to use a blurred backdrop rather than having a solid fill, as it makes them feel like entities on their own in the diagram with the theme defaults. --- _config.yml | 1 + _layouts/reveal.html | 6 +++++- _posts/0000-01-09-svg-diagrams.md | 6 ++---- assets/css/mermaid.css | 5 +++++ 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/_config.yml b/_config.yml index 31aee93..5c8d1e4 100644 --- a/_config.yml +++ b/_config.yml @@ -36,6 +36,7 @@ reveal_path: reveal.js/ # mermaid.js diagram integration mermaid_diagrams: true +mermaid_theme: dark # See https://mermaid-js.github.io/mermaid/#/theming?id=deployable-themes # Exclude directories and/or files from the conversion exclude: diff --git a/_layouts/reveal.html b/_layouts/reveal.html index 4341a8e..d990817 100644 --- a/_layouts/reveal.html +++ b/_layouts/reveal.html @@ -52,6 +52,10 @@