Skip to content

feat(dashboard): add Catppuccin Latte light theme with auto-detection#187

Open
chrisands wants to merge 1 commit intosantifer:mainfrom
chrisands:feat/catppuccin-latte-theme
Open

feat(dashboard): add Catppuccin Latte light theme with auto-detection#187
chrisands wants to merge 1 commit intosantifer:mainfrom
chrisands:feat/catppuccin-latte-theme

Conversation

@chrisands
Copy link
Copy Markdown

@chrisands chrisands commented Apr 11, 2026

Closes #186.

Summary

Adds a Catppuccin Latte palette to the dashboard and auto-detects the terminal background at startup so light-theme users get a readable TUI.

  • New newCatppuccinLatte() palette (Catppuccin Latte colors).
  • theme.NewTheme now accepts catppuccin-latte, catppuccin-mocha, and auto (default). auto uses termenv.HasDarkBackground().
  • Detection happens once in main() before entering the alt-screen (termenv returns wrong results inside the alt-screen) and is stored on appModel, so subsequent screen constructions reuse the same Theme instead of re-detecting.
  • github.com/muesli/termenv promoted from indirect to direct in go.mod.

Test plan

  • go build ./... in dashboard/
  • Launch on Ghostty with catppuccin-latte theme → dashboard renders in Latte palette (header/footer/body readable)
  • Launch on a dark terminal → dashboard renders in Mocha palette (unchanged from current behavior)
  • NewTheme("catppuccin-mocha") / NewTheme("catppuccin-latte") still work as explicit overrides

🤖 Generated with Claude Code

Detect terminal background at startup and select Mocha (dark) or Latte
(light) theme automatically. Store the theme once in appModel to avoid
re-detecting inside the alt-screen where termenv returns wrong results.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dashboard TUI is unreadable on light-background terminals (no light theme)

2 participants