Repository navigation
Table headers are low contrast on default terminal app theme #8292
Description
Activity
Hi @jwodder sorry you are experiencing this, but I think there is a misunderstanding of the purpose of the
GLAMOUR_STYLEenvironment variable. Fromgh help environment:GLAMOUR_STYLE: the style to use for rendering Markdown. See
https://github.com/charmbracelet/glamour#stylesThe
gh repo listcommand is not rendering markdown and thus theGLAMOUR_STYLEdoes not come into effect. Commands such asgh repo viewdo render markdown and you will be able to see the effect of changing that environment variable.Having said that I agree that the output you are seeing is quite low contrast. We just introduced the table headers so perhaps we need to pick a different color to use there. Are you using one of the default color schemes in the terminal app? Or is this a color scheme you found/created?
- addedmore-info-neededMore info needed from user/contributorMore info needed from user/contributorand removedneeds-triageneeds to be reviewedneeds to be reviewed
on Nov 6, 2023 @samcoe You're right,
GLAMOUR_STYLEdoes indeed work forgh repo view.Having said that I agree that the output you are seeing is quite low contrast. We just introduced the table headers so perhaps we need to pick a different color to use there. Are you using one of the default color schemes in the terminal app? Or is this a color scheme you found/created?
It's the unmodified builtin "Basic" theme (though it's possible the theme settings were carried over from an earlier macOS version and the theme now looks different in a fresh Sonoma install).
Reacted by Sam Coe- addeddiscussFeature changes that require discussion primarily among the GitHub CLI teamFeature changes that require discussion primarily among the GitHub CLI teampriority-3Affects a small number of users or is largely cosmeticAffects a small number of users or is largely cosmeticand removedmore-info-neededMore info needed from user/contributorMore info needed from user/contributor
on Nov 7, 2023 - changed the title
[-]`GLAMOUR_STYLE` not doing anything in Terminal.app[/-][+]Table headers are low contrast on default terminal app theme[/+]on Nov 7, 2023 @jwodder : I wanted to circle back to this issue as
v2.70.0release has changes to natively fix this issue based upon the light / dark appearance of the background. If you had a moment, I'd appreciate your thoughts on the new experience as we strive to improve our user experience! 🙇@andyfeller If I run
gh repo listin a dark-on-light Terminal.app session, the results look fine:
However, if I run the command inside a GNU Screen (v5.0.0) or tmux (v3.5a) session,
ghseems to default to assuming a light-on-dark theme, which results in barely-visible table headers:
Note that I've since changed my actual day-to-day terminal environment to light-on-dark, so either way, this issue doesn't effect me normally anymore.
Reacted by Andy Feller- added a commit that references this issue
on May 10, 2025 @andyfeller If I run
gh repo listin a dark-on-light Terminal.app session, the results look fine:
However, if I run the command inside a GNU Screen (v5.0.0) or tmux (v3.5a) session, `gh` seems to default to assuming a light-on-dark theme, which results in barely-visible table headers:
Note that I've since changed my actual day-to-day terminal environment to light-on-dark, so either way, this issue doesn't effect me normally anymore.
@jwodder : Thank you for the follow up, here 🤔
This second screenshot had the new
accessible_colorssetting /GH_ACCESSIBLE_COLORSenv var set, correct? That or an older version would be the only reasons I could see the headers looking wrong here.@andyfeller I did not set that envvar, nor have I done anything with that setting. I think I was using v2.68 of
ghwhen I took those screenshots.
Describe the bug
I am using gh 2.38.0 (installed via Homebrew) in macOS Sonoma's Terminal.app with a black-on-white theme. Styled text produced by
ghis often very low-contrast against the background, and some searching pointed me to gh'sGLAMOUR_STYLEenvironment variable for changing the colors. Unfortunately, no matter what I setGLAMOUR_STYLEto —light,dark,notty, ordracula— the output colors remain unchanged and unreadable.Output from
gh repo list(noGLAMOUR_STYLE):Output from
GLAMOUR_STYLE=light gh repo list:Output from
GLAMOUR_STYLE=dark gh repo list: