diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 45c352aa..ede4f65a 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -17,10 +17,9 @@ const vitepressConfig = defineConfig({ markdown: { lineNumbers: true, theme: { - // light: await themeService.getTheme('Eva Light'), + light: await themeService.getTheme('Eva Light'), // dark: await themeService.getTheme('Eva Dark'), - light: 'light-plus', - dark: 'dark-plus', + dark: await themeService.getTheme('Rider Dark'), }, codeTransformers: [transformerTwoslash()], }, diff --git a/docs/services/ThemeService.ts b/docs/services/ThemeService.ts index ab8706bf..2dda2e6f 100644 --- a/docs/services/ThemeService.ts +++ b/docs/services/ThemeService.ts @@ -31,6 +31,11 @@ const themeInfos = { path: 'VSCode/themes/Eva-Dark.json', branch: 'master', }, + 'Rider Dark': { + repo: 'edsulaiman/jetbrains-rider-dark-theme', + path: 'themes/JetBrains Rider Dark Theme-color-theme.json', + branch: 'main', + }, } satisfies Record; export type ThemeName = keyof typeof themeInfos; @@ -44,7 +49,7 @@ class ThemeService implements IThemeService { const foo = theme.tokenColors.filter(x => x.scope.startsWith('comment'))[0]; foo.settings.fontStyle = ''; } - this.innerThemeService.loadTheme(theme); + await this.innerThemeService.loadTheme(theme); } async getTheme(name: ThemeName): Promise { if (!this.isThemeRegistered(name)) throw new Error(`Theme \`${name}\` not registered.`);