summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/themes/theme.ts
diff options
context:
space:
mode:
authorMiguel Solorio <[email protected]>2025-05-08 16:00:55 -0700
committerGitHub <[email protected]>2025-05-08 16:00:55 -0700
commita685597b70242eb4c6b38d30c5356ad79418176d (patch)
treef62cf6f0322293222c76c7cefba54fcd254ac83c /packages/cli/src/ui/themes/theme.ts
parent6b0ac084b8557d3ad76a33df991b73196d792280 (diff)
UI Polish for theme selector (#294)
Diffstat (limited to 'packages/cli/src/ui/themes/theme.ts')
-rw-r--r--packages/cli/src/ui/themes/theme.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/cli/src/ui/themes/theme.ts b/packages/cli/src/ui/themes/theme.ts
index 88868790..582d2e9e 100644
--- a/packages/cli/src/ui/themes/theme.ts
+++ b/packages/cli/src/ui/themes/theme.ts
@@ -5,7 +5,11 @@
*/
import type { CSSProperties } from 'react';
+
+export type ThemeType = 'light' | 'dark' | 'ansi';
+
export interface ColorsTheme {
+ type: ThemeType;
Background: string;
Foreground: string;
LightBlue: string;
@@ -21,6 +25,7 @@ export interface ColorsTheme {
}
export const lightTheme: ColorsTheme = {
+ type: 'light',
Background: '#FAFAFA',
Foreground: '#3C3C43',
LightBlue: '#ADD8E6',
@@ -36,6 +41,7 @@ export const lightTheme: ColorsTheme = {
};
export const darkTheme: ColorsTheme = {
+ type: 'dark',
Background: '#1E1E2E',
Foreground: '#CDD6F4',
LightBlue: '#ADD8E6',
@@ -51,6 +57,7 @@ export const darkTheme: ColorsTheme = {
};
export const ansiTheme: ColorsTheme = {
+ type: 'ansi',
Background: 'black',
Foreground: 'white',
LightBlue: 'blue',
@@ -250,6 +257,7 @@ export class Theme {
*/
constructor(
readonly name: string,
+ readonly type: ThemeType,
rawMappings: Record<string, CSSProperties>,
readonly colors: ColorsTheme,
) {