feat: add 5 modern light themes (Catppuccin Latte, GitHub Light, Tokyo Night Day, Solarized Light, One Light)

This commit is contained in:
2026-09-24 00:27:14 +08:00
parent e543ee6283
commit b351057f5f
5 changed files with 270 additions and 7 deletions
+140
View File
@@ -140,6 +140,146 @@ export const THEMES = {
brightWhite: '#ffffff',
},
},
'catppuccin-latte': {
name: 'Catppuccin Latte (浅色)',
themeName: 'catppuccin-latte',
xterm: {
background: '#eff1f5',
foreground: '#4c4f69',
cursor: '#dc8a78',
cursorAccent: '#eff1f5',
selectionBackground: '#ccd0da',
selectionForeground: '#4c4f69',
black: '#5c5f77',
red: '#d20f39',
green: '#40a02b',
yellow: '#df8e1d',
blue: '#1e66f5',
magenta: '#ea76cb',
cyan: '#179299',
white: '#acb0be',
brightBlack: '#6c6f85',
brightRed: '#d20f39',
brightGreen: '#40a02b',
brightYellow: '#df8e1d',
brightBlue: '#1e66f5',
brightMagenta: '#ea76cb',
brightCyan: '#179299',
brightWhite: '#bcc0cc',
},
},
'github-light': {
name: 'GitHub Light (浅色)',
themeName: 'github-light',
xterm: {
background: '#ffffff',
foreground: '#24292f',
cursor: '#0969da',
cursorAccent: '#ffffff',
selectionBackground: '#b6e3ff',
selectionForeground: '#24292f',
black: '#24292f',
red: '#cf222e',
green: '#1a7f37',
yellow: '#9a6700',
blue: '#0969da',
magenta: '#8250df',
cyan: '#1b7c83',
white: '#6e7781',
brightBlack: '#57606a',
brightRed: '#a40e26',
brightGreen: '#116329',
brightYellow: '#633c01',
brightBlue: '#0550ae',
brightMagenta: '#6639ba',
brightCyan: '#114c53',
brightWhite: '#8c959f',
},
},
'tokyo-night-day': {
name: 'Tokyo Night Day (浅色)',
themeName: 'tokyo-night-day',
xterm: {
background: '#e1e2e7',
foreground: '#3760bf',
cursor: '#3760bf',
cursorAccent: '#e1e2e7',
selectionBackground: '#b7c1e3',
selectionForeground: '#3760bf',
black: '#e9e9ed',
red: '#f52a65',
green: '#587539',
yellow: '#8c6c3e',
blue: '#2e7de9',
magenta: '#9854f1',
cyan: '#007197',
white: '#6172b0',
brightBlack: '#a1a6c5',
brightRed: '#f52a65',
brightGreen: '#587539',
brightYellow: '#8c6c3e',
brightBlue: '#2e7de9',
brightMagenta: '#9854f1',
brightCyan: '#007197',
brightWhite: '#3760bf',
},
},
'solarized-light': {
name: 'Solarized Light (浅色)',
themeName: 'solarized-light',
xterm: {
background: '#fdf6e3',
foreground: '#657b83',
cursor: '#586e75',
cursorAccent: '#fdf6e3',
selectionBackground: '#eee8d5',
selectionForeground: '#586e75',
black: '#073642',
red: '#dc322f',
green: '#859900',
yellow: '#b58900',
blue: '#268bd2',
magenta: '#d33682',
cyan: '#2aa198',
white: '#eee8d5',
brightBlack: '#002b36',
brightRed: '#cb4b16',
brightGreen: '#586e75',
brightYellow: '#657b83',
brightBlue: '#839496',
brightMagenta: '#6c71c4',
brightCyan: '#93a1a1',
brightWhite: '#fdf6e3',
},
},
'one-light': {
name: 'One Light (浅色)',
themeName: 'one-light',
xterm: {
background: '#fafafa',
foreground: '#383a42',
cursor: '#526fff',
cursorAccent: '#fafafa',
selectionBackground: '#e5e5e6',
selectionForeground: '#383a42',
black: '#383a42',
red: '#e45649',
green: '#50a14f',
yellow: '#c18401',
blue: '#4078f2',
magenta: '#a626a4',
cyan: '#0184bc',
white: '#a0a1a7',
brightBlack: '#4f525d',
brightRed: '#e06c75',
brightGreen: '#98c379',
brightYellow: '#e5c07b',
brightBlue: '#61afef',
brightMagenta: '#c678dd',
brightCyan: '#56b6c2',
brightWhite: '#ffffff',
},
},
};
class ThemeManager {