From 3e12e8408a45c87e64a0a7a1f8418d7bfb9288b8 Mon Sep 17 00:00:00 2001 From: Braulio Ruiz Date: Wed, 18 Oct 2023 10:38:07 -0600 Subject: [PATCH] fix: set proper shiki theme for light and dark modes --- packages/mermaid/src/docs/.vitepress/config.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/mermaid/src/docs/.vitepress/config.ts b/packages/mermaid/src/docs/.vitepress/config.ts index db686fd99e9..450fc6156c3 100644 --- a/packages/mermaid/src/docs/.vitepress/config.ts +++ b/packages/mermaid/src/docs/.vitepress/config.ts @@ -4,7 +4,10 @@ import { defineConfig, MarkdownOptions } from 'vitepress'; const allMarkdownTransformers: MarkdownOptions = { // the shiki theme to highlight code blocks - theme: 'github-light', + theme: { + light: 'github-light', + dark: 'github-dark' + }, config: async (md) => { await MermaidExample(md); },