@jsvision/core / ThemeRole
Interface: ThemeRole
Defined in: color/theme.ts:15
A foreground/background pair (+ optional hotkey accent) for a UI surface.
Properties
attrs?
readonlyoptionalattrs?:number
Defined in: color/theme.ts:26
Optional text-attribute mask (dim/bold/italic/underline/…) applied when the role is painted. Omitted on every defaultTheme role; an attribute-driven theme (e.g. a monochrome preset) uses it to distinguish states without color. Attributes render even at mono depth.
bg
readonlybg:Color
Defined in: color/theme.ts:17
fg
readonlyfg:Color
Defined in: color/theme.ts:16
hotkey?
readonlyoptionalhotkey?:Color
Defined in: color/theme.ts:19
Accent color for a highlighted hotkey character, when the role has one.