{"id":18469539,"url":"https://github.com/tricinel/postcss-color-hsla-fallback","last_synced_at":"2026-04-16T04:31:37.345Z","repository":{"id":57327878,"uuid":"349444024","full_name":"tricinel/postcss-color-hsla-fallback","owner":"tricinel","description":"PostCSS plugin to transform hsl and hsla to hexadecimal","archived":false,"fork":false,"pushed_at":"2021-03-19T14:06:23.000Z","size":84,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-01T19:08:01.206Z","etag":null,"topics":["color","color-convert","css","hsl-color","postcss","postcss-plugin"],"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/tricinel.png","metadata":{"files":{"readme":"Readme.md","changelog":"Changelog.md","contributing":"Contributing.md","funding":null,"license":"License.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-19T14:05:32.000Z","updated_at":"2021-03-19T14:08:43.000Z","dependencies_parsed_at":"2022-09-17T11:21:19.240Z","dependency_job_id":null,"html_url":"https://github.com/tricinel/postcss-color-hsla-fallback","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tricinel/postcss-color-hsla-fallback","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tricinel%2Fpostcss-color-hsla-fallback","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tricinel%2Fpostcss-color-hsla-fallback/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tricinel%2Fpostcss-color-hsla-fallback/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tricinel%2Fpostcss-color-hsla-fallback/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tricinel","download_url":"https://codeload.github.com/tricinel/postcss-color-hsla-fallback/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tricinel%2Fpostcss-color-hsla-fallback/sbom","scorecard":{"id":898547,"data":{"date":"2025-08-11","repo":{"name":"github.com/tricinel/postcss-color-hsla-fallback","commit":"2afc246f721e2f0aa5912a9dafe07ffa5088b5c8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/1 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: License.md:0","Info: FSF or OSI recognized license: MIT License: License.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":0,"reason":"29 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-qrpm-p2h7-hrv2","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-hwj9-h5mp-3pm3","Warn: Project is vulnerable to: GHSA-566m-qj78-rww5","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T14:38:37.809Z","repository_id":57327878,"created_at":"2025-08-24T14:38:37.809Z","updated_at":"2025-08-24T14:38:37.809Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31871453,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"online","status_checked_at":"2026-04-16T02:00:06.042Z","response_time":69,"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":["color","color-convert","css","hsl-color","postcss","postcss-plugin"],"created_at":"2024-11-06T10:10:49.439Z","updated_at":"2026-04-16T04:31:37.324Z","avatar_url":"https://github.com/tricinel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# postcss-color-hsla-fallback\n\n[PostCSS](https://github.com/postcss/postcss) plugin to transform `hsl()` and `hsla()` to hexadecimal.\n\n\u003e Inspiration for this plugin comes from [postcss-color-rgba-fallback](https://github.com/postcss/postcss-color-rgba-fallback)\n\n## Installation\n\nWith npm:\n\n```bash\nnpm install postcss-color-hsla-fallback --save-dev\n```\n\nor with yarn:\n\n```bash\nyarn add postcss-color-hsla-fallback --dev\n```\n\nAlso make sure you have `postcss` installed:\n\n```bash\nnpm install postcss --save-dev\n```\n\n```bash\nyarn add postcss --dev\n```\n\n## Usage\n\n```js\nconst fs = require('fs');\nconst postcss = require('postcss');\nconst colorHslaFallback = require('postcss-color-hsla-fallback');\n\nconst css = fs.readFileSync('input.css', 'utf8');\n\nconst output = postcss()\n  .use(colorHslaFallback())\n  .process(css)\n  .css;\n```\n\nUsing this `input.css`:\n\n```css\nbody {\n  color: hsl(0, 53%, 41%);\n}\n\n```\n\nyou will get:\n\n```css\nbody {\n  color: #a03131;\n  color: hsl(0, 53%, 41%);\n}\n```\n\n## Options\n\n### `preserve` (default: `true`)\n\nAllows you to preserve the original `hsl()` or `hsla()` colors in the output.\n\nPossible values:\n\n- `true`: Keeps `hsl()` and `hsla()` values in the output.\n- `false`: Removes `hsl()` and `hsla()` values from the output and replaces them with their hex computed values.\n\nWith `preserve: false` you will get:\n\n```css\nbody {\n  color: #a03131;\n}\n```\n\n### `skipProperties` (default: '[]`)\n\nAllows you to skip specific properties from the list so that they are not replaced with their hex computed values.\n\nPossible values includes one or more from this list:\n\n```\n[\n  'background-color',\n  'background',\n  'border-bottom-color',\n  'border-color',\n  'border-left-color',\n  'border-right-color',\n  'border-top-color',\n  'border',\n  'caret-color',\n  'color',\n  'column-rule-color',\n  'column-rule',\n  'filter',\n  'outline-color',\n  'outline',\n  'text-decoration-color',\n  'text-shadow'\n]\n```\n\n### Requirements\n\nThis plugin requires `postcss` v8+.\n\n#### Contributing\n\n- Run tests with `npm run test` or `yarn test`.\n- Run the lint with `npm run lint` or `yarn lint`.\n\nFor details, check out the [Contributing][contributing] guide.\n\n##### LICENSE\n\nMIT\n\n[contributing]: ./Contributing.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftricinel%2Fpostcss-color-hsla-fallback","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftricinel%2Fpostcss-color-hsla-fallback","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftricinel%2Fpostcss-color-hsla-fallback/lists"}