Share your repls and programming experiences

← Back to all posts
language metadata service
nilslice (1)


I noticed that the language icon colors were all a shade of gray on the feed ( in places like:

I thought maybe it was because there was an extra step needed to get the GitHub-defined color, and the code hadn't been written yet. So, I wrote a little service to help:

From that UI component, you could call this service and pass the display name of the language used in the repo (e.g. "Python", "Go") from GitHub as the query param "name", and get the hex code for the color via the service.