-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stronger terminal colors #5444
Comments
A side note: With this, I suggest to also consider adding an option to disable colored output altogether and show everything in white (or dark for light terminal). |
Good point. You can already do that though with the See: https://github.com/chalk/chalk#supportscolor For example: This needs to be documented though and made possible via the CLI. |
Added an FAQ entry here: #5448 |
I think the behaviour proposed in this comment is reasonable: #2420 (comment) Basically the proposal is to follow the |
You can. See e.g. my screenshot above. |
I know you can using |
Oh whoops 🤦♂️ I just saw I fully agree and I'll fix this. |
Fixed in #5451 |
We've been consolidating all the different places we render ANSI colors to the terminal to make it easier to update the colors we use in one place.
Right now our primary color is
chalk.grey
and judging by internal conversations we mostly agree that it's too light.On transparent terminals it's practically impossible to read.
The obvious first choice would be to just go for
chalk.white
but I'm wondering if we want to find some middleground and use some specific hex color. Note thatchalk
will down sample it to work with any terminal, even those that only support 16 colors. So we should basically find something that down samples to white.This ticket is meant as a discussion and I'd love to get feedback from the more design oriented folks on the team as well as our community.
To get us started, I'll share some examples below:
Using
primary: chalk.grey
on a transparent terminal 👇Using
primary: chalk.grey
on an opaque terminal 👇Using
primary: chalk.white
👇Using
primary: chalk.hex("#a6a1c7")
👇We can also play around with other colors. Here's
warning: chalk.yellow
👇Here's
warning: chalk.hex("#FFA500")
👇We could do the same for
secondary | success | error
styles.Anyway, just wanted to see if you all had thoughts on this. Otherwise I'd suggest sticking with what we have but changing our primary color from
chalk.grey
tochalk.white
.The text was updated successfully, but these errors were encountered: