{"id":20424483,"url":"https://github.com/arjunkdot/hexashades","last_synced_at":"2025-10-29T12:02:49.014Z","repository":{"id":198499725,"uuid":"699320439","full_name":"arjunkdot/hexashades","owner":"arjunkdot","description":"🎨 A simple JavaScript package for creating tints and shades for a given RGB hex code.","archived":false,"fork":false,"pushed_at":"2025-10-13T18:08:31.000Z","size":445,"stargazers_count":3,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T13:52:32.805Z","etag":null,"topics":["colors","hex","hexashades","javascirpt","js-library","rgb","shades","tints","tints-and-shades","typescript"],"latest_commit_sha":null,"homepage":"https://github.com/arjunkdot/hexashades","language":"TypeScript","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/arjunkdot.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-02T12:02:01.000Z","updated_at":"2024-11-22T04:50:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"babf0fcc-0d56-4d42-865e-a6a18e9c4b28","html_url":"https://github.com/arjunkdot/hexashades","commit_stats":null,"previous_names":["arjunkdot/hexashades"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/arjunkdot/hexashades","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arjunkdot%2Fhexashades","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arjunkdot%2Fhexashades/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arjunkdot%2Fhexashades/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arjunkdot%2Fhexashades/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arjunkdot","download_url":"https://codeload.github.com/arjunkdot/hexashades/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arjunkdot%2Fhexashades/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281617488,"owners_count":26531925,"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","status":"online","status_checked_at":"2025-10-29T02:00:06.901Z","response_time":59,"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":["colors","hex","hexashades","javascirpt","js-library","rgb","shades","tints","tints-and-shades","typescript"],"created_at":"2024-11-15T07:09:44.422Z","updated_at":"2025-10-29T12:02:48.952Z","avatar_url":"https://github.com/arjunkdot.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Creating tints and shades for a given RGB hex code.](.github/banner.jpg \"Creating tints and shades for a given RGB hex code.\")\n\n\u003ch1 align=\"center\"\u003eHexashades\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/v/hexashades?logo=npm\u0026color=%23CB0001\" alt=\"NPM Version\" /\u003e\n  \u003cimg src=\"https://img.shields.io/bundlephobia/min/hexashades\" alt=\"NPM Bundle Size\" /\u003e\n  \u003cimg src=\"https://img.shields.io/github/license/arjunkdot/hexashades\" alt=\"License\" /\u003e\n\u003c/p\u003e\n  \u003cbr /\u003e\n  \u003cp align=\"center\"\u003e\n  Hexashades helps you generate a range of shades and tints for any specified RGB Hex color code.\n\u003c/p\u003e\n\u003cbr /\u003e\n\n\u003e Currently, it only supports RGB Hex codes. More input formats will be allowed in the future.\n\n## Installation\n\n**NPM**\n\n```sh\nnpm install hexashades --save\n```\n\nOr load using a `\u003cscript\u003e` tag from a CDN\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/hexashades/\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\n```js\n// Import Hexashades \u0026 initialize.\nimport { Colors } from \"hexashades\";\nconst color = new Colors();\n\n// Generate tints \u0026 shades.\nconst tintsAndShades = color.createColors(\"663399\", 10, false);\n```\n\n## API\n\n### createColors(color, percentage, prefix)\n\nReturns an array of tints \u0026 shades for the given color with a given percentage of increments.\n\nThrows an error if no/invalid inputs are given.\n\n- `@param {string} color` - a valid RGB hex code without #\n- `@param {number} percentage` - a valid percentage value between 0 and 100\n- `@param {boolean} prefix` - (Optional) true/false. Whether the output should include #\n- `@return {Array\u003cstring\u003e}` - array with hex codes\n\n## License\n\nMIT © arjunkdot\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farjunkdot%2Fhexashades","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farjunkdot%2Fhexashades","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farjunkdot%2Fhexashades/lists"}