feat: add xterm and Monokai Pro themes, set xterm as default

- Add classic xterm theme with VGA colors and black background
- Add Monokai Pro theme (standard variant)
- Rename old monokai to ristretto (Monokai Pro Ristretto)
- Fix ristretto colors to match official palette
- Set xterm as default theme
- Bump version to 0.6.0
This commit is contained in:
GitHub Copilot
2026-01-28 08:24:01 +00:00
parent ad22ef0882
commit 0408564b0e
3 changed files with 52 additions and 4 deletions
File diff suppressed because one or more lines are too long
+50 -2
View File
@@ -16,7 +16,31 @@ const DEFAULT_FONT_FAMILY =
/** Predefined terminal themes */
const THEMES: Record<string, ITheme> = {
// Monokai Pro Ristretto - default theme
// Classic xterm - default theme (VGA colors, pure black background)
xterm: {
background: "#000000",
foreground: "#e5e5e5",
cursor: "#e5e5e5",
cursorAccent: "#000000",
selection: "#4d4d4d",
black: "#000000",
red: "#cd0000",
green: "#00cd00",
yellow: "#cdcd00",
blue: "#0000cd",
magenta: "#cd00cd",
cyan: "#00cdcd",
white: "#e5e5e5",
brightBlack: "#4d4d4d",
brightRed: "#ff0000",
brightGreen: "#00ff00",
brightYellow: "#ffff00",
brightBlue: "#0000ff",
brightMagenta: "#ff00ff",
brightCyan: "#00ffff",
brightWhite: "#ffffff",
},
// Monokai Pro
monokai: {
background: "#2d2a2e",
foreground: "#fcfcfa",
@@ -40,6 +64,30 @@ const THEMES: Record<string, ITheme> = {
brightCyan: "#78dce8",
brightWhite: "#fcfcfa",
},
// Monokai Pro Ristretto (warmer variant)
ristretto: {
background: "#2d2525",
foreground: "#fff1f3",
cursor: "#fff1f3",
cursorAccent: "#2d2525",
selection: "#403838",
black: "#2c2525",
red: "#fd6883",
green: "#adda78",
yellow: "#f9cc6c",
blue: "#f38d70",
magenta: "#a8a9eb",
cyan: "#85dacc",
white: "#f9f8f5",
brightBlack: "#655761",
brightRed: "#fd6883",
brightGreen: "#adda78",
brightYellow: "#f9cc6c",
brightBlue: "#f38d70",
brightMagenta: "#a8a9eb",
brightCyan: "#85dacc",
brightWhite: "#f9f8f5",
},
// Dark themes
dark: {
background: "#1e1e1e",
@@ -335,7 +383,7 @@ class WebTerminal {
scrollback: config.scrollback ?? 1000,
cursorBlink: true,
cursorStyle: "block",
theme: config.theme ?? THEMES.monokai,
theme: config.theme ?? THEMES.xterm,
wasmPath,
};