{"id":25185210,"url":"https://github.com/joshuanianji/github-language-colors","last_synced_at":"2025-04-04T08:42:01.301Z","repository":{"id":184546703,"uuid":"671673608","full_name":"joshuanianji/github-language-colors","owner":"joshuanianji","description":"A collection of all of Github's language colours in Elm","archived":false,"fork":false,"pushed_at":"2025-03-30T00:41:30.000Z","size":306,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T01:34:18.950Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://package.elm-lang.org/packages/joshuanianji/github-language-colors/latest/GithubColors","language":"Elm","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/joshuanianji.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":"2023-07-27T21:50:30.000Z","updated_at":"2025-02-09T04:13:24.000Z","dependencies_parsed_at":"2024-12-09T07:20:11.013Z","dependency_job_id":"e02e98a3-a285-4600-8a7c-f04242d62d98","html_url":"https://github.com/joshuanianji/github-language-colors","commit_stats":null,"previous_names":["joshuanianji/github-language-colors"],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshuanianji%2Fgithub-language-colors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshuanianji%2Fgithub-language-colors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshuanianji%2Fgithub-language-colors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshuanianji%2Fgithub-language-colors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joshuanianji","download_url":"https://codeload.github.com/joshuanianji/github-language-colors/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247149121,"owners_count":20891949,"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","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":[],"created_at":"2025-02-09T19:37:04.050Z","updated_at":"2025-04-04T08:42:01.266Z","avatar_url":"https://github.com/joshuanianji.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Github Language Colors\n\n[![Test](https://github.com/joshuanianji/github-language-colors/actions/workflows/tests.yml/badge.svg)](https://github.com/joshuanianji/github-language-colors/actions/workflows/tests.yml)\n[![Release version](https://github.com/joshuanianji/github-language-colors/actions/workflows/release.yml/badge.svg)](https://github.com/joshuanianji/github-language-colors/actions/workflows/release.yml)\n\nA collection of all of Github's language colors in Elm. Automatically updated using [ozh/github-colors](https://github.com/ozh/github-colors), and autogenerated by [elm-codegen](https://github.com/mdgriffith/elm-codegen/tree/main).\n\n## Usage\n\nSee this in action [on Ellie](https://ellie-app.com/nwbX8y3Xbjha1)\n\n```elm\nimport Html exposing (Html)\nimport Html.Attributes exposing (style)\nimport GithubColors\n\nmain : Html msg\nmain =\n    Html.div\n        [ style \"color\" GithubColors.elm.hex ]\n        [ Html.text \"Elm\" ]\n```\n\nA full list of languages can be found in the [docs](https://package.elm-lang.org/packages/joshuanianji/github-language-colors/4.0.0/GithubColors/).\n\n## Colors\n\nEach variable in the `GithubColors` holds the color information of a single Github language.\n\n**Github does not have colors for all languages!** For the languages with no colors, I've defaulted to \"#ccc\", which is what Github does in most cases. You can programmatically check if a language has a color by using the `.hasColor` field.\n\nEach variable is a `Color` type that looks like the following:\n\n```elm\ntype alias Color =\n    -- an elm-ui color\n    { elmui : Element.Color\n    -- an elm-color color\n    , color : Color.Color\n    -- a hex string (e.g. \"#60B5CC\")\n    , hex : String\n    -- an rgb tuple\n    , rgb : ( Int, Int, Int )\n    -- false if the language does not have a color\n    , hasColor : Bool\n    }\n```\n\n## Variable Naming\n\nLanguage names are converted to lowercase and most non-alphanumeric characters are replaced by underscores except when they are relevant to the name (e.g. c++, f#). Languages starting with a number gets prefixed by \"lang_\".\n\nE.g.\n\n- \"Elm\" becomes \"elm\"\n- \"C#\" becomes \"c_sharp\"\n- \"C++\" becomes \"cpp\"\n- \"2-Dimensional Array\" becomes \"lang_2_dimensional_array\"\n\nIf you find any issues with the language naming, please submit an issue or a PR!\n\n## Run Locally\n\n```bash\npnpm i \u0026\u0026 pnpm get-colors\npnpm dev\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshuanianji%2Fgithub-language-colors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoshuanianji%2Fgithub-language-colors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshuanianji%2Fgithub-language-colors/lists"}