Terminal color themes (xterm.js ITheme shape) for every surface that renders a terminal. Terminals used to be dark-only (a hardcoded #0b0b0f). They now follow the app theme by default, or a pinned preference. Structural type only: this file never imports @xterm/xterm, so it stays
// Source: https://github.com/superbasedapp/observer | License: Apache-2.0 | Copyright 2026 Gaja AI // Provided via justclaw.it.com; keep this notice with the code. // Terminal color themes (xterm.js ITheme shape) for every surface that renders // a terminal. Terminals used to be dark-only (a hardcoded #0b0b0f). They now // follow the app theme by default, or a pinned preference. // // Structural type only: this file never imports @xterm/xterm, so it stays out // of the shell bundle (xterm itself is a lazy chunk) and runs under node --test. // The panel chrome around the terminal reads the matching CSS tokens // (--term-bg / --term-chrome / --term-banner / --term-pop in tokens.css) via // data-theme-scope, so chrome and canvas always agree. export type TerminalThemeName = "dark" | "light" ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key