]> git.r.bdr.sh - rbdr/map/blob - Map/Presentation/Theme/Color+theme.swift
d09fabec6a192e4ef26f591d65a5315bf8f75bd0
[rbdr/map] / Map / Presentation / Theme / Color+theme.swift
1 /*
2 Copyright (C) 2024 Rubén Beltrán del Río
3
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see https://map.tranquil.systems.
16 */
17 import SwiftUI
18
19 extension Color {
20 struct theme {
21 static let darkSlate = Color("Dark Slate")
22 static let jasperRed = Color("Jasper Red")
23 static let olympicBlue = Color("Olympic Blue")
24 static let lightPorcelainGreen = Color("Light Porcelain Green")
25 static let naplesYellow = Color("Naples Yellow")
26 static let hermosaPink = Color("Hermosa Pink")
27 static let neutralGray = Color("Neutral Gray")
28 static let lightNeutralGray = Color("Light Neutral Gray")
29 static let darkNeutralGray = Color("Dark Neutral Gray")
30 static let darkerNeutralGray = Color("Darker Neutral Gray")
31 }
32
33 struct map {
34 static let labelColor = Color.theme.darkSlate
35 static let axisColor = Color.theme.darkSlate
36 static let vertexColor = Color.theme.darkSlate
37 static let blockerColor = Color.theme.jasperRed
38 static let opportunityColor = Color.theme.olympicBlue
39 static let stageForeground = Color.theme.lightNeutralGray
40 static let stageBackground = Color.white
41 static let groupColors = [
42 Color.theme.olympicBlue,
43 Color.theme.jasperRed,
44 Color.theme.lightPorcelainGreen,
45 Color.theme.naplesYellow,
46 Color.theme.hermosaPink,
47 ]
48 }
49
50 struct ui {
51 static let foreground = Color("Foreground")
52 static let background = Color("Background")
53 }
54 }