AmitaiB / FlatUIColors

Flat UI color palette helpers written in Swift.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FlatUIColors (swift)

CocoaPods CocoaPods CocoaPods GitHub tag

install

Make sure you have the latest pre-release version of CocoaPods (gem install cocoapods --pre), which has Swift support. At the time of this writing, that would be 0.36.0.beta.1.

Add to your Podfile:

pod 'FlatUIColors'

And then from the shell:

$ pod install

use

There are a number of static functions defined on the struct FlatUIColors that return UIColor or NSColor objects. The return type of these functions is OSColor, which is a platform-aware typealias.

Just import and use:

import FlatUIColors

let turquoise: NSColor = FlatUIColors.turquoiseColor()

// Optional CGFloat for setting alpha value
let emerald: UIColor = FlatUIColors.emeraldColor(0.25)

The following is a list of all of the static color functions defined on struct FlatUIColors.

public static func turquoiseColor() -> OSColor!
public static func greenSeaColor() -> OSColor!
public static func emeraldColor() -> OSColor!
public static func nephritisColor() -> OSColor!
public static func peterRiverColor() -> OSColor!
public static func belizeHoleColor() -> OSColor!
public static func amethystColor() -> OSColor!
public static func wisteriaColor() -> OSColor!
public static func wetAsphaltColor() -> OSColor!
public static func midnightBlueColor() -> OSColor!
public static func sunflowerColor() -> OSColor!
public static func tangerineColor() -> OSColor!
public static func carrotColor() -> OSColor!
public static func pumpkinColor() -> OSColor!
public static func alizarinColor() -> OSColor!
public static func pomegranateColor() -> OSColor!
public static func cloudsColor() -> OSColor!
public static func silverColor() -> OSColor!
public static func concreteColor() -> OSColor!
public static func asbestosColor() -> OSColor!

Colors Palette

contributors / authors

bryn austin bellomy < bryn.bellomy@gmail.com >

About

Flat UI color palette helpers written in Swift.

License:MIT License


Languages

Language:Swift 86.1%Language:Ruby 7.1%Language:Objective-C 6.7%