Allow themes to theme the UI (#769)

This commit is contained in:
Miguel Solorio
2025-06-05 14:35:47 -07:00
committed by GitHub
parent 2285bba66e
commit 8a0a2523ca
33 changed files with 533 additions and 385 deletions

View File

@@ -4,7 +4,23 @@
* SPDX-License-Identifier: Apache-2.0
*/
import { lightTheme, Theme } from './theme.js';
import { lightTheme, Theme, type ColorsTheme } from './theme.js';
const ansiLightColors: ColorsTheme = {
type: 'light',
Background: 'white',
Foreground: 'black',
LightBlue: 'blue',
AccentBlue: 'blue',
AccentPurple: 'purple',
AccentCyan: 'cyan',
AccentGreen: 'green',
AccentYellow: 'orange',
AccentRed: 'red',
Comment: 'gray',
Gray: 'gray',
GradientColors: lightTheme.GradientColors,
};
export const ANSILight: Theme = new Theme(
'ANSI Light',
@@ -126,5 +142,5 @@ export const ANSILight: Theme = new Theme(
color: 'orange',
},
},
lightTheme,
ansiLightColors,
);