Skip to content

Commit 9ec9e2c

Browse files
committed
main
1 parent 26f1447 commit 9ec9e2c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

docs/.vitepress/config.mts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ const vitepressConfig = defineConfig({
1717
markdown: {
1818
lineNumbers: true,
1919
theme: {
20-
light: await themeService.getTheme('JetBrains Rider New UI theme - Light'),
20+
// light: await themeService.getTheme('Eva Light'),
2121
// dark: await themeService.getTheme('Eva Dark'),
22+
light: await themeService.getTheme('JetBrains Rider New UI theme - Light'),
2223
dark: await themeService.getTheme('JetBrains Rider New UI theme - Dark'),
2324
},
2425
codeTransformers: [transformerTwoslash()],

docs/services/ThemeService.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ class ThemeService implements IThemeService {
8686
const [themeName, info] = x;
8787
const theme = await this.fetchThemeObject(info);
8888
if (!theme.name) theme.name = themeName; // in case the theme does not have a name to indentify itself
89+
if (themeName === 'JetBrains Rider New UI theme - Dark') {
90+
theme.tokenColors.push({
91+
scope: 'keyword.operator',
92+
settings: { foreground: '#6C95EB' },
93+
});
94+
}
8995
await this.register(theme);
9096
console.log(`Textmate theme: \`${themeName}\` has loaded.`);
9197
}),

0 commit comments

Comments
 (0)