{"id":17068940,"url":"https://github.com/kgn/kgncolor","last_synced_at":"2025-07-09T22:34:52.258Z","repository":{"id":56917166,"uuid":"44389786","full_name":"kgn/KGNColor","owner":"kgn","description":"A collection of UIColor extensions","archived":false,"fork":false,"pushed_at":"2020-02-20T06:38:58.000Z","size":63,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-15T07:02:08.515Z","etag":null,"topics":["color","hex","swift","ui","uikit"],"latest_commit_sha":null,"homepage":null,"language":"Swift","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/kgn.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":"2015-10-16T14:19:53.000Z","updated_at":"2022-05-23T18:37:31.000Z","dependencies_parsed_at":"2022-08-21T03:50:39.854Z","dependency_job_id":null,"html_url":"https://github.com/kgn/KGNColor","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/kgn/KGNColor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kgn%2FKGNColor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kgn%2FKGNColor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kgn%2FKGNColor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kgn%2FKGNColor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kgn","download_url":"https://codeload.github.com/kgn/KGNColor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kgn%2FKGNColor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264504615,"owners_count":23618831,"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","hex","swift","ui","uikit"],"created_at":"2024-10-14T11:15:39.855Z","updated_at":"2025-07-09T22:34:52.241Z","avatar_url":"https://github.com/kgn.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KGNColor\n\n`KGNColor` is a collection of helpful `UIColor` extensions.\n\n[![Swift 3](http://img.shields.io/badge/Swift-3-orange.svg)]()\n[![Release](https://img.shields.io/github/release/kgn/KGNColor.svg)](/releases)\n[![License](http://img.shields.io/badge/License-MIT-lightgrey.svg)](/LICENSE)\n\n[![Build Status](https://travis-ci.org/kgn/KGNColor.svg)](https://travis-ci.org/kgn/KGNColor)\n[![Test Coverage](http://img.shields.io/badge/Tests-100%25-green.svg)]()\n[![Carthage Compatible](https://img.shields.io/badge/Carthage-Compatible-4BC51D.svg)](https://github.com/Carthage/Carthage)\n[![CocoaPods Version](https://img.shields.io/cocoapods/v/KGNColor.svg)](https://cocoapods.org/pods/KGNColor)\n[![CocoaPods Platforms](https://img.shields.io/cocoapods/p/KGNColor.svg)](https://cocoapods.org/pods/KGNColor)\n\n[![Twitter](https://img.shields.io/badge/Twitter-@iamkgn-55ACEE.svg)](http://twitter.com/iamkgn)\n[![Follow](https://img.shields.io/github/followers/kgn.svg?style=social\u0026label=Follow%20%40kgn)](https://github.com/kgn)\n[![Star](https://img.shields.io/github/stars/kgn/KGNColor.svg?style=social\u0026label=Star)](https://github.com/kgn/KGNColor)\n\n## Installing\n\n### Carthage\n```\ngithub \"kgn/KGNColor\"\n```\n\n### CocoaPods\n```\npod 'KGNColor'\n```\n\n## Examples\n\n### Hex Initializer\nUsing a hex value is often the easiest way to use the exact color from a design.\n``` Swift\nlet tintColor = UIColor(hex: 0x2DFF5F)\n```\n\n### Components\nUsed this helpful tuple to get the `red`, `green`, `blue` and `alpha` values of a `UIColor`.\n\n``` Swift\nlet tintColor = UIColor.brown\nprint(\"red: \\(tintColor.components.red)\")\nprint(\"green: \\(tintColor.components.green)\")\nprint(\"blue: \\(tintColor.components.blue)\")\nprint(\"alpha: \\(tintColor.components.alpha)\")\n```\n\n### Invert a Color\n``` Swift\nlet tintColor = UIColor.red.inverted\n```\n\n### Lighten a Color\n``` Swift\nlet tintColor = UIColor.blue.lighten(0.5)\n```\n\n### Darken a Color\n``` Swift\nlet tintColor = UIColor.green.darken(0.5)\n```\n\n## Progress\n- [X] Badges\n- [X] Tests\n- [X] Travis\n- [X] Carthage\n- [X] CocoaPods\n- [X] Description\n- [X] Documentation\n- [X] AppleTV\n- [X] AppleWatch\n- [X] Prebuilt Frameworks\n- [ ] Travis Test Matrix\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkgn%2Fkgncolor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkgn%2Fkgncolor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkgn%2Fkgncolor/lists"}