Swiftpack.co -  jjotaum/Chroma as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
A command line tool to generate swift extensions or structs files from .xcassets.
.package(url: "https://github.com/jjotaum/Chroma.git", from: "0.2.1")


A command line tool to generate swift colors definitions from .xcassets files.


$ Chroma --help

USAGE: chroma [--name <name>] [--output <output>] [--platform <platform>]

  -n, --name <name>       Defines the name of the generated file. (default:
  -o, --output <output>   Specifies generated file type.
                          Supported values: "extension","struct". (default:
  -p, --platform <platform>
                          Specifies the platform compatibility of the exported
                          iOS, macOS, swiftUI (default: iOS)
  -h, --help              Show help information.


Clone Chroma on your machine:

$ git clone https://github.com/jjotaum/Chroma.git

Navigate to it's directory:

$ cd Chroma

Execute install script

$ ./install.sh

Chroma should now be installed on /usr/local/bin and can be accessed via terminal.

$ chroma


Stars: 3
Last commit: 2 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

2 weeks ago
  • Fixed bug where file name coincidence could lead to write unwanted file.
  • Fixed incorrect format on README file.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API