{"id":19462525,"url":"https://github.com/leopoldthecoder/postcss-hsl-color-function","last_synced_at":"2026-04-11T21:03:50.202Z","repository":{"id":57328077,"uuid":"77282098","full_name":"Leopoldthecoder/postcss-hsl-color-function","owner":"Leopoldthecoder","description":"PostCSS plugin to transform HSL color function to more compatible CSS.","archived":false,"fork":false,"pushed_at":"2016-12-25T03:16:58.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T22:17:55.273Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Leopoldthecoder.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":"2016-12-24T12:29:25.000Z","updated_at":"2016-12-24T14:28:16.000Z","dependencies_parsed_at":"2022-09-18T17:50:52.999Z","dependency_job_id":null,"html_url":"https://github.com/Leopoldthecoder/postcss-hsl-color-function","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leopoldthecoder%2Fpostcss-hsl-color-function","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leopoldthecoder%2Fpostcss-hsl-color-function/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leopoldthecoder%2Fpostcss-hsl-color-function/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leopoldthecoder%2Fpostcss-hsl-color-function/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Leopoldthecoder","download_url":"https://codeload.github.com/Leopoldthecoder/postcss-hsl-color-function/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240672817,"owners_count":19838929,"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-11-10T18:02:18.257Z","updated_at":"2026-04-11T21:03:50.166Z","avatar_url":"https://github.com/Leopoldthecoder.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PostCSS HSL Color Function\n\n[PostCSS] plugin to transform HSL color function to more compatible CSS.\n\nInspired and modified from [postcss-sass-color-functions].\n\n[PostCSS]: https://github.com/postcss/postcss\n[postcss-sass-color-functions]: https://github.com/adam-h/postcss-sass-color-functions\n\n## Installation\n\n```console\n$ npm install postcss-hsl-color-function\n```\n\n## Usage\n\n```js\npostcss([require('postcss-hsl-color-function')])\n```\n\nBefore:\n\n```css\n.foo {\n  color: hue(red, 120)\n}\n```\n\nAfter:\n\n```css\n.foo {\n  color: rgb(0, 255, 0)\n}\n```\n\nCheckout [test.js](index.test.js) for examples.\n\n### Currently supported functions\n\n- `hue(color, degree)`\n- `saturation(color, percentage)`\n- `lightness(color, percentage)`\n\nand their aliases:\n- `h(color, degree)`\n- `s(color, percentage)`\n- `l(color, percentage)`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleopoldthecoder%2Fpostcss-hsl-color-function","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleopoldthecoder%2Fpostcss-hsl-color-function","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleopoldthecoder%2Fpostcss-hsl-color-function/lists"}