A machine-readable list of programming languages along with their primary colors, as used in Wakatime
The data is updated automatically at regular intervals.
You can directly fetch the raw content from github to get the latest data.
$ curl -L https://github.com/abiriadev/wakatime-colors/raw/main/colors.json
Alternatively, you can import this repository as an npm module and call the fetchJson()
function the retrieve the data from your JavaScript/TypeScript app.
You can run the fetcher as a docker container!
$ docker run --rm ghcr.io/abiriadev/wakatime-colors:main
It will immediately fetch and print the latest data to the standard output.
To manually build the project, follow these steps:
# Checkout the repository
$ git https://github.com/abiriadev/wakatime-colors && cd wakatime-colors
# Install dependencies
$ corepack enable
$ pnpm install
# Build the source
$ pnpm build
# Finally, run below command to fetch and save data
$ pnpm run fetch
After running the above commands, the updated data will be available in colors.json
.
To generate an SVG preview image, assuming you have the colors.json
file at the root:
$ go run .
This command will create a rendered SVG file named colors.svg
.