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.3")


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: 1 week 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.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Release Notes

1 week ago
  • Add logic to format variable names & avoid invalid files being generated

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