{"id":13563761,"url":"https://github.com/postcss/postcss-color-hwb","last_synced_at":"2025-10-19T09:31:51.685Z","repository":{"id":21237023,"uuid":"24552355","full_name":"postcss/postcss-color-hwb","owner":"postcss","description":"PostCSS plugin to transform W3C CSS hwb() function to more compatible CSS (rgb() or rgba()).","archived":false,"fork":false,"pushed_at":"2021-05-11T18:14:23.000Z","size":13,"stargazers_count":21,"open_issues_count":3,"forks_count":4,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-04-14T03:01:02.377Z","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/postcss.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2014-09-28T06:44:55.000Z","updated_at":"2023-01-15T20:56:08.000Z","dependencies_parsed_at":"2022-09-09T04:50:14.532Z","dependency_job_id":null,"html_url":"https://github.com/postcss/postcss-color-hwb","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postcss%2Fpostcss-color-hwb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postcss%2Fpostcss-color-hwb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postcss%2Fpostcss-color-hwb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postcss%2Fpostcss-color-hwb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/postcss","download_url":"https://codeload.github.com/postcss/postcss-color-hwb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219869974,"owners_count":16555409,"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":"2024-08-01T13:01:23.029Z","updated_at":"2025-10-19T09:31:46.379Z","avatar_url":"https://github.com/postcss.png","language":"JavaScript","readme":"# postcss-color-hwb [![CSS Standard Status](https://jonathantneal.github.io/css-db/badge/css-color-the-hwb-notation.svg)](https://jonathantneal.github.io/css-db/#css-color-the-hwb-notation) [![Build Status](https://travis-ci.org/postcss/postcss-color-hwb.png)](https://travis-ci.org/postcss/postcss-color-hwb)\n\n\u003e [PostCSS](https://github.com/postcss/postcss) plugin to transform [W3C CSS hwb() color](http://dev.w3.org/csswg/css-color/#the-hwb-notation) to more compatible CSS (rgb() (or rgba())).\n\n## Installation\n\n```bash\n$ npm install postcss-color-hwb\n```\n\n## Usage\n\n```js\n// dependencies\nvar fs = require(\"fs\")\nvar postcss = require(\"postcss\")\nvar colorHwb = require(\"postcss-color-hwb\")\n\n// css to be processed\nvar css = fs.readFileSync(\"input.css\", \"utf8\")\n\n// process css\nvar output = postcss()\n  .use(colorHwb())\n  .process(css)\n  .css\n```\n\nUsing this `input.css`:\n\n```css\nbody {\n  color: hwb(90, 0%, 0%, 0.5);\n}\n\n```\n\nyou will get:\n\n```css\nbody {\n  color: rgba(128, 255, 0, 0.5);\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/postcss/postcss-color-hwb.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":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostcss%2Fpostcss-color-hwb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpostcss%2Fpostcss-color-hwb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostcss%2Fpostcss-color-hwb/lists"}