IceCubesApp/Packages/DesignSystem/Sources/DesignSystem/Theme.swift
2022-12-24 14:55:04 +01:00

15 lines
558 B
Swift

import SwiftUI
public class Theme: ObservableObject {
enum ThemeKey: String {
case tint, label, primaryBackground, secondaryBackground
}
@AppStorage(ThemeKey.tint.rawValue) public var tintColor: Color = .brand
@AppStorage(ThemeKey.primaryBackground.rawValue) public var primaryBackgroundColor: Color = .primaryBackground
@AppStorage(ThemeKey.secondaryBackground.rawValue) public var secondaryBackgroundColor: Color = .secondaryBackground
@AppStorage(ThemeKey.label.rawValue) public var labelColor: Color = .label
public init() { }
}