feat(themes): let app themes set the code editor selection color (#42349)

* feat(themes): let app themes set the code editor selection color

* docs(themes): keep the editor selection translucent; rewrap
This commit is contained in:
Neil
2026-11-14 15:53:30 -08:00
committed by GitHub
parent c2c7e52c95
commit e8a2b7ddda
8 changed files with 60 additions and 11 deletions
@@ -74,7 +74,9 @@ const PLUGIN_APP_THEME_CSS_FALLBACKS: Record<
light: { tint: '--text-link', percent: 30, into: '--chat-canvas' },
dark: { tint: '--text-link', percent: 40, into: '--chat-canvas' }
},
'--chat-selection-foreground': ['--foreground']
'--chat-selection-foreground': ['--foreground'],
// Monaco paints this one, not main.css (plugin-monaco-theme.ts).
'--editor-selection': { tint: '--ring', percent: 30 }
}
export function pluginAppThemeCssFallback(