Swiftpack.co -  jjotaum/Chroma as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
jjotaum/Chroma
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")

Chroma

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

Usage

$ Chroma --help

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

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

Installation

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

GitHub

link
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

0.2.1
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