Skip to content

Commit

Permalink
fix: set proper shiki theme for light and dark modes
Browse files Browse the repository at this point in the history
  • Loading branch information
raiman264 committed Oct 18, 2023
1 parent 907c913 commit 3e12e84
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/mermaid/src/docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
Expand Down

0 comments on commit 3e12e84

Please sign in to comment.