Skip to content
This repository has been archived by the owner on Sep 6, 2018. It is now read-only.

Latest commit

 

History

History
23 lines (17 loc) · 1.09 KB

Colors.md

File metadata and controls

23 lines (17 loc) · 1.09 KB

Colors parser

Input

The colors parser supports multiple input file types:

  • CLR: NSColor​List palette file (see docs). When you create color palettes in image editors or in Xcode, these are stored in ~/Library/Colors.
  • JSON: Simple root object where each key is the name, each value is a hex color string.
  • TXT: Each line has a name and a color, separated by a :. A color can either be a color hex value, or the name of another color in the file.
  • XML: Android colors.xml file parser (see docs).

Output

The output context has the following structure:

  • palettes: Array of:
    • name : String — name of the palette
    • colors: Array of:
      • name : String — name of each color
      • red : String — hex value of the red component
      • green: String — hex value of the green component
      • blue : String — hex value of the blue component
      • alpha: String — hex value of the alpha component