Skip to content

@comfit/wasm / Theme

Interface: Theme

Defined in: types.ts:67

Theme data supplied directly to the WASM engine for validation.

Properties

default?

readonly optional default?: ThemeStyle

Defined in: types.ts:71

Base style inherited by tokens.


lineHighlight?

readonly optional lineHighlight?: ThemeStyle

Defined in: types.ts:77

Style applied to source lines selected for emphasis.


name?

readonly optional name?: string

Defined in: types.ts:69

Display name. Named-theme CSS properties use the keys in the theme map instead.


rainbow?

readonly optional rainbow?: readonly ThemeColor[]

Defined in: types.ts:75

Bracket colors wrapped by depth. An empty palette disables theme bracket colors.


styles?

readonly optional styles?: Readonly<Record<string, ThemeStyle>>

Defined in: types.ts:73

Capture styles keyed by dotted query capture names.