UAT: TUI MainScreen does not set Dracula as default theme #1333

Open
opened 2026-04-02 16:53:00 +00:00 by freemo · 0 comments
Owner

Bug Report: [tui] — Default Dracula theme is not configured in the TUI app

Severity Assessment

  • Impact: Low-Medium. The TUI will launch with Textual's default theme instead of Dracula, causing visual inconsistency with the spec mockups and color token references.
  • Likelihood: 100% reproducible.
  • Priority: Low

Location

  • File: src/cleveragents/tui/app.py_TextualCleverAgentsTuiApp class definition (lines 86–195)

Description

The specification (§Color Palette and Theming) states:

"Default theme is Dracula. All 17+ Textual built-in themes are supported and switchable via /theme <name>."

The spec also shows the settings screen with Dracula as the default:

│    Theme                   [ dracula          ]  17 themes available               │

Textual apps set their default theme via the THEME class variable (or DEFAULT_CSS with theme-specific variables). The current implementation does not set this:

class _TextualCleverAgentsTuiApp(_TextualApp):
    """Main TUI app."""

    CSS_PATH: ClassVar[str] = "cleveragents.tcss"
    BINDINGS: ClassVar[list[tuple[str, str, str]]] = [
        ("ctrl+q", "quit", "Quit"),
        ("f1", "help", "Help"),
        ("ctrl+t", "cycle_preset", "Cycle Preset"),
    ]
    # No THEME = "dracula" class variable

Actual Behavior

The TUI launches with Textual's default theme (typically textual-dark or textual-light), not Dracula.

Expected Behavior (from spec)

The app class should declare:

THEME: ClassVar[str] = "dracula"

This ensures the TUI launches with the Dracula color palette, which is referenced throughout the spec's color token definitions ($primary, $secondary, etc.).

Steps to Reproduce

  1. Run the TUI
  2. Observe the color scheme — it will not match the Dracula palette shown in spec mockups
  • #694 (feat(tui): Textual MainScreen with sidebar states and Dracula theme)

References

  • Spec §Color Palette and Theming
  • Spec §Settings Screen (ui.theme default: dracula)
## Bug Report: [tui] — Default Dracula theme is not configured in the TUI app ### Severity Assessment - **Impact**: Low-Medium. The TUI will launch with Textual's default theme instead of Dracula, causing visual inconsistency with the spec mockups and color token references. - **Likelihood**: 100% reproducible. - **Priority**: Low ### Location - **File**: `src/cleveragents/tui/app.py` — `_TextualCleverAgentsTuiApp` class definition (lines 86–195) ### Description The specification (§Color Palette and Theming) states: > "Default theme is **Dracula**. All 17+ Textual built-in themes are supported and switchable via `/theme <name>`." The spec also shows the settings screen with Dracula as the default: ``` │ Theme [ dracula ] 17 themes available │ ``` Textual apps set their default theme via the `THEME` class variable (or `DEFAULT_CSS` with theme-specific variables). The current implementation does not set this: ```python class _TextualCleverAgentsTuiApp(_TextualApp): """Main TUI app.""" CSS_PATH: ClassVar[str] = "cleveragents.tcss" BINDINGS: ClassVar[list[tuple[str, str, str]]] = [ ("ctrl+q", "quit", "Quit"), ("f1", "help", "Help"), ("ctrl+t", "cycle_preset", "Cycle Preset"), ] # No THEME = "dracula" class variable ``` ### Actual Behavior The TUI launches with Textual's default theme (typically `textual-dark` or `textual-light`), not Dracula. ### Expected Behavior (from spec) The app class should declare: ```python THEME: ClassVar[str] = "dracula" ``` This ensures the TUI launches with the Dracula color palette, which is referenced throughout the spec's color token definitions (`$primary`, `$secondary`, etc.). ### Steps to Reproduce 1. Run the TUI 2. Observe the color scheme — it will not match the Dracula palette shown in spec mockups ### Related Issues - #694 (feat(tui): Textual MainScreen with sidebar states and Dracula theme) ### References - Spec §Color Palette and Theming - Spec §Settings Screen (`ui.theme` default: `dracula`)
freemo self-assigned this 2026-04-02 18:45:22 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cleveragents/cleveragents-core#1333
No description provided.