Skip to content

Instantly share code, notes, and snippets.

@alexnikol
Last active April 18, 2020 08:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexnikol/85e3d0f35288626ad46d732bc3f83511 to your computer and use it in GitHub Desktop.
Save alexnikol/85e3d0f35288626ad46d732bc3f83511 to your computer and use it in GitHub Desktop.
ColorManager
struct ColorManager {
static let mainRedColor = UIColor(red: 1, green: 0.28, blue: 0.29, alpha: 1)
static let mainWhiteColor = UIColor.white
static let mainBlueColor = UIColor(red: 0.51, green: 0.76, blue: 0.83, alpha: 1)
static let petBorderCellColor = UIColor(red: 0.85, green: 0.93, blue: 0.95, alpha: 1)
static let mainBlueBackground = UIColor(red: 0.9, green: 0.95, blue: 0.96, alpha: 1)
static let mainGrayColor = UIColor.darkGray
static let lightestGrayColor = UIColor(red: 0.85, green: 0.85, blue: 0.83, alpha: 1)
static let btnRedDefault = UIColor(red: 1, green: 0.28, blue: 0.29, alpha: 1)
static let btnRedHighlighted = UIColor(red: 0.9, green: 0.08, blue: 0.09, alpha: 1)
static let btnRedDisabled = UIColor(red: 0.99, green: 0.8, blue: 0.8, alpha: 1)
static let btnBlueDefault = UIColor(red: 0.51, green: 0.76, blue: 0.83, alpha: 1)
static let btnBlueHighlighted = UIColor(red: 0.36, green: 0.56, blue: 0.63, alpha: 1)
static let btnBlueDisabled = UIColor(red: 0.9, green: 0.95, blue: 0.96, alpha: 1)
}
struct FontGlobal {
enum FontType: String {
case bold = "Quicksand-Bold"
case regular = "Quicksand-Regular"
case medium = "Quicksand-Medium"
}
static func get(type: FontType, _ size: CGFloat = 12.0) -> UIFont {
return UIFont(descriptor: UIFontDescriptor(name: type.rawValue, size: size), size: size)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment