Created
May 25, 2016 13:44
-
-
Save moonrailgun/5a2eab396b19c7c0857909599601222d to your computer and use it in GitHub Desktop.
a flat color code for swift and this scheme is come from http://flatuicolors.com/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
extension UIColor{ | |
public class func turquoiseFlatColor() -> UIColor { | |
return UIColor(red: 26 / 255, green: 188 / 255, blue: 156 / 255, alpha: 1.0) | |
} | |
public class func greenSeaFlatColor() -> UIColor { | |
return UIColor(red: 22 / 255, green: 160 / 255, blue: 133 / 255, alpha: 1.0) | |
} | |
public class func emeraldFlatColor() -> UIColor { | |
return UIColor(red: 46 / 255, green: 204 / 255, blue: 113 / 255, alpha: 1.0) | |
} | |
public class func nephritisFlatColor() -> UIColor { | |
return UIColor(red: 39 / 255, green: 174 / 255, blue: 96 / 255, alpha: 1.0) | |
} | |
public class func peterRiverFlatColor() -> UIColor { | |
return UIColor(red: 52 / 255, green: 152 / 255, blue: 219 / 255, alpha: 1.0) | |
} | |
public class func belizeHoleFlatColor() -> UIColor { | |
return UIColor(red: 41 / 255, green: 128 / 255, blue: 185 / 255, alpha: 1.0) | |
} | |
public class func amethystFlatColor() -> UIColor { | |
return UIColor(red: 155 / 255, green: 89 / 255, blue: 182 / 255, alpha: 1.0) | |
} | |
public class func wisteriaFlatColor() -> UIColor { | |
return UIColor(red: 142 / 255, green: 68 / 255, blue: 173 / 255, alpha: 1.0) | |
} | |
public class func wetAsphaltFlatColor() -> UIColor { | |
return UIColor(red: 52 / 255, green: 73 / 255, blue: 94 / 255, alpha: 1.0) | |
} | |
public class func midnightBlueFlatColor() -> UIColor { | |
return UIColor(red: 44 / 255, green: 62 / 255, blue: 80 / 255, alpha: 1.0) | |
} | |
public class func sunFlowerFlatColor() -> UIColor { | |
return UIColor(red: 241 / 255, green: 196 / 255, blue: 15 / 255, alpha: 1.0) | |
} | |
public class func carrotFlatColor() -> UIColor { | |
return UIColor(red: 230 / 255, green: 126 / 255, blue: 34 / 255, alpha: 1.0) | |
} | |
public class func alizarinFlatColor() -> UIColor { | |
return UIColor(red: 231 / 255, green: 76 / 255, blue: 60 / 255, alpha: 1.0) | |
} | |
public class func cloudsFlatColor() -> UIColor { | |
return UIColor(red: 236 / 255, green: 240 / 255, blue: 241 / 255, alpha: 1.0) | |
} | |
public class func concreteFlatColor() -> UIColor { | |
return UIColor(red: 149 / 255, green: 165 / 255, blue: 166 / 255, alpha: 1.0) | |
} | |
public class func orangeFlatColor() -> UIColor { | |
return UIColor(red: 243 / 255, green: 156 / 255, blue: 18 / 255, alpha: 1.0) | |
} | |
public class func pumpkinFlatColor() -> UIColor { | |
return UIColor(red: 211 / 255, green: 84 / 255, blue: 0 / 255, alpha: 1.0) | |
} | |
public class func pomegranateFlatColor() -> UIColor { | |
return UIColor(red: 192 / 255, green: 57 / 255, blue: 43 / 255, alpha: 1.0) | |
} | |
public class func silverFlatColor() -> UIColor { | |
return UIColor(red: 189 / 255, green: 195 / 255, blue: 199 / 255, alpha: 1.0) | |
} | |
public class func asbestosFlatColor() -> UIColor { | |
return UIColor(red: 127 / 255, green: 140 / 255, blue: 141 / 255, alpha: 1.0) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment