You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

59 lines
1.4 KiB

//
// UIColorExtension.swift
// GMERemittance
//
// Created by Fm-user on 2/2/18.
// Copyright © 2018 Gobal Money Express Co. Ltd. All rights reserved.
//
import UIKit
extension UIColor {
convenience init(hex: Int) {
let components = (
R: CGFloat((hex >> 16) & 0xff) / 255,
G: CGFloat((hex >> 08) & 0xff) / 255,
B: CGFloat((hex >> 00) & 0xff) / 255
)
self.init(red: components.R, green: components.G, blue: components.B, alpha: 1)
}
// origin: ed1b24 // vivid red: ff2727 // cherry tomato: E94B3C // coral red: ff4040
class var themeRed: UIColor {
return .init(hex: "#ed1b24")
}
// 2D368F // origin: 303e9f // princess blue: 00539C // nebulas blue: 3F69AA // galaxy blue: #2A4B7C
class var themeBlue: UIColor {
return .init(hex: "#303e9f")
}
class var themeWhite: UIColor {
return .init(hex: "#ffffff")
}
class var themeDarkRed: UIColor {
return .init(hex: "#be0007")
}
class var themeBorderColor: UIColor {
return .init(red:0.91, green:0.93, blue:0.95, alpha:1.0)
}
class var themeTextColor: UIColor {
return .init(hex: "4A4A4A")
}
class var themeTitleTextColor: UIColor {
return .init(hex: "6E6E6E")
}
class var themeBackgroundColor: UIColor {
return .init(hex: "E7EDF2")
}
class var themeBackgroundGray: UIColor {
return UIColor.black.withAlphaComponent(0.5)
}
}