Remove toast color, add comments for colors

This commit is contained in:
ismailgulek
2021-04-30 16:08:44 +03:00
parent 95e484f9b9
commit 2ab2ff8d8a
3 changed files with 19 additions and 6 deletions

View File

@@ -20,28 +20,45 @@ import UIKit
/// Colors at https://www.figma.com/file/X4XTH9iS2KGJ2wFKDqkyed/Compound?node-id=1255%3A1104
@objc public protocol Colors {
/// - Focused/Active states
/// - CTAs
var accent: UIColor { get }
/// - Error messages
/// - Content requiring user attention
/// - Notification, alerts
var alert: UIColor { get }
/// - Text
/// - Icons
var primaryContent: UIColor { get }
/// - Text
/// - Icons
var secondaryContent: UIColor { get }
/// - Text
/// - Icons
var tertiaryContent: UIColor { get }
/// - Text
/// - Icons
var quarterlyContent: UIColor { get }
/// Separating line
var separator: UIColor { get }
var toast: UIColor { get }
// Cards, tiles
var tile: UIColor { get }
/// Top navigation background on iOS
var navigation: UIColor { get }
/// Background UI color
var background: UIColor { get }
/// - Names in chat timeline
/// - Avatars default states that include first name letter
var namesAndAvatars: [UIColor] { get }
}

View File

@@ -34,8 +34,6 @@ public class DarkColors: Colors {
public let separator: UIColor = UIColor(rgb: 0x21262C)
public let toast: UIColor = UIColor(rgb: 0xFFFFFF)
public let tile: UIColor = UIColor(rgb: 0x394049)
public let navigation: UIColor = UIColor(rgb: 0x21262C)

View File

@@ -34,8 +34,6 @@ public class DefaultColors: Colors {
public let separator: UIColor = UIColor(rgb: 0xE3E8F0)
public let toast: UIColor = UIColor(rgb: 0xF4F6FA)
public let tile: UIColor = UIColor(rgb: 0xF3F8FD)
public let navigation: UIColor = UIColor(rgb: 0xF4F6FA)