summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/themes
diff options
context:
space:
mode:
authorJacob Richman <[email protected]>2025-08-15 20:18:31 -0700
committerGitHub <[email protected]>2025-08-16 03:18:31 +0000
commit6c1373c33212e26521701acf73c0398721b3a881 (patch)
tree6a00fb90c90b51a0c8285b21af7b174064ab6492 /packages/cli/src/ui/themes
parentd57cc0b9306f0359482ef6e243308bcda2989007 (diff)
Revert "Update semantic color tokens" (#6365)
Diffstat (limited to 'packages/cli/src/ui/themes')
-rw-r--r--packages/cli/src/ui/themes/no-color.ts2
-rw-r--r--packages/cli/src/ui/themes/semantic-tokens.ts8
-rw-r--r--packages/cli/src/ui/themes/theme.ts4
3 files changed, 13 insertions, 1 deletions
diff --git a/packages/cli/src/ui/themes/no-color.ts b/packages/cli/src/ui/themes/no-color.ts
index 4d5dc1bb..161b407e 100644
--- a/packages/cli/src/ui/themes/no-color.ts
+++ b/packages/cli/src/ui/themes/no-color.ts
@@ -43,6 +43,8 @@ const noColorSemanticColors: SemanticColors = {
focused: '',
},
ui: {
+ comment: '',
+ symbol: '',
gradient: [],
},
status: {
diff --git a/packages/cli/src/ui/themes/semantic-tokens.ts b/packages/cli/src/ui/themes/semantic-tokens.ts
index a2079934..56430304 100644
--- a/packages/cli/src/ui/themes/semantic-tokens.ts
+++ b/packages/cli/src/ui/themes/semantic-tokens.ts
@@ -25,6 +25,8 @@ export interface SemanticColors {
focused: string;
};
ui: {
+ comment: string;
+ symbol: string;
gradient: string[] | undefined;
};
status: {
@@ -53,6 +55,8 @@ export const lightSemanticColors: SemanticColors = {
focused: lightTheme.AccentBlue,
},
ui: {
+ comment: lightTheme.Comment,
+ symbol: lightTheme.Gray,
gradient: lightTheme.GradientColors,
},
status: {
@@ -81,6 +85,8 @@ export const darkSemanticColors: SemanticColors = {
focused: darkTheme.AccentBlue,
},
ui: {
+ comment: darkTheme.Comment,
+ symbol: darkTheme.Gray,
gradient: darkTheme.GradientColors,
},
status: {
@@ -109,6 +115,8 @@ export const ansiSemanticColors: SemanticColors = {
focused: ansiTheme.AccentBlue,
},
ui: {
+ comment: ansiTheme.Comment,
+ symbol: ansiTheme.Gray,
gradient: ansiTheme.GradientColors,
},
status: {
diff --git a/packages/cli/src/ui/themes/theme.ts b/packages/cli/src/ui/themes/theme.ts
index 40900deb..e46c7f48 100644
--- a/packages/cli/src/ui/themes/theme.ts
+++ b/packages/cli/src/ui/themes/theme.ts
@@ -235,7 +235,7 @@ export function createCustomTheme(customTheme: CustomTheme): Theme {
customTheme.background?.diff?.added ?? customTheme.DiffAdded ?? '',
DiffRemoved:
customTheme.background?.diff?.removed ?? customTheme.DiffRemoved ?? '',
- Comment: customTheme.text?.secondary ?? customTheme.Comment ?? '',
+ Comment: customTheme.ui?.comment ?? customTheme.Comment ?? '',
Gray: customTheme.text?.secondary ?? customTheme.Gray ?? '',
GradientColors: customTheme.ui?.gradient ?? customTheme.GradientColors,
};
@@ -397,6 +397,8 @@ export function createCustomTheme(customTheme: CustomTheme): Theme {
focused: colors.AccentBlue,
},
ui: {
+ comment: colors.Comment,
+ symbol: colors.Gray,
gradient: colors.GradientColors,
},
status: {