/** * Terminal colour themes (ported from dev-hq `types/terminal.ts`, stripped of the * void/plasma/neural "Post-Interface" palette). These are plain xterm theme objects * — a consumer can pass any object of the same shape to ``. */ /** An xterm.js-compatible colour theme. Matches xterm's `ITheme` shape. */ export interface TerminalTheme { background: string foreground: string cursor: string cursorAccent: string selectionBackground: string selectionForeground: string // Standard ANSI colours black: string red: string green: string yellow: string blue: string magenta: string cyan: string white: string // Bright ANSI colours brightBlack: string brightRed: string brightGreen: string brightYellow: string brightBlue: string brightMagenta: string brightCyan: string brightWhite: string } /** * A small map of neutral, framework-agnostic terminal themes. `dark` is the default * (a classic VS Code-style dark palette) — the app-specific dev-hq palette is gone. */ export const TERMINAL_THEMES: { dark: TerminalTheme; light: TerminalTheme } = { dark: { background: '#1E1E1E', foreground: '#D4D4D4', cursor: '#FFFFFF', cursorAccent: '#1E1E1E', selectionBackground: '#264F78', selectionForeground: '#FFFFFF', black: '#000000', red: '#CD3131', green: '#0DBC79', yellow: '#E5E510', blue: '#2472C8', magenta: '#BC3FBC', cyan: '#11A8CD', white: '#E5E5E5', brightBlack: '#666666', brightRed: '#F14C4C', brightGreen: '#23D18B', brightYellow: '#F5F543', brightBlue: '#3B8EEA', brightMagenta: '#D670D6', brightCyan: '#29B8DB', brightWhite: '#FFFFFF', }, light: { background: '#FFFFFF', foreground: '#333333', cursor: '#000000', cursorAccent: '#FFFFFF', selectionBackground: '#ADD6FF', selectionForeground: '#000000', black: '#000000', red: '#CD3131', green: '#00BC00', yellow: '#949800', blue: '#0451A5', magenta: '#BC05BC', cyan: '#0598BC', white: '#555555', brightBlack: '#666666', brightRed: '#CD3131', brightGreen: '#14CE14', brightYellow: '#B5BA00', brightBlue: '#0451A5', brightMagenta: '#BC05BC', brightCyan: '#0598BC', brightWhite: '#A5A5A5', }, } /** Connection state a consumer feeds into the terminal chrome's status indicator. */ export type TerminalStatus = 'disconnected' | 'connecting' | 'connected' | 'error'