From 2ab2ff8d8a5169dfcee74823dee3553c96efb123 Mon Sep 17 00:00:00 2001 From: ismailgulek Date: Fri, 30 Apr 2021 16:08:44 +0300 Subject: [PATCH] Remove toast color, add comments for colors --- DesignKit/Source/Colors.swift | 21 +++++++++++++++++-- DesignKit/Variants/Dark/DarkColors.swift | 2 -- .../Variants/Default/DefaultColors.swift | 2 -- 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/DesignKit/Source/Colors.swift b/DesignKit/Source/Colors.swift index b5717370d..b5dc66261 100644 --- a/DesignKit/Source/Colors.swift +++ b/DesignKit/Source/Colors.swift @@ -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 } } diff --git a/DesignKit/Variants/Dark/DarkColors.swift b/DesignKit/Variants/Dark/DarkColors.swift index b17acedb5..a1cf2ac54 100644 --- a/DesignKit/Variants/Dark/DarkColors.swift +++ b/DesignKit/Variants/Dark/DarkColors.swift @@ -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) diff --git a/DesignKit/Variants/Default/DefaultColors.swift b/DesignKit/Variants/Default/DefaultColors.swift index c046c746c..1b9072d3b 100644 --- a/DesignKit/Variants/Default/DefaultColors.swift +++ b/DesignKit/Variants/Default/DefaultColors.swift @@ -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)