From cdc9018ec0878f22848f3d0e05f9905c8b143d84 Mon Sep 17 00:00:00 2001 From: zhangmo8 Date: Mon, 28 Oct 2024 18:29:11 +0800 Subject: [PATCH] chore: change theme to github-xx-default --- apps/www/.vitepress/theme/config/shiki.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/www/.vitepress/theme/config/shiki.ts b/apps/www/.vitepress/theme/config/shiki.ts index b8f5fb21..c03d21c3 100644 --- a/apps/www/.vitepress/theme/config/shiki.ts +++ b/apps/www/.vitepress/theme/config/shiki.ts @@ -13,8 +13,8 @@ export const highlighter = computedAsync(async (onCancel) => { const shiki = await createHighlighterCore({ engine: createJavaScriptRegexEngine(), themes: [ - () => import('shiki/themes/dark-plus.mjs'), - () => import('shiki/themes/light-plus.mjs'), + () => import('shiki/themes/github-dark-default.mjs'), + () => import('shiki/themes/github-light-default.mjs'), ], langs: [ () => import('shiki/langs/javascript.mjs'), @@ -34,8 +34,8 @@ export function highlight(code: string, lang: string) { lang, defaultColor: false, themes: { - dark: 'dark-plus', - light: 'light-plus', + dark: 'github-dark-default', + light: 'github-light-default', }, }) }