ListlessiOS/Helpers/AppColors.swift (893B)
1import SwiftUI
2import UIKit
3
4extension Color {
5
6 static let outerBackground = Color(uiColor: UIColor { traits in
7 traits.userInterfaceStyle == .dark
8 ? .black
9 : UIColor(red: 0.922, green: 0.906, blue: 0.886, alpha: 1)
10 })
11
12
13 static let itemCard = Color(uiColor: UIColor { traits in
14 traits.userInterfaceStyle == .dark
15 ? UIColor.secondarySystemBackground
16 : .white
17 })
18
19
20 static let completedSelected = Color(uiColor: UIColor { traits in
21 traits.userInterfaceStyle == .dark
22 ? UIColor(white: 0.12, alpha: 1)
23 : UIColor(red: 0.88, green: 0.86, blue: 0.83, alpha: 1)
24 })
25}