knmsyk / clg

Supports generate clr file or code from ASE file a.k.a. "Adobe Swatch Exchange" etc.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Supports generate clr file or code from ASE file a.k.a. "Adobe Swatch Exchange" etc.


Languages

Language:Swift 81.5%Language:Objective-C 18.1%Language:Ruby 0.4%