How to choose good colors for different terminal emulators? #877
Replies: 4 comments 4 replies
-
It depends. If you're using the default indexed colors, run the colors example to undestand what looks good: In the next release we'll be shipping palettes from material and tailwind which you can use to easily pick colors that make sense. This will mean avoiding the user's color scheme entirely as you're sending RGB colors instead. Take a look at the main branch flex and constraints examples for some examples of this in use. Use browser accessibility tools to work out contrast levels etc. (search for WCAG contrast checker for various tooling that will help). |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Also relevant: https://no-color.org/ I've started a related discussion here: #878 |
Beta Was this translation helpful? Give feedback.
-
Thanks for the tips, guys. In the end, through trial and error I picked a new color scheme based on the 16 named colors. I'll just cross my fingers and hope that it doesn't cause problems for any other terminal. Also, I documented the NO_COLOR variable as suggested by @kdheepak . The app already worked with it, since it's implemented by crossterm. |
Beta Was this translation helpful? Give feedback.
-
I've received a report that my TUI application is illegible on Mac OSX Terminal because the colors are all too dark. But it looks find on other terminals. Is there a good way to solve this problem? Perhaps something like a database of good palettes to use for each TERM value ?
Beta Was this translation helpful? Give feedback.
All reactions