File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff 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 ( 'Rider Dark' ) ,
2423 } ,
2524 codeTransformers : [ transformerTwoslash ( ) ] ,
2625 } ,
Original file line number Diff line number Diff line change @@ -31,6 +31,11 @@ const themeInfos = {
3131 path : 'VSCode/themes/Eva-Dark.json' ,
3232 branch : 'master' ,
3333 } ,
34+ 'Rider Dark' : {
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
3641export 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.` ) ;
You can’t perform that action at this time.
0 commit comments