Named colors for UIColor from wikipedia's list of colors
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE.md
README.md
UIColor+MoreColors.h
UIColor+MoreColors.m
UIColor-MoreColors.podspec
gpl-2.0.txt
refresh
remap

README.md

UIColors+MoreColors

Colors are nice. It's also nice to have more than just these:

+ blackColor
+ darkGrayColor
+ lightGrayColor
+ whiteColor
+ grayColor
+ redColor
+ greenColor
+ blueColor
+ cyanColor
+ yellowColor
+ magentaColor
+ orangeColor
+ purpleColor
+ brownColor
+ clearColor

Try 1000+ more. (ノ◕ヮ◕)ノ*:・゚✧

This is based on a blog post by Jeff LaMarche:

http://iphonedevelopment.blogspot.com/2008/11/more-colors-more-compact.html

I used his convenient macro to copy the entire compact list of colors from Wikipedia (the macro was convenient because I did it all with regex [Yes, I parsed HTML with regex and lived]).

Use and abuse at will. This repo should stay up to date with the latest colors as I go look at the swatches and realize something is missing. I will also occassionally add colors (like fedexPurple).

Installation

From CocoaPods

pod 'UIColor-MoreColors', '~> 1.0'

Manually

Added the .h and .m files to your project and import where needed.

Code

The refresh script, which updates the category with new colors from Wikipedia, is written in Python 3 and depends on the unidecode package (and so is GPLv2-licensed).

License

Copyright (c) 2014 Daniel Blakemore, Spencer Phippen.

UIColors+MoreColors category is MIT-licensed.

refresh script is GPL v2-licensed.

See the LICENSE.md file for more details.