{"id":18705204,"url":"https://github.com/hsluv/hsluv-stylus","last_synced_at":"2025-04-12T10:07:09.063Z","repository":{"id":19128480,"uuid":"22357999","full_name":"hsluv/hsluv-stylus","owner":"hsluv","description":"HSLuv as Stylus plugin","archived":false,"fork":false,"pushed_at":"2016-12-16T11:46:06.000Z","size":9,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-12T10:05:10.255Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hsluv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-28T21:07:54.000Z","updated_at":"2021-03-09T16:08:18.000Z","dependencies_parsed_at":"2022-07-22T19:47:49.664Z","dependency_job_id":null,"html_url":"https://github.com/hsluv/hsluv-stylus","commit_stats":null,"previous_names":["boronine/husl-stylus"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsluv%2Fhsluv-stylus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsluv%2Fhsluv-stylus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsluv%2Fhsluv-stylus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsluv%2Fhsluv-stylus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hsluv","download_url":"https://codeload.github.com/hsluv/hsluv-stylus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248550634,"owners_count":21122933,"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-07T12:10:01.698Z","updated_at":"2025-04-12T10:07:09.021Z","avatar_url":"https://github.com/hsluv.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Package Version](https://img.shields.io/npm/v/hsluv-stylus.svg)](https://www.npmjs.com/package/hsluv-stylus)\n\n[HSLuv](http://www.hsluv.org) is a perceptually-uniform alternative to HSL. Here is some \n[Stylus](http://stylus-lang.com/) code that generates 6 tiles with well-contrasting \ncomplementary colors:\n\n```Stylus\ntile(hue)\n  background-color hsluv(hue, 90%, 80%)\n  color hsluv(hue + 190deg, 90%, 10%)\n\nfor hue in 0deg 30deg 60deg 90deg 120deg 150deg\n  .colored-tile-{hue}\n    tile(hue)\n```\n\n# Usage\n\nInstall the plugin:\n\n```Shell\nnpm install hsluv-stylus\n```\n\nTo use from command line, run stylus like this:\n\n```Shell\nstylus -u hsluv-stylus \u003c input.styl\n```\n\nTo use programmatically, do this:\n\n```JavaScript\nvar stylus = require('stylus');\nvar hsluvStylus = require('hsluv-stylus');\n\nfunction renderWithHsluv(str) {\n    return stylus(str).use(hsluvStylus()).render();\n}\n```\n\nThis module adds two following two Stylus functions that let you specify colors using HSLuv and its \npastel variant HPLuv:\n\n**hsluv(H, S, L, [A])**\n\n**hpluv(H, S, L, [A])**\n\n*H* represents hue as a number between 0 and 360, *S* represents saturation as a number between 0 and \n100 and *L* represents lightness as a number between 0 and 100. *A* is an optional value between 0 and \n1 representing the alpha channel.\n\n# License\n\nCopyright (C) 2016 Alexei Boronine\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and \nassociated documentation files (the \"Software\"), to deal in the Software without restriction, including \nwithout limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell \ncopies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the \nfollowing conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial \nportions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT \nLIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN \nNO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, \nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE \nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhsluv%2Fhsluv-stylus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhsluv%2Fhsluv-stylus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhsluv%2Fhsluv-stylus/lists"}