{"id":19759202,"url":"https://github.com/jjotaum/chromacli","last_synced_at":"2025-04-30T12:32:32.983Z","repository":{"id":37231284,"uuid":"270468938","full_name":"jjotaum/ChromaCLI","owner":"jjotaum","description":"Xcode Assets Macros alternative CLI to automatically generate static properties corresponding to color assets on SwiftUI, UIKit or AppKIt projects.","archived":false,"fork":false,"pushed_at":"2024-08-10T20:55:06.000Z","size":49,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T01:51:14.532Z","etag":null,"topics":["assets","assets-mobile","command-line-tool","generator","ios","macos","macros","swift","swiftui","xcode"],"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/jjotaum.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-08T00:07:01.000Z","updated_at":"2024-08-10T20:54:08.000Z","dependencies_parsed_at":"2024-11-12T03:29:12.622Z","dependency_job_id":"45b2f056-8cf1-4568-b039-72203fd892db","html_url":"https://github.com/jjotaum/ChromaCLI","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjotaum%2FChromaCLI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjotaum%2FChromaCLI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjotaum%2FChromaCLI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjotaum%2FChromaCLI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jjotaum","download_url":"https://codeload.github.com/jjotaum/ChromaCLI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251701796,"owners_count":21629896,"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":["assets","assets-mobile","command-line-tool","generator","ios","macos","macros","swift","swiftui","xcode"],"created_at":"2024-11-12T03:28:21.006Z","updated_at":"2025-04-30T12:32:32.646Z","avatar_url":"https://github.com/jjotaum.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chroma\nXcode Assets Macros alternative CLI to automatically generate static properties corresponding to color assets on SwiftUI, UIKit or AppKIt projects.\n\n\n### Usage\n\n```\n$ Chroma --help\n\nUSAGE: chroma --asset \u003casset\u003e --path \u003cpath\u003e [--type \u003ctype\u003e] [--framework \u003cframework\u003e]\n\nOPTIONS:\n  -a, --asset \u003casset\u003e     The path of .xcasset file.\n  -p, --path \u003cpath\u003e       The path of the generated .swift file.\n  -t, --type \u003ctype\u003e       The output type of generated .swift file.\n                          Supported values: extension, struct. (default:\n                          extension)\n  --framework \u003cframework\u003e The framework compatibility of generated .swift file.\n                          Supported values: AppKit, SwiftUI, UIKit. (default:\n                          SwiftUI)\n  -h, --help              Show help information.\n\n```\n\n### Installation\n\nClone Chroma on your machine:\n\n```\n$ git clone https://github.com/jjotaum/Chroma.git\n```\nNavigate to it's directory:\n\n```\n$ cd Chroma\n```\n\nExecute install script\n```\n$ ./install.sh\n```\nChroma should now be installed on /usr/local/bin and can be accessed via terminal.\n```\n$ chroma\n```\n\n### Integrate Chroma on your Xcode Project\n\nYou can easily integrate Chroma on your Xcode project to maintain your generated files updated.\n\nSelect your project target on Xcode \u003e go to `Build Phases` tab \u003e Press on `+` \u003e Select `New Run Script Phase` \u003e Uncheck `Based on dependency analysis` option.\n\nCopy \u0026 paste below command on your new script phase and update paths \u0026 platform parameters according to your needs.\n\n```\nchroma --asset MyProject/Assets.xcassets --path MyProject/Extensions/Colors.swift --framework SwiftUI\n```\nOptionally you can rename your new `Run Script` to `Chroma`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjjotaum%2Fchromacli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjjotaum%2Fchromacli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjjotaum%2Fchromacli/lists"}