Skip to content

feat(tui): add light theme support with auto-detection#91

Merged
Marlinski merged 1 commit intoovh:mainfrom
Ayan-sh03:dev/Ayan-sh03/light-theme-support
Oct 20, 2025
Merged

feat(tui): add light theme support with auto-detection#91
Marlinski merged 1 commit intoovh:mainfrom
Ayan-sh03:dev/Ayan-sh03/light-theme-support

Conversation

@Ayan-sh03
Copy link
Copy Markdown
Contributor

Fixes #63

Changes

  • Support SHAI_TUI_THEME environment variable (dark/light) for auto-detection on startup
  • Added /theme command with dark, light, and toggle options

How to Use

Set theme via environment variable:

SHAI_TUI_THEME=light shai

or use commands at runtime

/theme light (or dark)

Screenshots:

light theme
image

dark theme
image

Signed-off-by: Ayan ayansheikh52@gmail.com

Signed-off-by: Ayan ayansheikh52@gmail.com
@Marlinski
Copy link
Copy Markdown
Collaborator

THanks for your contribution I am merging this one!

Would be nice to have another PR for automatic background detection and theme selection.
Looking around it seems it can be achieved with special ["\e]11;?\a"](https://stackoverflow.com/questions/2507337/how-to-determine-a-terminals-background-color) there's even a small library in rust though not sure how easy it would be to use it.

@Marlinski Marlinski merged commit 10ddda4 into ovh:main Oct 20, 2025
3 checks passed
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.

enhancement: 🎨 Readable color for light mode

2 participants