ooai_llm.tui.themes

Theme palettes for the optional Textual explorer.

Purpose:

Keep visual choices out of the TUI event wiring so the app can offer multiple usable terminal looks without becoming a wall of CSS.

Design:

Themes are intentionally simple named palettes. They avoid third-party theme packages for now because Textual CSS is enough for the current app and the TUI extra should stay lightweight.

Attributes

Classes

TUITheme

Named color palette used to render the Textual explorer.

Functions

tui_theme_css(→ str)

Return Textual CSS for a named explorer theme.

Module Contents

ooai_llm.tui.themes.TUIThemeName[source]
ooai_llm.tui.themes.TUI_THEME_CHOICES: tuple[TUIThemeName, Ellipsis] = ('paper', 'slate', 'mono', 'forest')[source]
class ooai_llm.tui.themes.TUITheme[source]

Named color palette used to render the Textual explorer.

screen_bg: str[source]
screen_fg: str[source]
header_bg: str[source]
header_fg: str[source]
footer_bg: str[source]
footer_fg: str[source]
card_bg: str[source]
card_border: str[source]
table_bg: str[source]
table_border: str[source]
detail_bg: str[source]
detail_border: str[source]
focus: str[source]
active_bg: str[source]
active_fg: str[source]
summary: str[source]
status: str[source]
notes: str[source]
ooai_llm.tui.themes.TUI_THEMES: dict[TUIThemeName, TUITheme][source]
ooai_llm.tui.themes.tui_theme_css(theme: TUIThemeName = 'paper') str[source]

Return Textual CSS for a named explorer theme.