{"id":26076846,"url":"https://github.com/purescript-contrib/purescript-colors","last_synced_at":"2026-03-11T00:35:47.471Z","repository":{"id":41825969,"uuid":"50784779","full_name":"purescript-contrib/purescript-colors","owner":"purescript-contrib","description":"Convert, manipulate, analyze, blend, color scales, color schemes","archived":false,"fork":false,"pushed_at":"2022-04-27T22:04:47.000Z","size":664,"stargazers_count":44,"open_issues_count":7,"forks_count":11,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-14T22:57:37.089Z","etag":null,"topics":["colors","colorspace","purescript"],"latest_commit_sha":null,"homepage":"","language":"PureScript","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/purescript-contrib.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2016-01-31T16:59:03.000Z","updated_at":"2025-05-26T11:00:10.000Z","dependencies_parsed_at":"2022-08-11T18:40:20.968Z","dependency_job_id":null,"html_url":"https://github.com/purescript-contrib/purescript-colors","commit_stats":null,"previous_names":["sharkdp/purescript-colors"],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/purescript-contrib/purescript-colors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-contrib%2Fpurescript-colors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-contrib%2Fpurescript-colors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-contrib%2Fpurescript-colors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-contrib%2Fpurescript-colors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/purescript-contrib","download_url":"https://codeload.github.com/purescript-contrib/purescript-colors/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-contrib%2Fpurescript-colors/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30364105,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"ssl_error","status_checked_at":"2026-03-10T21:40:59.357Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","colorspace","purescript"],"created_at":"2025-03-09T02:36:20.262Z","updated_at":"2026-03-11T00:35:47.415Z","avatar_url":"https://github.com/purescript-contrib.png","language":"PureScript","readme":"# Colors\n\n[![CI](https://github.com/purescript-contrib/purescript-colors/workflows/CI/badge.svg?branch=main)](https://github.com/purescript-contrib/purescript-colors/actions?query=workflow%3ACI+branch%3Amain)\n[![Release](https://img.shields.io/github/release/purescript-contrib/purescript-colors.svg)](https://github.com/purescript-contrib/purescript-colors/releases)\n[![Pursuit](https://pursuit.purescript.org/packages/purescript-colors/badge)](https://pursuit.purescript.org/packages/purescript-colors)\n\nA package for dealing with colors in PureScript.\n\n## Installation\n\nInstall `colors` with [Spago](https://github.com/purescript/spago):\n\n```sh\nspago install colors\n```\n\n## Quick start\n\n```purs\n\u003e toHexString (hsl 200.0 0.4 0.5)\n\"#4d91b3\"\n\n\u003e cssStringHSLA (seagreen # lighten 0.2 # saturate 0.3)\n\"hsl(146.45, 80.27%, 56.27%)\"\n\n\u003e toHexString \u003c$\u003e colors (colorScale HSL hotpink Nil darksalmon) 5\n\"#ff69b4\" : \"#fa6d99\" : \"#f47182\" : \"#ef7d76\" : \"#e9967a\" : Nil\n\n\u003e toHexString \u003c$\u003e (sortBy (comparing luminance) [black, white, blue, lightgreen])\n[\"#000000\",\"#0000ff\",\"#90ee90\",\"#ffffff\"]\n```\n\n## Documentation\n\nOtherwise, `colors` documentation is stored in a few places:\n\n1. Module documentation is [published on Pursuit](https://pursuit.purescript.org/packages/purescript-colors).\n1. Written documentation is kept in the [docs directory](./docs).\n1. Usage examples can be found in [the test suite](./test).\n\nIf you get stuck, there are several ways to get help:\n\n- [Open an issue](https://github.com/purescript-contrib/purescript-colors/issues) if you have encountered a bug or problem.\n- Ask general questions on the [PureScript Discourse](https://discourse.purescript.org) forum or the [PureScript Discord](https://discord.com/invite/sMqwYUbvz6) chat.\n\n## Contributing\n\nYou can contribute to `colors` in several ways:\n\n1. If you encounter a problem or have a question, please [open an issue](https://github.com/purescript-contrib/purescript-colors/issues). We'll do our best to work with you to resolve or answer it.\n\n2. If you would like to contribute code, tests, or documentation, please [read the contributor guide](./CONTRIBUTING.md). It's a short, helpful introduction to contributing to this library, including development instructions.\n\n3. If you have written a library, tutorial, guide, or other resource based on this package, please share it on the [PureScript Discourse](https://discourse.purescript.org)! Writing libraries and learning resources are a great way to help this library succeed.\n\n## Credit\n\nBased on initial work by paf31 and inspired by (the PureScript version of) [Elm.Color](https://github.com/brainrape/purescript-elm-color), [TinyColor](https://github.com/bgrins/TinyColor) and [Chroma.js](https://github.com/gka/chroma.js).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurescript-contrib%2Fpurescript-colors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpurescript-contrib%2Fpurescript-colors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurescript-contrib%2Fpurescript-colors/lists"}