{"id":24839415,"url":"https://github.com/devlander-software/colors","last_synced_at":"2026-01-31T22:31:02.076Z","repository":{"id":249287183,"uuid":"829975877","full_name":"Devlander-Software/colors","owner":"Devlander-Software","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-13T02:18:34.000Z","size":55643,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"production","last_synced_at":"2025-10-14T13:32:48.137Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Devlander-Software.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"landonwjohnson"}},"created_at":"2024-07-17T11:12:33.000Z","updated_at":"2024-12-13T02:18:39.000Z","dependencies_parsed_at":"2025-10-14T13:41:07.425Z","dependency_job_id":null,"html_url":"https://github.com/Devlander-Software/colors","commit_stats":null,"previous_names":["devlander-software/colors"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Devlander-Software/colors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devlander-Software%2Fcolors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devlander-Software%2Fcolors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devlander-Software%2Fcolors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devlander-Software%2Fcolors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Devlander-Software","download_url":"https://codeload.github.com/Devlander-Software/colors/tar.gz/refs/heads/production","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devlander-Software%2Fcolors/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28958341,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T22:20:19.638Z","status":"ssl_error","status_checked_at":"2026-01-31T22:18:07.061Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-01-31T06:43:07.400Z","updated_at":"2026-01-31T22:31:02.061Z","avatar_url":"https://github.com/Devlander-Software.png","language":"TypeScript","funding_links":["https://github.com/sponsors/landonwjohnson"],"categories":[],"sub_categories":[],"readme":"# Colors\n\n\n## Hits\n[![npm downloads](https://img.shields.io/npm/dm/@devlander/colors.svg)](https://www.npmjs.com/package/@devlander/colors)  \n[![wakatime](https://wakatime.com/badge/user/bd50b6c5-e0ca-4937-83b3-ab2d13adbc73/project/02037e5a-4e97-4cd5-872c-df41ad2d6b67.svg)](https://wakatime.com/badge/user/bd50b6c5-e0ca-4937-83b3-ab2d13adbc73/project/02037e5a-4e97-4cd5-872c-df41ad2d6b67)\n\n## Join My Dev Community\n[![Join Devlander on Discord](https://img.shields.io/badge/Discord-Devlander-%235865F2)](https://bit.ly/devlander-discord-invite)  \n[![Join Devlander on Twitch](https://img.shields.io/twitch/status/devlander)](https://bit.ly/devlander-twitch)  \n[![Reddit](https://img.shields.io/badge/Reddit-r%2Fsoftwareengineersutah-orange?logo=reddit)](https://www.reddit.com/r/softwareengineersutah/)\n[![Follow Landon Johnson On Twitter](https://img.shields.io/twitter/follow/landonwjohnson.svg?style=social\u0026label=Follow)](https://bit.ly/landonwjohnson-on-twitter)  \n[![Join the discussion on Github](https://img.shields.io/badge/Github%20Discussions%20%26%20Support-Chat%20now!-blue)](https://github.com/orgs/Devlander-Software/discussions)  \n\n## Overview\n\nThe Devlander Colors package provides a collection of color utilities for JavaScript, including color pickers, color schemes, and palette generation. It's used across various projects to manage and utilize color schemes effectively.\n\n## Installation\n\nYou can install the package using either Yarn or npm:\n\n```sh\nyarn add @devlander/colors\n```\n\nor\n\n```sh\nnpm install @devlander/colors\n```\n\n## Usage\n\nTo use the main package, you can import the `Color` class and other utilities as follows:\n\n```typescript\nimport { Color } from \"@devlander/colors\"\n\n// Create a new color instance\nconst myColor = new Color('#3498db')\n\n// Darken the color\nconst darkenedColor = myColor.darken(10).hex()\nconsole.log(darkenedColor) // Output: a darkened hex color\n\n// Lighten the color\nconst lightenedColor = myColor.lighten(10).hex()\nconsole.log(lightenedColor) // Output: a lightened hex color\n\n// Get the RGB string representation\nconsole.log(myColor.rgb()) // Output: 'rgb(52, 152, 219)'\n\n// Invert the color\nconst invertedColor = myColor.invert()\nconsole.log(invertedColor) // Output: an inverted hex color\n\n// Apply alpha to the color\nconst colorWithAlpha = myColor.alpha(0.5)\nconsole.log(colorWithAlpha) // Output: hex color with applied alpha\n\n// Blend with another color\nconst secondaryColor = { r: 255, g: 0, b: 0 } // Red color\nconst blendedColor = myColor.blend(50, secondaryColor).hex()\nconsole.log(blendedColor) // Output: a blended hex color\n```\n\n## Available Utilities\n\n- **darkenColor:** Darkens a given color by a factor.\n- **lightenColor:** Lightens a given color by a factor.\n- **blendColors:** Blends two colors based on a given factor.\n- **applyAlphaToColor:** Applies alpha transparency to a color.\n- **toHexColor:** Converts a color object to a hex string.\n- **toRgbString:** Converts a color object to an RGB string.\n- **hexToDecimal:** Converts a hex value to a decimal.\n\n## Get Involved\n\n- **Discord:** Join the Devlander community [here](https://bit.ly/devlander-discord-invite).\n- **npm:** Download the package [@devlander/colors](https://www.npmjs.com/package/@devlander/colors).\n- **GitHub Discussions:** Engage with the community and get support [here](https://github.com/orgs/Devlander-Software/discussions).\n- **Twitch:** Watch live coding sessions [here](https://bit.ly/devlander-twitch).\n- **Twitter:** Follow Landon Johnson [@landonwjohnson](https://bit.ly/landonwjohnson-on-twitter).\n- **Wakatime:** Track our development progress [here](https://wakatime.com/badge/user/bd50b6c5-e0ca-4937-83b3-ab2d13adbc73/project/02037e5a-4e97-4cd5-872c-df41ad2d6b67).\n\n## Future Goals\n\n- Develop functions to generate themes based on colors and parameters.\n- Implement a function to find complementary colors.\n- Create a utility to extract colors from images.\n\n### [Become a Sponsor!](https://bit.ly/sponsor-landonjohnson-github/)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevlander-software%2Fcolors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevlander-software%2Fcolors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevlander-software%2Fcolors/lists"}