Locksmith icon indicating copy to clipboard operation
Locksmith copied to clipboard

Improve Contrast Between Colored Text and Background

Open jakehildreth opened this issue 1 year ago • 3 comments

Current text colors work fine on dark terminal backgrounds but not so well on light backgrounds.

jakehildreth avatar Jan 21 '24 11:01 jakehildreth

Since I am red color-weak, I'd love to get assistance from others with typical vision. Thanks!

jakehildreth avatar Jan 21 '24 11:01 jakehildreth

Will start with a few notes and resources that I found while supporting SharePoint theming conversation:

  • The contrast ratio between colors should generally be at least 4.5:1.
  • Here's a contrast checker: https://contrastchecker.com/
  • Here's a color blindness simulator that lets you use your own images: https://contrastchecker.com/
  • An accessible palate generator: https://venngage.com/tools/accessible-color-palette-generator
  • And here's the long version! https://venngage.com/blog/accessible-colors/

I recently noticed (for the first time again) how some projects write status ouput with the foreground and background colors set, and I am starting to appreciate that approach.

SamErde avatar Jan 22 '24 14:01 SamErde

I recently noticed (for the first time again) how some projects write status ouput with the foreground and background colors set, and I am starting to appreciate that approach.

This is the best option, I think, since the pwsh color pallet is pretty limited.

jakehildreth avatar Jan 22 '24 14:01 jakehildreth