From 9cffb7eda29739f0d824cbf7183c593c2aeb6f7a Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Wed, 30 Aug 2023 08:02:38 +0200 Subject: [PATCH] Add Starfield inspired themes --- .../Sources/DesignSystem/ColorSet.swift | 28 ++++++++++++++++++- .../Sources/DesignSystem/Theme.swift | 2 ++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/Packages/DesignSystem/Sources/DesignSystem/ColorSet.swift b/Packages/DesignSystem/Sources/DesignSystem/ColorSet.swift index 4c4398c9..4fd55dfd 100644 --- a/Packages/DesignSystem/Sources/DesignSystem/ColorSet.swift +++ b/Packages/DesignSystem/Sources/DesignSystem/ColorSet.swift @@ -5,7 +5,8 @@ public let availableColorsSets: [ColorSetCouple] = .init(light: IceCubeNeonLight(), dark: IceCubeNeonDark()), .init(light: DesertLight(), dark: DesertDark()), .init(light: NemesisLight(), dark: NemesisDark()), - .init(light: MediumLight(), dark: MediumDark())] + .init(light: MediumLight(), dark: MediumDark()), + .init(light: ConstellationLight(), dark: ConstellationDark())] public protocol ColorSet { var name: ColorSetName { get } @@ -31,6 +32,8 @@ public enum ColorSetName: String { case nemesisLight = "Nemesis - Light" case mediumLight = "Medium - Light" case mediumDark = "Medium - Dark" + case constellationLight = "Constellation - Light" + case constellationDark = "Constellation - Dark" } public struct ColorSetCouple: Identifiable { @@ -151,3 +154,26 @@ public struct MediumLight: ColorSet { public init() {} } + +public struct ConstellationDark: ColorSet { + public var name: ColorSetName = .constellationDark + public var scheme: ColorScheme = .dark + public var tintColor: Color = .init(hex: 0xFFD966) + public var primaryBackgroundColor: Color = .init(hex: 0x09192C) + public var secondaryBackgroundColor: Color = .init(hex: 0x00557E) + public var labelColor: Color = .init(hex: 0xE2E4E2) + + public init() {} +} + + +public struct ConstellationLight: ColorSet { + public var name: ColorSetName = .constellationLight + public var scheme: ColorScheme = .light + public var tintColor: Color = .init(hex: 0xc82238) + public var primaryBackgroundColor: Color = .init(hex: 0xf4f5f7) + public var secondaryBackgroundColor: Color = .init(hex: 0xacc7e5) + public var labelColor: Color = .black + + public init() {} +} diff --git a/Packages/DesignSystem/Sources/DesignSystem/Theme.swift b/Packages/DesignSystem/Sources/DesignSystem/Theme.swift index 28f7264d..cb7458cf 100644 --- a/Packages/DesignSystem/Sources/DesignSystem/Theme.swift +++ b/Packages/DesignSystem/Sources/DesignSystem/Theme.swift @@ -183,6 +183,8 @@ public class Theme: ObservableObject { NemesisLight(), MediumLight(), MediumDark(), + ConstellationLight(), + ConstellationDark(), ] }