Awesome
UIColor+MLPFlatColors
Although the UIColor class comes with built in convenience methods for producing standard colors, most of these colors are too bright and gaudy for any real use other than prototyping. So, here's a category for UIColor that adds 20 new colors that developers may actually want to use in a real app, based off the current trend of flat color schemes. It's called UIColor+MLPFlatColors.
About
UIColor+MLPFlatColors is a category for UIColor that adds class methods to conveniently produce 20 new colors designed for flat or semi-flat interface designs. It also adds some methods for choosing a random color out of these new colors, and a macro for converting hex values to an RGB color.
Usage
Add the UIColor+MLPFlatColors header and implementation file to your project. (.h & .m)
After doing that, you'll be able to produce flat colors by calling the class methods defined in the MLPFlatColors category. Each flat color method is prefixed with the word "flat" for easy recognition in Xcode's code complete.
You can also produce random flat colors with these methods:
+ (UIColor *)randomFlatColor;
+ (UIColor *)randomFlatLightColor;
+ (UIColor *)randomFlatDarkColor;
What to Expect in Future Updates
More colors and convenience methods related to flat UI themes.
<!--- Remove comment when carthage support is in Carthage ------- Carthage is the simplest way to include frameworks in your Cocoa applications. Learn more at https://github.com/Carthage/Carthage To use the latest version of this library, add this to your Cartfile. ``` # Use the latest version github "EddyBorja/UIColor-MLPFlatColors" ``` -->License
UIColor+MLPFlatColors uses the MIT License:
Copyright (c) 2013, Mainloop LLC
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Contributing
These days I'm unable to continue working on this project due to other obligations, but I'm always open to pull requests.
More Stuff
Be sure to check out these other libraries:
MLPSpotlight<br /> MLPAutoCompleteTextField<br /> MLPAccessoryBadge<br /> EBPhotoPages Gallery<br />