StyleProps
Defined in: src/render/style.ts:10
The attributes used to build a Style (concrete colors — resolve $tokens first).
Properties
Section titled “Properties”background?
Section titled “background?”
optionalbackground?:string
Defined in: src/render/style.ts:14
Background color.
optionalbold?:boolean
Defined in: src/render/style.ts:16
Bold/bright.
color?
Section titled “color?”
optionalcolor?:string
Defined in: src/render/style.ts:12
Foreground color, e.g. "red", "#ff0000", "rgb(255,0,0)".
optionaldim?:boolean
Defined in: src/render/style.ts:28
Reduced intensity.
italic?
Section titled “italic?”
optionalitalic?:boolean
Defined in: src/render/style.ts:18
Italic.
optionallink?:string
Defined in: src/render/style.ts:32
Hyperlink target (OSC 8).
reverse?
Section titled “reverse?”
optionalreverse?:boolean
Defined in: src/render/style.ts:26
Swap foreground and background.
strikethrough?
Section titled “strikethrough?”
optionalstrikethrough?:boolean
Defined in: src/render/style.ts:30
Struck-through.
underline?
Section titled “underline?”
optionalunderline?:boolean
Defined in: src/render/style.ts:20
Underline.
underlineColor?
Section titled “underlineColor?”
optionalunderlineColor?:string
Defined in: src/render/style.ts:24
Colour of the underline, independent of the foreground (SGR 58).
underlineStyle?
Section titled “underlineStyle?”
optionalunderlineStyle?:UnderlineStyle
Defined in: src/render/style.ts:22
Underline shape. Implies underline; defaults to single when underlined.