{"id":22237450,"url":"https://github.com/nblthree/colortone","last_synced_at":"2025-03-25T09:43:55.208Z","repository":{"id":106460127,"uuid":"244177403","full_name":"nblthree/colortone","owner":"nblthree","description":"Color toner","archived":false,"fork":false,"pushed_at":"2021-03-04T10:21:46.000Z","size":1985,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-18T04:51:30.067Z","etag":null,"topics":["color","color-tone","colors","javascript"],"latest_commit_sha":null,"homepage":"https://colortone.now.sh/","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/nblthree.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,"governance":null}},"created_at":"2020-03-01T15:50:38.000Z","updated_at":"2021-03-04T10:21:48.000Z","dependencies_parsed_at":"2023-07-17T23:50:34.819Z","dependency_job_id":null,"html_url":"https://github.com/nblthree/colortone","commit_stats":null,"previous_names":["marchworks/colortone"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nblthree%2Fcolortone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nblthree%2Fcolortone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nblthree%2Fcolortone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nblthree%2Fcolortone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nblthree","download_url":"https://codeload.github.com/nblthree/colortone/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245437316,"owners_count":20615250,"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":["color","color-tone","colors","javascript"],"created_at":"2024-12-03T03:09:34.929Z","updated_at":"2025-03-25T09:43:55.172Z","avatar_url":"https://github.com/nblthree.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":" \u003cdiv align=\"center\"\u003e\n  \u003ch1\u003eColortone\u003c/h1\u003e\n\u003c/div\u003e\n\n## Getting Started\n\n```\nnpm install @marchworks/colortone\n```\nOr if you are using yarn\n```\nyarn add @marchworks/colortone\n```\n\n### Usage\n```\nimport colortone from 'colortone';\n\n// colortone(color, ratio) --\u003e hex || null\nconst darkerBlueTone = colortone(\"#0000ff\", -0.05)\nconst lighterBlueTone = colortone(\"#0000ff\", 0.05)\n```\n\n### Args\nThe color arg can be in any of the following formats\n```\n\"#rrggbb\"\n\"#rgb\"\n[r, g, b] --\u003e the r, g and b values should be of type number\n{r, g, b} --\u003e the r, g and b values should be of type number\n```\nthe ratio can not be outside [-1, 1]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnblthree%2Fcolortone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnblthree%2Fcolortone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnblthree%2Fcolortone/lists"}