Skip to content

Instantly share code, notes, and snippets.

@mono0926
Created September 24, 2016 13:09
Show Gist options
  • Save mono0926/a16c496b72b3ca9730f81c01e9fbc3da to your computer and use it in GitHub Desktop.
Save mono0926/a16c496b72b3ca9730f81c01e9fbc3da to your computer and use it in GitHub Desktop.
#colorLiteral
import UIKit
extension UIColor {
class var theme: UIColor { return #colorLiteral(red: 0.4274509804, green: 0.7568627451, blue: 0.6196078431, alpha: 1) }
class var notification: UIColor { return #colorLiteral(red: 1, green: 0.4666666667, blue: 0, alpha: 1) }
class var negative: UIColor { return #colorLiteral(red: 0.9843137255, green: 0.4588235294, blue: 0.4588235294, alpha: 1) }
class var darkBackground: UIColor { return #colorLiteral(red: 0.1725490196, green: 0.1725490196, blue: 0.1725490196, alpha: 1) }
class var darkLightBackground: UIColor { return #colorLiteral(red: 0.3401621282, green: 0.3401621282, blue: 0.3401621282, alpha: 1) }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment