f
ansiStyle(spec: string): string
One style spec as an SGR prefix — fg=yellow, fg=8, fg=#e5c07b, fg=red,bold.
f
theme(colour?: boolean): Theme
The palette to draw with: the defaults, with anything the developer has set on top.
I
Theme
A palette, keyed by the capture names nvim's treesitter highlighting uses.
-
painter(capture: string): (text: string) => string
The function that paints text in a capture's colour — kleur's shape, one function per colour.
Usage
import * as mod from "lib/repl/theme.ts";