Created
April 10, 2017 23:30
-
-
Save guoc/28fad999ccc2f8583ec8f5dce96c9ef6 to your computer and use it in GitHub Desktop.
UIColor (system's color scheme)
This file contains hidden or 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 { | |
struct System { // 20170411 from https://developer.apple.com/ios/human-interface-guidelines/visual-design/color/ | |
private init() {} | |
static let red = UIColor(red: 255/255, green: 59/255, blue: 48/255, alpha: 1.0) | |
static let orange = UIColor(red: 255/255, green: 149/255, blue: 0/255, alpha: 1.0) | |
static let yellow = UIColor(red: 255/255, green: 204/255, blue: 0/255, alpha: 1.0) | |
static let green = UIColor(red: 76/255, green: 217/255, blue: 100/255, alpha: 1.0) | |
static let tealBlue = UIColor(red: 90/255, green: 200/255, blue: 250/255, alpha: 1.0) | |
static let blue = UIColor(red: 0/255, green: 122/255, blue: 255/255, alpha: 1.0) | |
static let purple = UIColor(red: 88/255, green: 86/255, blue: 214/255, alpha: 1.0) | |
static let pink = UIColor(red: 255/255, green: 45/255, blue: 85/255, alpha: 1.0) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment