UIColor-CSSColors

Extend UIColor with CSS colors

MIT License

Stars
26
Committers
1

UIColor+CSSColors

UIColor+CSSColors is a category that extends UIColor with methods to get the CSS/SVG colors. That's it.

Installation with CocoaPods

platform :ios

pod 'UIColor+CSSColors'

Usage

Get the color you want from the UIColor class method following this naming pattern: css<# color_name #>Color. To see all the available colors check the w3 spec.

someViewYouWantToColor.backgroundColor = [UIColor flatPalegreenColor];

License

UIColor+CSSColors is released under the MIT license.


Hacked together with passion by @mokagio