Theme

class Theme(config=None)[source]

A theme for the renderer.

info

The color for info messages.

Type:

Color

warning

The color for warning messages.

Type:

Color

notice

The color for notice messages.

Type:

Color

error

The color for error messages.

Type:

Color

inline_code

The color for inline code.

Type:

Color

code_block_line

The color for code block lines.

Type:

Color

code_block_border

The color for code block borders.

Type:

Color

header

The color for headers.

Type:

Color

link

The color for links.

Type:

Color

image

The color for images.

Type:

Color

horizontal_rule

The color for horizontal rules.

Type:

Color

Initialize a theme.

Parameters:

config (dict) – The configuration for the theme.

code_block_border: Color = '\x1b[91m'
code_block_line: Color = '\x1b[36m'
error: Color = '\x1b[31m'
header: Color = '\x1b[32m'
horizontal_rule: Color = '\x1b[90m'
image: Color = '\x1b[94m'
info: Color = '\x1b[94m'
inline_code: Color = '\x1b[36m'
link: Color = '\x1b[94m'
notice: Color = '\x1b[93m'
warning: Color = '\x1b[33m'