mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-20 18:14:29 -07:00
d25088956d
Co-authored-by: jacob314 <jacob314@gmail.com>
116 lines
2.5 KiB
TypeScript
116 lines
2.5 KiB
TypeScript
/**
|
|
* @license
|
|
* Copyright 2025 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import { lightTheme, darkTheme } from './theme.js';
|
|
|
|
export interface SemanticColors {
|
|
text: {
|
|
primary: string;
|
|
secondary: string;
|
|
link: string;
|
|
accent: string;
|
|
response: string;
|
|
};
|
|
background: {
|
|
primary: string;
|
|
message: string;
|
|
input: string;
|
|
focus: string;
|
|
diff: {
|
|
added: string;
|
|
removed: string;
|
|
};
|
|
};
|
|
border: {
|
|
default: string;
|
|
};
|
|
ui: {
|
|
comment: string;
|
|
symbol: string;
|
|
active: string;
|
|
dark: string;
|
|
focus: string;
|
|
gradient: string[] | undefined;
|
|
};
|
|
status: {
|
|
error: string;
|
|
success: string;
|
|
warning: string;
|
|
};
|
|
}
|
|
|
|
export const lightSemanticColors: SemanticColors = {
|
|
text: {
|
|
primary: lightTheme.Foreground,
|
|
secondary: lightTheme.Gray,
|
|
link: lightTheme.AccentBlue,
|
|
accent: lightTheme.AccentPurple,
|
|
response: lightTheme.Foreground,
|
|
},
|
|
background: {
|
|
primary: lightTheme.Background,
|
|
message: lightTheme.MessageBackground!,
|
|
input: lightTheme.InputBackground!,
|
|
focus: lightTheme.FocusBackground!,
|
|
diff: {
|
|
added: lightTheme.DiffAdded,
|
|
removed: lightTheme.DiffRemoved,
|
|
},
|
|
},
|
|
border: {
|
|
default: lightTheme.DarkGray,
|
|
},
|
|
ui: {
|
|
comment: lightTheme.Comment,
|
|
symbol: lightTheme.Gray,
|
|
active: lightTheme.AccentBlue,
|
|
dark: lightTheme.DarkGray,
|
|
focus: lightTheme.AccentGreen,
|
|
gradient: lightTheme.GradientColors,
|
|
},
|
|
status: {
|
|
error: lightTheme.AccentRed,
|
|
success: lightTheme.AccentGreen,
|
|
warning: lightTheme.AccentYellow,
|
|
},
|
|
};
|
|
|
|
export const darkSemanticColors: SemanticColors = {
|
|
text: {
|
|
primary: darkTheme.Foreground,
|
|
secondary: darkTheme.Gray,
|
|
link: darkTheme.AccentBlue,
|
|
accent: darkTheme.AccentPurple,
|
|
response: darkTheme.Foreground,
|
|
},
|
|
background: {
|
|
primary: darkTheme.Background,
|
|
message: darkTheme.MessageBackground!,
|
|
input: darkTheme.InputBackground!,
|
|
focus: darkTheme.FocusBackground!,
|
|
diff: {
|
|
added: darkTheme.DiffAdded,
|
|
removed: darkTheme.DiffRemoved,
|
|
},
|
|
},
|
|
border: {
|
|
default: darkTheme.DarkGray,
|
|
},
|
|
ui: {
|
|
comment: darkTheme.Comment,
|
|
symbol: darkTheme.Gray,
|
|
active: darkTheme.AccentBlue,
|
|
dark: darkTheme.DarkGray,
|
|
focus: darkTheme.AccentGreen,
|
|
gradient: darkTheme.GradientColors,
|
|
},
|
|
status: {
|
|
error: darkTheme.AccentRed,
|
|
success: darkTheme.AccentGreen,
|
|
warning: darkTheme.AccentYellow,
|
|
},
|
|
};
|