{"id":16625748,"url":"https://github.com/aleclarson/hex-kit","last_synced_at":"2025-09-16T03:32:22.954Z","repository":{"id":18877103,"uuid":"22094384","full_name":"aleclarson/hex-kit","owner":"aleclarson","description":"Convert hex triplets into UIColors and CGColors!","archived":false,"fork":false,"pushed_at":"2015-09-10T15:52:18.000Z","size":189,"stargazers_count":68,"open_issues_count":2,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-30T01:15:27.643Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/aleclarson.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":"2014-07-22T07:09:46.000Z","updated_at":"2022-09-23T08:29:31.000Z","dependencies_parsed_at":"2022-09-25T03:01:05.645Z","dependency_job_id":null,"html_url":"https://github.com/aleclarson/hex-kit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleclarson%2Fhex-kit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleclarson%2Fhex-kit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleclarson%2Fhex-kit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleclarson%2Fhex-kit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aleclarson","download_url":"https://codeload.github.com/aleclarson/hex-kit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233200418,"owners_count":18640370,"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-10-12T04:07:05.078Z","updated_at":"2025-09-16T03:32:17.607Z","avatar_url":"https://github.com/aleclarson.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"http://i.imgur.com/g09gNAA.jpg\"/\u003e\n\nA simple library for converting a [hex triplet](http://en.wikipedia.org/wiki/Web_colors#Hex_triplet) (represented by a `String`) into a `UIColor` or `CGColor`!\n\n```Swift\nlet myUIColor = \"#FFFFFF\".UIColor\nlet myCGColor = \"#FFFFFF\".CGColor\n```\n\nSpecifying the color's `alpha` is very simple.\n\n```Swift\nlet myUIColor = \"#FFFFFF\".UIColor(0.5)\n```\n\nAbbreviations for colors are allowed and typing a hash `#` is optional. \n\nHere are the supported formats:\n\n```Swift\n\"#123456\"\n\n\"123456\"\n\n\"#123\" // Represents \"#112233\"\n\n\"123\"\n\n\"#12\" // Represents \"#121212\"\n\n\"12\"\n\n\"#F\" // Represents \"#FFFFFF\"\n\n\"F\"\n```\n\nJust add the `Hexes.swift` file to your project, and you're good to go! Enjoy!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleclarson%2Fhex-kit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faleclarson%2Fhex-kit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleclarson%2Fhex-kit/lists"}