diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-21 13:03:26 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-21 13:03:26 +0000 |
| commit | f1f5fa394a67a789914ccf2b24d534a0e466ae1b (patch) | |
| tree | e7b981cc7c35a0f50b900d43ec19a4e3500fd59a /bundle/src/editor.js | |
| parent | 23cc0711cc35db9b3251bd02d5abf64eb3634fd6 (diff) | |
refactor(bundle): drive all UI colors from the 2026 Dark theme variables
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Diffstat (limited to 'bundle/src/editor.js')
| -rw-r--r-- | bundle/src/editor.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bundle/src/editor.js b/bundle/src/editor.js index e351c9d..adfc90c 100644 --- a/bundle/src/editor.js +++ b/bundle/src/editor.js @@ -32,6 +32,8 @@ export const theme = { tokenColors: [{ settings: { foreground: dark.colors['editor.foreground'], background: dark.colors['editor.background'] } }, ...dark.tokenColors] }; +for (const [key, value] of Object.entries(dark.colors)) document.documentElement.style.setProperty(`--vscode-${key.replaceAll('.', '-')}`, value); + class TokenState { constructor(stack) { this.stack = stack; } clone() { return new TokenState(this.stack); } |
