{"id":13561250,"url":"https://github.com/avh4/elm-color","last_synced_at":"2025-09-07T06:35:06.930Z","repository":{"id":57674846,"uuid":"147119716","full_name":"avh4/elm-color","owner":"avh4","description":"Standard representation of colors, encouraging sharing between packages.  (This replaces elm-lang/core#Color from Elm 0.18.)","archived":false,"fork":false,"pushed_at":"2023-02-04T19:07:11.000Z","size":133,"stargazers_count":24,"open_issues_count":20,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-07T06:33:46.632Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Elm","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/avh4.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-02T20:33:56.000Z","updated_at":"2025-08-29T20:05:04.000Z","dependencies_parsed_at":"2023-02-18T19:00:36.648Z","dependency_job_id":null,"html_url":"https://github.com/avh4/elm-color","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/avh4/elm-color","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avh4%2Felm-color","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avh4%2Felm-color/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avh4%2Felm-color/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avh4%2Felm-color/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avh4","download_url":"https://codeload.github.com/avh4/elm-color/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avh4%2Felm-color/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274005336,"owners_count":25205934,"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-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":[],"created_at":"2024-08-01T13:00:54.150Z","updated_at":"2025-09-07T06:35:06.897Z","avatar_url":"https://github.com/avh4.png","language":"Elm","funding_links":[],"categories":["Elm"],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/avh4/elm-color.svg?branch=master)](https://travis-ci.org/avh4/elm-color)\n\n# elm-color\n\nThe this package defines a standard `Color` type\n(taking the place of `elm-lang/core#Color` in Elm 0.18)\nwith the hope that all Elm packages that produce colors and\nall Elm packages that consume colors will use this type\nto allow all such packages to easily interoperate\nfor the ultimate benefit of all Elm developers.\n(If you are a package author and find that the `Color` type here does not meet your package's\nneeds for passing colors to or from your package,\nplease [report an issue](https://github.com/avh4/elm-color/issues/new) so we can improve this package to support your needs.)\n\nFuture versions of this package will include additional common conversions\nand color manipulation functions.\nIf you have used other color packages or written your own color-related functions in the past,\nplease [create an issue](https://github.com/avh4/elm-color/issues/new) to describe your use case\nso we can better design additions to this package.\n\n\n## Example\n\n```elm\nimport Color exposing (Color)\nimport Html exposing (Html)\nimport Html.Attributes exposing (style)\n\nview : Color -\u003e Html msg\nview foreground =\n    let\n        hue =\n            (Color.toHsla foreground).hue\n\n        borderColor =\n            Color.hsla hue 0.75 0.5 0.8\n    in\n    Html.div\n        [ style \"background-color\" (Color.toCssString Color.lightOrange)\n        , style \"color\" (Color.toCssString foreground)\n        , style \"border-color\" (Color.toCssString borderColor)\n        ]\n        [ Html.text \"(ᵔᴥᵔ)\" ]\n```\n\n\n## Built-in colors\n\nThis package also provides an \"aesthetically reasonable\" set of common colors.\n\n![](built-in-colors.png)\n\n\n## Roadmap\n\n- [x] Initial release: defines color type and basic conversion functions\n- [ ] 1.1.0: implement common color manipulation functions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favh4%2Felm-color","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favh4%2Felm-color","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favh4%2Felm-color/lists"}