Skip to main content

Module theme

Module theme 

Source
Expand description

Themes — named styles.

Port of upstream rich/theme.py + rich/default_styles.py. A Theme maps style names (e.g. "repr.number", "markdown.h1") to Styles so that markup tags and highlighters can refer to styles by name.

DEFAULT_STYLES is the complete upstream table — it is the single source of truth for named styles in this crate; nothing else should keep its own name→style map.

Structs§

Theme
A named collection of styles. Mirrors rich.theme.Theme.

Constants§

DEFAULT_STYLES
Upstream’s rich.default_styles.DEFAULT_STYLES, verbatim.