Skip to content

StyleProps

Defined in: src/render/style.ts:10

The attributes used to build a Style (concrete colors — resolve $tokens first).

optional background?: string

Defined in: src/render/style.ts:14

Background color.


optional bold?: boolean

Defined in: src/render/style.ts:16

Bold/bright.


optional color?: string

Defined in: src/render/style.ts:12

Foreground color, e.g. "red", "#ff0000", "rgb(255,0,0)".


optional dim?: boolean

Defined in: src/render/style.ts:28

Reduced intensity.


optional italic?: boolean

Defined in: src/render/style.ts:18

Italic.


optional link?: string

Defined in: src/render/style.ts:32

Hyperlink target (OSC 8).


optional reverse?: boolean

Defined in: src/render/style.ts:26

Swap foreground and background.


optional strikethrough?: boolean

Defined in: src/render/style.ts:30

Struck-through.


optional underline?: boolean

Defined in: src/render/style.ts:20

Underline.


optional underlineColor?: string

Defined in: src/render/style.ts:24

Colour of the underline, independent of the foreground (SGR 58).


optional underlineStyle?: UnderlineStyle

Defined in: src/render/style.ts:22

Underline shape. Implies underline; defaults to single when underlined.