fix(cli): legible output on light/white terminal backgrounds#457
Merged
blainekasten merged 2 commits intoJul 21, 2026
Conversation
Add light/dark Rich themes selected via TG_THEME/TOGETHER_CLI_THEME or COLORFGBG. Light theme uses darker brand tones and overrides dim/white so help text, examples, and pagination stay readable on white backgrounds. Co-authored-by: Blaine Kasten <blainekasten@gmail.com>
Broly Security ScanNote ✅ Clean scan Note Re-scan this PR anytime with
|
blainekasten
marked this pull request as ready for review
July 21, 2026 20:34
Push light-theme body styles to near-black, darken brand purple to violet-900, bold primary accents, and assert WCAG AAA contrast on white. Co-authored-by: Blaine Kasten <blainekasten@gmail.com>
blainekasten
force-pushed
the
blaine/eng-91023-fix-cli-output-legibility-when-used-on-a-white-background
branch
from
July 21, 2026 20:36
310d8e5 to
5090342
Compare
zainhas
approved these changes
Jul 21, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CLI help and other Rich-styled output used a dark-terminal palette (
#caaef5+ ANSIdim/white). On white backgrounds that reads as near-invisible gray.Changes
light/dark) in_console.pyTG_THEMEorTOGETHER_CLI_THEME(light|dark)COLORFGBG(bg ≥ 7 → light)darksecondary/muted/dim) → near-black (#111827/#1f2937)primary) → bold violet-900#4c1d95(~11:1 on white)[white]→#000000dimfromsecondarymutedVerify
TG_THEME=light tg beta models --help TG_THEME=dark tg beta models --help # or rely on COLORFGBG from the terminalTest plan
pytest tests/cli/test_console_theme.pypytest tests/cli/test_main.py tests/cli/test_beta_models.py