clg
subcommands
clr
generates clr file from JSON
clg clr --output ~/Library/Colors/sample.clr sample.json
Options
--output
,-o
- path for output
json
generates JSON from
- clr file
- CSV file
- ASE file a.k.a. "Adobe Swatch Exchange"
clg json --output sample.json ~/Library/Colors/sample.clr
clg json --output sample.json ~/somewhere/sample.ase
clg json --output sample.json ~/somewhere/sample.csv
CSV file format should be like below
<Color Name>,<Red 256>,<Green 256>,<Blue 256>
<Color Name>,<Red 256>,<Green 256>,<Blue 256>
<Color Name>,<Red 256>,<Green 256>,<Blue 256>
Options
--output
,-o
- path for output
code
generates Swift code, Objective-C code, colors.xml from JSON
clg code --output MyColor.swift --code swift sample.json
Options
--output
,-o
- path for output
--code
,-c
- generate specific type of code file
swift
objc
android
- generate specific type of code file