chore: change theme to github-xx-default
This commit is contained in:
parent
e80fcbf7cd
commit
cdc9018ec0
|
|
@ -13,8 +13,8 @@ export const highlighter = computedAsync<HighlighterCore>(async (onCancel) => {
|
||||||
const shiki = await createHighlighterCore({
|
const shiki = await createHighlighterCore({
|
||||||
engine: createJavaScriptRegexEngine(),
|
engine: createJavaScriptRegexEngine(),
|
||||||
themes: [
|
themes: [
|
||||||
() => import('shiki/themes/dark-plus.mjs'),
|
() => import('shiki/themes/github-dark-default.mjs'),
|
||||||
() => import('shiki/themes/light-plus.mjs'),
|
() => import('shiki/themes/github-light-default.mjs'),
|
||||||
],
|
],
|
||||||
langs: [
|
langs: [
|
||||||
() => import('shiki/langs/javascript.mjs'),
|
() => import('shiki/langs/javascript.mjs'),
|
||||||
|
|
@ -34,8 +34,8 @@ export function highlight(code: string, lang: string) {
|
||||||
lang,
|
lang,
|
||||||
defaultColor: false,
|
defaultColor: false,
|
||||||
themes: {
|
themes: {
|
||||||
dark: 'dark-plus',
|
dark: 'github-dark-default',
|
||||||
light: 'light-plus',
|
light: 'github-light-default',
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user