diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 51d51585..472188aa 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -17,8 +17,9 @@ const vitepressConfig = defineConfig({ markdown: { lineNumbers: true, theme: { - light: await themeService.getTheme('JetBrains Rider New UI theme - Light'), + // light: await themeService.getTheme('Eva Light'), // dark: await themeService.getTheme('Eva Dark'), + light: await themeService.getTheme('JetBrains Rider New UI theme - Light'), dark: await themeService.getTheme('JetBrains Rider New UI theme - Dark'), }, codeTransformers: [transformerTwoslash()], diff --git a/docs/services/ThemeService.ts b/docs/services/ThemeService.ts index 0f42763a..21337365 100644 --- a/docs/services/ThemeService.ts +++ b/docs/services/ThemeService.ts @@ -86,6 +86,12 @@ class ThemeService implements IThemeService { const [themeName, info] = x; const theme = await this.fetchThemeObject(info); if (!theme.name) theme.name = themeName; // in case the theme does not have a name to indentify itself + if (themeName === 'JetBrains Rider New UI theme - Dark') { + theme.tokenColors.push({ + scope: 'keyword.operator', + settings: { foreground: '#6C95EB' }, + }); + } await this.register(theme); console.log(`Textmate theme: \`${themeName}\` has loaded.`); }),