-
-
Notifications
You must be signed in to change notification settings - Fork 23.9k
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
Customizable colors for languages in language card #2479
Comments
@Ishaan2053 Thanks for your feature request. We don't set the language colours ourselves but retrieve them from https://raw.githubusercontent.com/github/linguist/master/lib/linguist/languages.yml using the generate-langs-json.js script. Some of the language colours are, however, not up to date. I created #2484 to fix this. If you want the language colours to be fixed, it is best you open an issue at https://github.com/github/linguist. |
I think most of the colour problems should be discussed at https://github.com/github/linguist (i.e. colours being too similar). I however agree that for some colours that are hard to read for people with colourblindness having the customization ability in our cards could be beneficial. I re-opened this so we can track this feature. |
Interesting. Thanks a lot! 🙏You could also open an issue at https://github.com/github/linguist to make it more colorblind-friendly. I am afraid the set might have too few colours for the number of languages they support. 😅 |
The problem is with the number of languages |
Alternately, I think we can use a preset list of high contrast colours, regardless of language. i.e. top language will always be colour 1, 2nd language colour 2, and so on. This would be fine if only showing one card, but may be confusing if multiple cards are shown together, but I'm not sure how common that is. |
I'm okay with adding a |
Is your feature request related to a problem? Please describe.
Although it most likely doesn't happen with everyone, the languages card has a very similar color for HTML and Jupyter Notebook, which hurts distinguishability when viewed together in compact view.
Describe the solution you'd like
It would be great to have the ability to assign color of choice to your languages in the languages card.
Describe alternatives you've considered
The color of one of these two languages can be changed to fix the issue in this specific case.
Additional context
This is what I want addressed: Very similar colors adjacently hurt distinguishability.
The text was updated successfully, but these errors were encountered: