{"id":14968202,"url":"https://github.com/devgru/postcss-color-hcl","last_synced_at":"2025-07-24T09:36:56.206Z","repository":{"id":32614840,"uuid":"36200261","full_name":"devgru/postcss-color-hcl","owner":"devgru","description":"PostCSS plugin to transform hcl() color to compatible CSS (rgb() or rgba()).","archived":false,"fork":false,"pushed_at":"2016-02-06T16:50:19.000Z","size":8,"stargazers_count":10,"open_issues_count":1,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-09T07:21:36.998Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/devgru.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}},"created_at":"2015-05-25T00:07:00.000Z","updated_at":"2023-06-25T20:57:17.000Z","dependencies_parsed_at":"2022-07-09T02:46:31.821Z","dependency_job_id":null,"html_url":"https://github.com/devgru/postcss-color-hcl","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/devgru/postcss-color-hcl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgru%2Fpostcss-color-hcl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgru%2Fpostcss-color-hcl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgru%2Fpostcss-color-hcl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgru%2Fpostcss-color-hcl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devgru","download_url":"https://codeload.github.com/devgru/postcss-color-hcl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgru%2Fpostcss-color-hcl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266822276,"owners_count":23989824,"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-24T02:00:09.469Z","response_time":99,"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-09-24T13:39:31.464Z","updated_at":"2025-07-24T09:36:54.933Z","avatar_url":"https://github.com/devgru.png","language":"JavaScript","readme":"# postcss-color-hcl [![Build Status](https://travis-ci.org/devgru/postcss-color-hcl.png)](https://travis-ci.org/postcss/postcss-color-hcl)\n\n\u003e [PostCSS](https://github.com/postcss/postcss) plugin to transform [hcl() color](http://hclwizard.org/hcl-color-scheme/) to compatible CSS (#hex or rgba()).\n\n## Installation\n\n```bash\n$ npm install postcss-color-hcl\n```\n\n## Usage\n\n```js\n// dependencies\nvar fs = require(\"fs\")\nvar postcss = require(\"postcss\")\nvar colorHcl = require(\"postcss-color-hcl\")\n\n// css to be processed\nvar css = fs.readFileSync(\"input.css\", \"utf8\")\n\n// process css\nvar output = postcss()\n  .use(colorHcl())\n  .process(css)\n  .css\n```\n\nUsing this `input.css`:\n\n```css\nbody {\n  color: hcl(21, 70%, 50%, 0.5);\n  background: hcl(0, 0%, 50%);\n}\n\n```\n\nyou will get:\n\n```css\nbody {\n  color: rgba(221, 52, 80, 0.5);\n  background: rgb(119, 119, 119);\n}\n```\n\nCheckout [tests](test) for more examples.\n\n---\n\n## Contributing\n\nWork on a branch, install dev-dependencies, respect coding style \u0026 run tests before submitting a bug fix or a feature.\n\n    $ git clone https://github.com/devgru/postcss-color-hcl.git\n    $ git checkout -b patch-1\n    $ npm install\n    $ npm test\n\n## [Changelog](CHANGELOG.md)\n\n## [License](LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevgru%2Fpostcss-color-hcl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevgru%2Fpostcss-color-hcl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevgru%2Fpostcss-color-hcl/lists"}