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 authored and sidharthv96 committed Nov 9, 2023
1 parent 1fa8de2 commit 8db9700
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 8db9700

Please sign in to comment.