Skip to content
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

More text contrast for "bold blue" text on dark themes? #7

Open
patridge opened this issue May 18, 2021 · 1 comment
Open

More text contrast for "bold blue" text on dark themes? #7

patridge opened this issue May 18, 2021 · 1 comment

Comments

@patridge
Copy link

Not sure how easy it is to detect and adjust output according to the user's current background color, but on anything less than my laptop screen's highest brightness setting, it was really hard to read the [bold blue] output (PowerShell 7.1.3 in Windows Terminal, if it helps).

Screenshot of Uno Check output, showing the tool output that includes bold blue text (hex shorthand 0 0 F) on a black background (hex 0).

I know it's going to be specific to the user environment outside of the tool's direct control, but it could be nice to have it adapt colors as best as it can. If it helps to have some outside evaluation, WebAIM identified the contrast as 2.44:1, with a target in of 4.5:1 for normal text and 3:1 for large text.

@davidjohnoliver
Copy link
Contributor

Thanks for the feedback.

Interestingly on my machine, (again a Windows Terminal Powershell window) the [bold blue] renders to a much more readable shade (5.3:1 according to the contrast checker). So as you say, this seems to be something really specific to the user environment.

image

Perhaps it would make sense to add a 'plain mode' flag that gives an option to simply render all text in the terminal's default color?

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

No branches or pull requests

2 participants