Last active
April 18, 2020 08:30
-
-
Save alexnikol/85e3d0f35288626ad46d732bc3f83511 to your computer and use it in GitHub Desktop.
ColorManager
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
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