theme(colour?: boolean): Theme
The palette to draw with: the defaults, with anything the developer has set on top.
QUNITX_REPL_THEME='@string=fg=green @keyword=fg=magenta,bold' — entries separated by spaces,
the style spelled the way zsh and nvim both spell it, so a value copied from either works.
Every style is empty where the session has no colour — piped, redirected, or NO_COLOR — so a
.cat into a file is the file and a scripted session is text a script can compare. colour
says so outright, for a caller that has already made that decision by other means.
import { theme } from './theme.ts'; theme(true).painter('@string')('hi').includes('[33m'); // true — yellow, as the terminal has it theme(false).painter('@string')('hi'); // 'hi' — nothing painted where nothing reads colour