{"id":16203980,"url":"https://github.com/markembling/github-languages-palette","last_synced_at":"2026-05-19T19:03:18.597Z","repository":{"id":66965880,"uuid":"185855584","full_name":"markembling/github-languages-palette","owner":"markembling","description":"GitHub programming language colours as palette files.","archived":false,"fork":false,"pushed_at":"2019-05-11T20:59:58.000Z","size":41,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T19:45:08.302Z","etag":null,"topics":["colors","github","languages","palette"],"latest_commit_sha":null,"homepage":"https://markembling.info/2019/05/github-languages-colour-palettes","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/markembling.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-09T18:57:44.000Z","updated_at":"2024-12-20T20:07:42.000Z","dependencies_parsed_at":"2023-05-16T04:30:28.600Z","dependency_job_id":null,"html_url":"https://github.com/markembling/github-languages-palette","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/markembling/github-languages-palette","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markembling%2Fgithub-languages-palette","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markembling%2Fgithub-languages-palette/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markembling%2Fgithub-languages-palette/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markembling%2Fgithub-languages-palette/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markembling","download_url":"https://codeload.github.com/markembling/github-languages-palette/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markembling%2Fgithub-languages-palette/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266699618,"owners_count":23970529,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["colors","github","languages","palette"],"created_at":"2024-10-10T09:55:52.184Z","updated_at":"2026-05-19T19:03:18.481Z","avatar_url":"https://github.com/markembling.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Programming Language Colour Palettes\n\nThis repository contains palette files in various formats containing the colours used for all the programming languages on GitHub, along with a Python script which constructs the palette files. Not all languages on GitHub actually have an assigned colour, so only those which do are included.\n\nThis was inspired by [doda/github-language-colors](https://github.com/doda/github-language-colors) but I wanted the output to be something which I could feed straight into various other apps (primarily my own [Colour Chooser][cc]). I originally considered putting together just a small script which would download that JSON file and convert it to other formats, but figured I may as well take the colours straight from [the source](https://github.com/github/linguist/blob/master/lib/linguist/languages.yml) and output in a number of formats. The number of formats is likely to grow over time.\n\n## Palettes\n\nThe palette files can be found in the [`palettes`](palettes/) directory in the following formats. If you're after the colours, this is where you want to go - just grab the file format which you need and use it and you don't need to worry about the Python script.\n\n - [Colour Chooser][cc] palette file (`.ccxml`)\n - [GIMP](https://www.gimp.org/) palette (`.gpl`)\n - Adobe Swatch Exchange file (`.ase`)\n - Adobe Photoshop Color Swatch file (`.aco`)\n - JSON file (`.json`)\n - CSV file (`.csv`)\n\n This should cover most cases but if there's a palette format missing that you'd find useful, add an issue and I'll see what I can do when I have time. Alternatively if you'd like to, feel free to contribute a pull request adding the functionality.\n\n **Note:** I've purposefully not included palette formats which do not include names for each colour - I thought that missed the point somewhat.\n\n## Python Script\n\nThe Python script is what grabs the list from GitHub and generates the palette files. The script generates a single palette file in one of the supported formats or I have also included scripts which will generate all the files.\n\nIf you want to run the script, you will first need to:\n\n 1. Have a recent version of Python 3 installed (\u003e= 3.6).\n 2. (Optional) Create a [virtual environment](https://docs.python.org/3.7/tutorial/venv.html) and activate it. I'd recommend this so the required packages are not installed system-wide.  \n    \n        python3 -m venv venv\n        . venv/bin/activate\n\n 3. Install the required packages using `pip`.  \n    \n        pip install -r requirements.txt\n\nOnce that's done, you're ready to generate a palette. You can generate either a single palette file or all of them.\n\n### Generating a single palette\n\nGenerate a single palette by running the script, telling it which format you want and what output file you want.\n\n    python generate.py --format ccxml path/to/output/file.ccxml\n\nThe format is the file extension corresponding to the format you would like. See the 'Palettes' section above for a list of the supported file formats. In the above example, a Colour Chooser palette will be generated.\n\nIf you want to use an alternative source URL for the linguist YAML file, you can specify this using the `--url` option. It will however expect the same format so if you feed it something else, it'll probably just complain.\n\nThe script can also provide a help message:\n\n    python generate.py --help\n\n### Generating all palette files\n\nI've included some shell scripts which will generate all supported palette files. These are what I use to regenerate the files if GitHub update their colours.\n\nThese scripts will create a `palettes` directory if it does not already exist, and then generate the palette files in each format inside with the filename `githublangs.xxx`. If files do exist, they will be overwritten. You can't pass any options to these scripts so if you need to, you'll need to run it as above yourself.\n\n#### Bash\n\n    ./generate-all.sh\n\n#### PowerShell\n\n    ./generate-all.ps1\n\n## License\n\nThe script for generating the palettes is licensed under the [MIT license](LICENSE).\n\nThe actual palette of colours is part of GitHub's [Linguist](https://github.com/github/linguist) and therefore usage is dictated by the [license for Linguist](https://github.com/github/linguist/blob/master/LICENSE). At time of writing (May 2019), Linguist was available under the MIT license.\n\n\n[cc]: https://markembling.info/2010/12/colour-chooser","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkembling%2Fgithub-languages-palette","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkembling%2Fgithub-languages-palette","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkembling%2Fgithub-languages-palette/lists"}