Skip to content

Commit 95d3c80

Browse files
committed
main
1 parent 8c639c2 commit 95d3c80

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

docs/.vitepress/config.mts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ const vitepressConfig = defineConfig({
1717
markdown: {
1818
lineNumbers: true,
1919
theme: {
20-
// light: await themeService.getTheme('Eva Light'),
20+
light: await themeService.getTheme('Eva Light'),
2121
// dark: await themeService.getTheme('Eva Dark'),
22-
light: 'light-plus',
23-
dark: 'dark-plus',
22+
dark: await themeService.getTheme('JetBrains Rider Dark Theme'),
2423
},
2524
codeTransformers: [transformerTwoslash()],
2625
},

docs/services/ThemeService.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ const themeInfos = {
3131
path: 'VSCode/themes/Eva-Dark.json',
3232
branch: 'master',
3333
},
34+
'JetBrains Rider Dark Theme': {
35+
repo: 'edsulaiman/jetbrains-rider-dark-theme',
36+
path: 'themes/JetBrains Rider Dark Theme-color-theme.json',
37+
branch: 'main',
38+
},
3439
} satisfies Record<string, RemoteThemeInfo>;
3540

3641
export type ThemeName = keyof typeof themeInfos;
@@ -44,7 +49,7 @@ class ThemeService implements IThemeService {
4449
const foo = theme.tokenColors.filter(x => x.scope.startsWith('comment'))[0];
4550
foo.settings.fontStyle = '';
4651
}
47-
this.innerThemeService.loadTheme(theme);
52+
await this.innerThemeService.loadTheme(theme);
4853
}
4954
async getTheme(name: ThemeName): Promise<shiki.ThemeRegistration> {
5055
if (!this.isThemeRegistered(name)) throw new Error(`Theme \`${name}\` not registered.`);

0 commit comments

Comments
 (0)