Skip to content

@jsvision/core / defaultTheme

Variable: defaultTheme

const defaultTheme: Theme

Defined in: color/theme.ts:266

The classic DOS text-mode look — a "gray dialog / blue window" theme ready to use as-is or as the base for your own. Each role's (fg, bg) pair is a plain Color from PALETTE; roles carry no inheritance or view-mapping behavior.

Highlights: the desktop is a muted blue pattern on a steel-gray field; the default window is blue (white title/border, brightGreen icon accent) and dims to lightGray when inactive; menu and status selections are black/red on green; dialogs use a distinct gray palette (black on lightGray).

Example

ts
import { defaultTheme, encodeStyle, resolveCapabilities } from '@jsvision/core';

const caps = resolveCapabilities().profile;
const { fg, bg } = defaultTheme.menuBar;
const sgr = encodeStyle(fg, bg, 0, caps); // the menu bar's escape sequence