Skip to content

@jsvision/core / ThemeRole

Interface: ThemeRole

Defined in: color/theme.ts:15

A foreground/background pair (+ optional hotkey accent) for a UI surface.

Properties

attrs?

readonly optional attrs?: 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

readonly bg: Color

Defined in: color/theme.ts:17


fg

readonly fg: Color

Defined in: color/theme.ts:16


hotkey?

readonly optional hotkey?: Color

Defined in: color/theme.ts:19

Accent color for a highlighted hotkey character, when the role has one.