Giter Club home page Giter Club logo

colortools's Introduction

Mac OS X developer color tools

Small tools to import and export colors from the Mac OS X ColorPicker palettes (.CLR).

  • Adobe Swatch Exchange (.ASE) import and export.
  • Hex color list to system palette.
  • Simple UIColor category generation from color lists.
  • Color search&replace from .xib/.storyboard

You can find binaries of those tools in the Releases tab up there.

SwatchInstall.app

This is a desktop app that allows you to drop an ASE file on it and imports it into ColorPicker.

Ase2Clr

This is a command line tool that reads a Adobe Swatch Excahnge (ASE) file and outputs a .clr file that you can copy to your ~/Library/Colors directory and use from the standard ColorPicker (third tab, palette). It can also install it for you with -i.

  • Supports RGB/CMYK and Gray colorspaces (Lab values will show black).
  • Right now it ignores groups in the ASE file.

Usage:

Ase2Clr FileName.ase

Will produce Filename.clr in the same path.

Ase2Clr FileName.ase -i

Will install the generated file in ~/Library/Colors. You might need to re-open the colorpicker for it to refresh the color lists.

Clr2Ase

This tool allows you to read a Clr file or a named ColorPicker palette and export an ASE file that you can load in Adobe Suite.

 Clr2Ase "Name of color list"

Will produce Name of color list.ase.

Html2Clr

This tool reads a file containing a list of hex-coded colors and outputs a .clr file for ColorPicker or installs the list in the system color picker as a new palette.

The input format is #RRGGBB colors in separate lines:

#fa3ada
#cada32
...

The usage is analog to Ase2Clr:

Html2Clr File.txt [-i]

Clr2Obj

This tool creates UIColor (iOS) categories from system colorlists (either installed or from a .clr file). Note that this tool is very basic. Duplication of methods is not checked, and only RGBA colors are generated.

Usage:

Clr2Obj "Color List"|File.clr [CategoryName]

xibcolor

This is a python script to search and replace colors inside xib/storyboard files (only xml format).

BEWARE: This will overwrite the file! Back up your file first (or have it commited in version control).

Usage:

xibcolor file [-l|replacements|["#fromcolor" "#tocolor"]]
  file          a .storyboard or xib in new XML format
  -l            list colors present in the file
  replacements  a file consisting of pairs of hex-coded from->to colors
  #color        a pair of colors to replace

(c) Ramon Poca 2014. MIT Licensed.

colortools's People

Contributors

kenji21 avatar ramonpoca avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.