22 lines
660 B
Swift
22 lines
660 B
Swift
import SwiftUI
|
|
import UIKit
|
|
|
|
enum Theme {
|
|
static let green = Color(red: 0.18, green: 0.72, blue: 0.32)
|
|
static let yellow = Color(red: 0.96, green: 0.86, blue: 0.12)
|
|
|
|
static let background = Color(UIColor { traits in
|
|
traits.userInterfaceStyle == .dark ? .black : .white
|
|
})
|
|
|
|
static let surface = Color(UIColor { traits in
|
|
traits.userInterfaceStyle == .dark
|
|
? UIColor(red: 0.10, green: 0.10, blue: 0.10, alpha: 1)
|
|
: UIColor(red: 0.97, green: 0.97, blue: 0.97, alpha: 1)
|
|
})
|
|
|
|
static let primaryText = Color(UIColor { traits in
|
|
traits.userInterfaceStyle == .dark ? .white : .black
|
|
})
|
|
}
|