nx.js
Interfaces

ConsoleTheme

Color theme for the on-screen terminal. Supports the standard ANSI 16-color palette plus foreground, background, and cursor colors.

Properties

PropertyTypeDescription
background?stringThe default background color.
black?stringANSI black (eg. \x1b[30m).
blue?stringANSI blue (eg. \x1b[34m).
brightBlack?stringANSI bright black (eg. \x1b[1;30m).
brightBlue?stringANSI bright blue (eg. \x1b[1;34m).
brightCyan?stringANSI bright cyan (eg. \x1b[1;36m).
brightGreen?stringANSI bright green (eg. \x1b[1;32m).
brightMagenta?stringANSI bright magenta (eg. \x1b[1;35m).
brightRed?stringANSI bright red (eg. \x1b[1;31m).
brightWhite?stringANSI bright white (eg. \x1b[1;37m).
brightYellow?stringANSI bright yellow (eg. \x1b[1;33m).
cursor?stringThe cursor color.
cursorAccent?stringThe accent color of the cursor (fg color for a block cursor).
cyan?stringANSI cyan (eg. \x1b[36m).
extendedAnsi?string[]ANSI extended colors (16-255).
foreground?stringThe default foreground color.
green?stringANSI green (eg. \x1b[32m).
magenta?stringANSI magenta (eg. \x1b[35m).
red?stringANSI red (eg. \x1b[31m).
selection?stringThe selection background color (can be transparent).
white?stringANSI white (eg. \x1b[37m).
yellow?stringANSI yellow (eg. \x1b[33m).

On this page