Skip to content

Commit

Permalink
Merge pull request #21 from Samarium150/master
Browse files Browse the repository at this point in the history
fix: load Shiki theme directly
  • Loading branch information
alexanderdavide authored Sep 8, 2024
2 parents 8f2bba9 + 3e6b27a commit 6cf5f54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup/shiki.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { defineShikiSetup } from '@slidev/types';

export default defineShikiSetup(async ({ loadTheme }) => {
export default defineShikiSetup(() => {
return {
theme: {
dark: await loadTheme(require.resolve('theme-vitesse/themes/vitesse-dark.json')),
light: await loadTheme(require.resolve('theme-vitesse/themes/vitesse-light.json')),
dark: 'vitesse-dark',
light: 'vitesse-light',
},
};
});

0 comments on commit 6cf5f54

Please sign in to comment.