@jsvision/core / PALETTE
Variable: PALETTE
constPALETTE:object
Defined in: color/palette.ts:112
The classic DOS 16-color palette as ready-to-use #rrggbb colors.
Each value is a valid Color you can assign directly to a cell or a theme role; it encodes through the normal encode path (and downsamples on low-color terminals). This is the palette you build UIs with — distinct from the ANSI16_REFERENCE table above, which exists only to drive matching.
Type Declaration
black
readonlyblack:"#000000"='#000000'
blue
readonlyblue:"#0000aa"='#0000aa'
brightBlue
readonlybrightBlue:"#5555ff"='#5555ff'
brightCyan
readonlybrightCyan:"#55ffff"='#55ffff'
brightGreen
readonlybrightGreen:"#55ff55"='#55ff55'
brightMagenta
readonlybrightMagenta:"#ff55ff"='#ff55ff'
brightRed
readonlybrightRed:"#ff5555"='#ff5555'
brown
readonlybrown:"#aa5500"='#aa5500'
cyan
readonlycyan:"#00aaaa"='#00aaaa'
darkGray
readonlydarkGray:"#555555"='#555555'
green
readonlygreen:"#00aa00"='#00aa00'
lightGray
readonlylightGray:"#aaaaaa"='#aaaaaa'
magenta
readonlymagenta:"#aa00aa"='#aa00aa'
red
readonlyred:"#aa0000"='#aa0000'
white
readonlywhite:"#ffffff"='#ffffff'
yellow
readonlyyellow:"#ffff55"='#ffff55'
Example
import { PALETTE } from '@jsvision/core';
const titleFg = PALETTE.brightWhite; // '#ffffff'
const titleBg = PALETTE.blue; // '#0000aa'