@atb-as/theme 3.1.0 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,332 @@
1
+
2
+
3
+ /* Light theme data */
4
+ .light {
5
+ --border-primary: #E7E8E9;
6
+ --border-secondary: #000000;
7
+ --border-focus: #007C92;
8
+ --border-radius-circle: 1.25rem;
9
+ --border-radius-regular: 0.5rem;
10
+ --border-radius-small: 0.25rem;
11
+ --border-width-slim: 0.0625rem;
12
+ --border-width-medium: 0.125rem;
13
+
14
+ --spacings-xLarge: 1.5rem;
15
+ --spacings-large: 1.25rem;
16
+ --spacings-medium: 0.75rem;
17
+ --spacings-small: 0.5rem;
18
+ --spacings-xSmall: 0.25rem;
19
+
20
+ --icon-size-large: 1.75rem;
21
+ --icon-size-normal: 1.25rem;
22
+ --icon-size-small: 0.625rem;
23
+
24
+ --text-colors-primary: #000000;
25
+ --text-colors-secondary: rgba(0, 0, 0, 0.6);
26
+ --text-colors-disabled: rgba(0, 0, 0, 0.2);
27
+
28
+ --colors-background_0-backgroundColor: #FFFFFF;
29
+ --colors-background_0-color: #000000;
30
+ --colors-background_1-backgroundColor: #E7E8E9;
31
+ --colors-background_1-color: #000000;
32
+ --colors-background_2-backgroundColor: #DBDDDE;
33
+ --colors-background_2-color: #000000;
34
+ --colors-background_3-backgroundColor: #CFD2D3;
35
+ --colors-background_3-color: #000000;
36
+ --colors-background_accent-backgroundColor: #37424A;
37
+ --colors-background_accent-color: #FFFFFF;
38
+ --colors-primary_1-backgroundColor: #A2AD00;
39
+ --colors-primary_1-color: #000000;
40
+ --colors-primary_2-backgroundColor: #007C92;
41
+ --colors-primary_2-color: #FFFFFF;
42
+ --colors-primary_3-backgroundColor: #71D6E0;
43
+ --colors-primary_3-color: #000000;
44
+ --colors-primary_destructive-backgroundColor: #A51140;
45
+ --colors-primary_destructive-color: #FFFFFF;
46
+ --colors-secondary_1-backgroundColor: #37424A;
47
+ --colors-secondary_1-color: #FFFFFF;
48
+ --colors-secondary_2-backgroundColor: #AFB3B7;
49
+ --colors-secondary_2-color: #000000;
50
+ --colors-secondary_3-backgroundColor: #5F686E;
51
+ --colors-secondary_3-color: #FFFFFF;
52
+ --colors-secondary_4-backgroundColor: #E7E8E9;
53
+ --colors-secondary_4-color: #000000;
54
+ --colors-transport_city-backgroundColor: #828A00;
55
+ --colors-transport_city-color: #000000;
56
+ --colors-transport_region-backgroundColor: #007C92;
57
+ --colors-transport_region-color: #000000;
58
+ --colors-transport_boat-backgroundColor: #448086;
59
+ --colors-transport_boat-color: #000000;
60
+ --colors-transport_train-backgroundColor: #A51140;
61
+ --colors-transport_train-color: #000000;
62
+ --colors-transport_airport-backgroundColor: #C75B12;
63
+ --colors-transport_airport-color: #000000;
64
+ --colors-transport_plane-backgroundColor: #BE5604;
65
+ --colors-transport_plane-color: #000000;
66
+ --colors-transport_other-backgroundColor: #5F686E;
67
+ --colors-transport_other-color: #000000;
68
+
69
+ --status-valid-main-backgroundColor: #A2AD00;
70
+ --status-valid-main-color: #000000;
71
+ --status-info-main-backgroundColor: #71D6E0;
72
+ --status-info-main-color: #000000;
73
+ --status-warning-main-backgroundColor: #E4D700;
74
+ --status-warning-main-color: #000000;
75
+ --status-error-main-backgroundColor: #A51140;
76
+ --status-error-main-color: #FFFFFF;
77
+ }
78
+
79
+
80
+ /* Dark theme data */
81
+ .dark {
82
+ --border-primary: #2C353B;
83
+ --border-secondary: #FFFFFF;
84
+ --border-focus: #71D6E0;
85
+ --border-radius-circle: 1.25rem;
86
+ --border-radius-regular: 0.5rem;
87
+ --border-radius-small: 0.25rem;
88
+ --border-width-slim: 0.0625rem;
89
+ --border-width-medium: 0.125rem;
90
+
91
+ --spacings-xLarge: 1.5rem;
92
+ --spacings-large: 1.25rem;
93
+ --spacings-medium: 0.75rem;
94
+ --spacings-small: 0.5rem;
95
+ --spacings-xSmall: 0.25rem;
96
+
97
+ --icon-size-large: 1.75rem;
98
+ --icon-size-normal: 1.25rem;
99
+ --icon-size-small: 0.625rem;
100
+
101
+ --text-colors-primary: #FFFFFF;
102
+ --text-colors-secondary: rgba(255, 255, 255, 0.6);
103
+ --text-colors-disabled: rgba(255, 255, 255, 0.2);
104
+
105
+ --colors-background_0-backgroundColor: #000000;
106
+ --colors-background_0-color: #FFFFFF;
107
+ --colors-background_1-backgroundColor: #242B30;
108
+ --colors-background_1-color: #FFFFFF;
109
+ --colors-background_2-backgroundColor: #37424A;
110
+ --colors-background_2-color: #FFFFFF;
111
+ --colors-background_3-backgroundColor: #555E65;
112
+ --colors-background_3-color: #FFFFFF;
113
+ --colors-background_accent-backgroundColor: #37424A;
114
+ --colors-background_accent-color: #FFFFFF;
115
+ --colors-primary_1-backgroundColor: #A2AD00;
116
+ --colors-primary_1-color: #000000;
117
+ --colors-primary_2-backgroundColor: #007C92;
118
+ --colors-primary_2-color: #FFFFFF;
119
+ --colors-primary_3-backgroundColor: #71D6E0;
120
+ --colors-primary_3-color: #000000;
121
+ --colors-primary_destructive-backgroundColor: #A51140;
122
+ --colors-primary_destructive-color: #FFFFFF;
123
+ --colors-secondary_1-backgroundColor: #E7E8E9;
124
+ --colors-secondary_1-color: #000000;
125
+ --colors-secondary_2-backgroundColor: #37424A;
126
+ --colors-secondary_2-color: #FFFFFF;
127
+ --colors-secondary_3-backgroundColor: #006375;
128
+ --colors-secondary_3-color: #FFFFFF;
129
+ --colors-secondary_4-backgroundColor: #2C353B;
130
+ --colors-secondary_4-color: #FFFFFF;
131
+ --colors-transport_city-backgroundColor: #A2AD00;
132
+ --colors-transport_city-color: #000000;
133
+ --colors-transport_region-backgroundColor: #007C92;
134
+ --colors-transport_region-color: #000000;
135
+ --colors-transport_boat-backgroundColor: #AAE6EC;
136
+ --colors-transport_boat-color: #000000;
137
+ --colors-transport_train-backgroundColor: #B74166;
138
+ --colors-transport_train-color: #000000;
139
+ --colors-transport_airport-backgroundColor: #ED6C05;
140
+ --colors-transport_airport-color: #000000;
141
+ --colors-transport_plane-backgroundColor: #BE5604;
142
+ --colors-transport_plane-color: #000000;
143
+ --colors-transport_other-backgroundColor: #878E92;
144
+ --colors-transport_other-color: #000000;
145
+
146
+ --status-valid-main-backgroundColor: #A2AD00;
147
+ --status-valid-main-color: #000000;
148
+ --status-info-main-backgroundColor: #71D6E0;
149
+ --status-info-main-color: #000000;
150
+ --status-warning-main-backgroundColor: #E4D700;
151
+ --status-warning-main-color: #000000;
152
+ --status-error-main-backgroundColor: #A51140;
153
+ --status-error-main-color: #FFFFFF;
154
+ }
155
+
156
+
157
+ @media (prefers-color-scheme: dark) {
158
+ .light:not(.override-light) {
159
+ --border-primary: #2C353B;
160
+ --border-secondary: #FFFFFF;
161
+ --border-focus: #71D6E0;
162
+ --border-radius-circle: 1.25rem;
163
+ --border-radius-regular: 0.5rem;
164
+ --border-radius-small: 0.25rem;
165
+ --border-width-slim: 0.0625rem;
166
+ --border-width-medium: 0.125rem;
167
+
168
+ --spacings-xLarge: 1.5rem;
169
+ --spacings-large: 1.25rem;
170
+ --spacings-medium: 0.75rem;
171
+ --spacings-small: 0.5rem;
172
+ --spacings-xSmall: 0.25rem;
173
+
174
+ --icon-size-large: 1.75rem;
175
+ --icon-size-normal: 1.25rem;
176
+ --icon-size-small: 0.625rem;
177
+
178
+ --text-colors-primary: #FFFFFF;
179
+ --text-colors-secondary: rgba(255, 255, 255, 0.6);
180
+ --text-colors-disabled: rgba(255, 255, 255, 0.2);
181
+
182
+ --colors-background_0-backgroundColor: #000000;
183
+ --colors-background_0-color: #FFFFFF;
184
+ --colors-background_1-backgroundColor: #242B30;
185
+ --colors-background_1-color: #FFFFFF;
186
+ --colors-background_2-backgroundColor: #37424A;
187
+ --colors-background_2-color: #FFFFFF;
188
+ --colors-background_3-backgroundColor: #555E65;
189
+ --colors-background_3-color: #FFFFFF;
190
+ --colors-background_accent-backgroundColor: #37424A;
191
+ --colors-background_accent-color: #FFFFFF;
192
+ --colors-primary_1-backgroundColor: #A2AD00;
193
+ --colors-primary_1-color: #000000;
194
+ --colors-primary_2-backgroundColor: #007C92;
195
+ --colors-primary_2-color: #FFFFFF;
196
+ --colors-primary_3-backgroundColor: #71D6E0;
197
+ --colors-primary_3-color: #000000;
198
+ --colors-primary_destructive-backgroundColor: #A51140;
199
+ --colors-primary_destructive-color: #FFFFFF;
200
+ --colors-secondary_1-backgroundColor: #E7E8E9;
201
+ --colors-secondary_1-color: #000000;
202
+ --colors-secondary_2-backgroundColor: #37424A;
203
+ --colors-secondary_2-color: #FFFFFF;
204
+ --colors-secondary_3-backgroundColor: #006375;
205
+ --colors-secondary_3-color: #FFFFFF;
206
+ --colors-secondary_4-backgroundColor: #2C353B;
207
+ --colors-secondary_4-color: #FFFFFF;
208
+ --colors-transport_city-backgroundColor: #A2AD00;
209
+ --colors-transport_city-color: #000000;
210
+ --colors-transport_region-backgroundColor: #007C92;
211
+ --colors-transport_region-color: #000000;
212
+ --colors-transport_boat-backgroundColor: #AAE6EC;
213
+ --colors-transport_boat-color: #000000;
214
+ --colors-transport_train-backgroundColor: #B74166;
215
+ --colors-transport_train-color: #000000;
216
+ --colors-transport_airport-backgroundColor: #ED6C05;
217
+ --colors-transport_airport-color: #000000;
218
+ --colors-transport_plane-backgroundColor: #BE5604;
219
+ --colors-transport_plane-color: #000000;
220
+ --colors-transport_other-backgroundColor: #878E92;
221
+ --colors-transport_other-color: #000000;
222
+
223
+ --status-valid-main-backgroundColor: #A2AD00;
224
+ --status-valid-main-color: #000000;
225
+ --status-info-main-backgroundColor: #71D6E0;
226
+ --status-info-main-color: #000000;
227
+ --status-warning-main-backgroundColor: #E4D700;
228
+ --status-warning-main-color: #000000;
229
+ --status-error-main-backgroundColor: #A51140;
230
+ --status-error-main-color: #FFFFFF;
231
+ }
232
+ }
233
+
234
+
235
+ /* Theme color pairs */
236
+ .colors-background_0 {
237
+ background-color: var(--colors-background_0-backgroundColor);
238
+ color: var(--colors-background_0-color);
239
+ }
240
+ .colors-background_1 {
241
+ background-color: var(--colors-background_1-backgroundColor);
242
+ color: var(--colors-background_1-color);
243
+ }
244
+ .colors-background_2 {
245
+ background-color: var(--colors-background_2-backgroundColor);
246
+ color: var(--colors-background_2-color);
247
+ }
248
+ .colors-background_3 {
249
+ background-color: var(--colors-background_3-backgroundColor);
250
+ color: var(--colors-background_3-color);
251
+ }
252
+ .colors-background_accent {
253
+ background-color: var(--colors-background_accent-backgroundColor);
254
+ color: var(--colors-background_accent-color);
255
+ }
256
+ .colors-primary_1 {
257
+ background-color: var(--colors-primary_1-backgroundColor);
258
+ color: var(--colors-primary_1-color);
259
+ }
260
+ .colors-primary_2 {
261
+ background-color: var(--colors-primary_2-backgroundColor);
262
+ color: var(--colors-primary_2-color);
263
+ }
264
+ .colors-primary_3 {
265
+ background-color: var(--colors-primary_3-backgroundColor);
266
+ color: var(--colors-primary_3-color);
267
+ }
268
+ .colors-primary_destructive {
269
+ background-color: var(--colors-primary_destructive-backgroundColor);
270
+ color: var(--colors-primary_destructive-color);
271
+ }
272
+ .colors-secondary_1 {
273
+ background-color: var(--colors-secondary_1-backgroundColor);
274
+ color: var(--colors-secondary_1-color);
275
+ }
276
+ .colors-secondary_2 {
277
+ background-color: var(--colors-secondary_2-backgroundColor);
278
+ color: var(--colors-secondary_2-color);
279
+ }
280
+ .colors-secondary_3 {
281
+ background-color: var(--colors-secondary_3-backgroundColor);
282
+ color: var(--colors-secondary_3-color);
283
+ }
284
+ .colors-secondary_4 {
285
+ background-color: var(--colors-secondary_4-backgroundColor);
286
+ color: var(--colors-secondary_4-color);
287
+ }
288
+ .colors-transport_city {
289
+ background-color: var(--colors-transport_city-backgroundColor);
290
+ color: var(--colors-transport_city-color);
291
+ }
292
+ .colors-transport_region {
293
+ background-color: var(--colors-transport_region-backgroundColor);
294
+ color: var(--colors-transport_region-color);
295
+ }
296
+ .colors-transport_boat {
297
+ background-color: var(--colors-transport_boat-backgroundColor);
298
+ color: var(--colors-transport_boat-color);
299
+ }
300
+ .colors-transport_train {
301
+ background-color: var(--colors-transport_train-backgroundColor);
302
+ color: var(--colors-transport_train-color);
303
+ }
304
+ .colors-transport_airport {
305
+ background-color: var(--colors-transport_airport-backgroundColor);
306
+ color: var(--colors-transport_airport-color);
307
+ }
308
+ .colors-transport_plane {
309
+ background-color: var(--colors-transport_plane-backgroundColor);
310
+ color: var(--colors-transport_plane-color);
311
+ }
312
+ .colors-transport_other {
313
+ background-color: var(--colors-transport_other-backgroundColor);
314
+ color: var(--colors-transport_other-color);
315
+ }
316
+
317
+ .status-valid-main {
318
+ background-color: var(--status-valid-main-backgroundColor);
319
+ color: var(--status-valid-main-color);
320
+ }
321
+ .status-info-main {
322
+ background-color: var(--status-info-main-backgroundColor);
323
+ color: var(--status-info-main-color);
324
+ }
325
+ .status-warning-main {
326
+ background-color: var(--status-warning-main-backgroundColor);
327
+ color: var(--status-warning-main-color);
328
+ }
329
+ .status-error-main {
330
+ background-color: var(--status-error-main-backgroundColor);
331
+ color: var(--status-error-main-color);
332
+ }
@@ -0,0 +1,79 @@
1
+ import { Themes } from '../../theme';
2
+ export declare const backgrounds: {
3
+ light: {
4
+ level0: string;
5
+ level1: string;
6
+ level2: string;
7
+ level3: string;
8
+ };
9
+ dark: {
10
+ level0: string;
11
+ level1: string;
12
+ level2: string;
13
+ level3: string;
14
+ };
15
+ };
16
+ export declare const colors: {
17
+ white: string;
18
+ black: string;
19
+ primary: {
20
+ gray_50: string;
21
+ gray_100: string;
22
+ gray_200: string;
23
+ gray_300: string;
24
+ gray_400: string;
25
+ gray_500: string;
26
+ gray_600: string;
27
+ gray_700: string;
28
+ gray_800: string;
29
+ gray_900: string;
30
+ gray_950: string;
31
+ green_100: string;
32
+ green_200: string;
33
+ green_300: string;
34
+ green_400: string;
35
+ green_500: string;
36
+ green_600: string;
37
+ green_700: string;
38
+ green_800: string;
39
+ green_900: string;
40
+ };
41
+ secondary: {
42
+ cyan_100: string;
43
+ cyan_200: string;
44
+ cyan_300: string;
45
+ cyan_400: string;
46
+ cyan_500: string;
47
+ cyan_600: string;
48
+ cyan_700: string;
49
+ cyan_800: string;
50
+ cyan_900: string;
51
+ blue_100: string;
52
+ blue_200: string;
53
+ blue_300: string;
54
+ blue_400: string;
55
+ blue_500: string;
56
+ blue_600: string;
57
+ blue_700: string;
58
+ blue_800: string;
59
+ blue_900: string;
60
+ brown: string;
61
+ orange: string;
62
+ yellow_100: string;
63
+ yellow_500: string;
64
+ red_100: string;
65
+ red_400: string;
66
+ red_500: string;
67
+ };
68
+ text: {
69
+ light: string;
70
+ dark: string;
71
+ };
72
+ other: {
73
+ orange_500: string;
74
+ ekspressen_500: string;
75
+ ekspressen_600: string;
76
+ };
77
+ };
78
+ declare const themes: Themes;
79
+ export default themes;
@@ -0,0 +1,215 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.colors = exports.backgrounds = void 0;
7
+ var sizes_1 = require("../../sizes");
8
+ var hex_to_rgba_1 = __importDefault(require("hex-to-rgba"));
9
+ exports.backgrounds = {
10
+ light: {
11
+ level0: '#FFFFFF',
12
+ level1: '#E7E8E9',
13
+ level2: '#DBDDDE',
14
+ level3: '#CFD2D3',
15
+ },
16
+ dark: {
17
+ level0: '#000000',
18
+ level1: '#242B30',
19
+ level2: '#37424A',
20
+ level3: '#555E65',
21
+ },
22
+ };
23
+ exports.colors = {
24
+ white: '#ffffff',
25
+ black: '#000000',
26
+ primary: {
27
+ // grays
28
+ gray_50: '#E7E8E9',
29
+ gray_100: '#F5F5F6',
30
+ gray_200: '#AFB3B7',
31
+ gray_300: '#878E92',
32
+ gray_400: '#5F686E',
33
+ gray_500: '#37424A',
34
+ gray_600: '#2C353B',
35
+ gray_700: '#21282C',
36
+ gray_800: '#161A1E',
37
+ gray_900: '#101416',
38
+ gray_950: '#1B1C1D',
39
+ // greens
40
+ green_100: '#E3E6B3',
41
+ green_200: '#DADE99',
42
+ green_300: '#C7CE66',
43
+ green_400: '#B5BD33',
44
+ green_500: '#A2AD00',
45
+ green_600: '#828A00',
46
+ green_700: '#616800',
47
+ green_800: '#414500',
48
+ green_900: '#313400',
49
+ },
50
+ secondary: {
51
+ // cyan
52
+ cyan_100: '#D4F3F6',
53
+ cyan_200: '#C6EFF3',
54
+ cyan_300: '#AAE6EC',
55
+ cyan_400: '#8DDEE6',
56
+ cyan_500: '#71D6E0',
57
+ cyan_600: '#5AABB3',
58
+ cyan_700: '#448086',
59
+ cyan_800: '#2D565A',
60
+ cyan_900: '#224043',
61
+ // i got the blues
62
+ blue_100: '#B3D8DE',
63
+ blue_200: '#99CBD3',
64
+ blue_300: '#66B0BE',
65
+ blue_400: '#3396A8',
66
+ blue_500: '#007C92',
67
+ blue_600: '#006375',
68
+ blue_700: '#004A58',
69
+ blue_800: '#00323A',
70
+ blue_900: '#00252C',
71
+ brown: '#584528',
72
+ orange: '#C75B12',
73
+ yellow_100: '#F7F3B2',
74
+ yellow_500: '#E4D700',
75
+ red_100: '#E4B8C6',
76
+ red_400: '#B74166',
77
+ red_500: '#A51140',
78
+ },
79
+ text: {
80
+ light: '#FFFFFF',
81
+ dark: '#000000',
82
+ },
83
+ other: {
84
+ orange_500: '#BE5604',
85
+ ekspressen_500: '#ED6C05',
86
+ ekspressen_600: '#C75B12',
87
+ },
88
+ };
89
+ var contrastColor = function (backgroundColor, textColorType) {
90
+ if (backgroundColor === void 0) { backgroundColor = exports.colors.white; }
91
+ if (textColorType === void 0) { textColorType = 'dark'; }
92
+ return { backgroundColor: backgroundColor, color: exports.colors.text[textColorType], textColorType: textColorType };
93
+ };
94
+ var themes = {
95
+ light: {
96
+ spacings: sizes_1.spacings,
97
+ colors: {
98
+ background_0: contrastColor(exports.backgrounds.light.level0, 'dark'),
99
+ background_1: contrastColor(exports.backgrounds.light.level1, 'dark'),
100
+ background_2: contrastColor(exports.backgrounds.light.level2, 'dark'),
101
+ background_3: contrastColor(exports.backgrounds.light.level3, 'dark'),
102
+ background_accent: contrastColor(exports.colors.primary.gray_500, 'light'),
103
+ primary_1: contrastColor(exports.colors.primary.green_500, 'dark'),
104
+ primary_2: contrastColor(exports.colors.secondary.blue_500, 'light'),
105
+ primary_3: contrastColor(exports.colors.secondary.cyan_500, 'dark'),
106
+ primary_destructive: contrastColor(exports.colors.secondary.red_500, 'light'),
107
+ secondary_1: contrastColor(exports.colors.primary.gray_500, 'light'),
108
+ secondary_2: contrastColor(exports.colors.primary.gray_200, 'dark'),
109
+ secondary_3: contrastColor(exports.colors.primary.gray_400, 'light'),
110
+ secondary_4: contrastColor(exports.colors.primary.gray_50, 'dark'),
111
+ transport_city: contrastColor(exports.colors.primary.green_600),
112
+ transport_region: contrastColor(exports.colors.secondary.blue_500),
113
+ transport_boat: contrastColor(exports.colors.secondary.cyan_700),
114
+ transport_train: contrastColor(exports.colors.secondary.red_500),
115
+ transport_airport: contrastColor(exports.colors.other.ekspressen_600),
116
+ transport_plane: contrastColor(exports.colors.other.orange_500),
117
+ transport_other: contrastColor(exports.colors.primary.gray_400),
118
+ },
119
+ content: {
120
+ subtle_primary: contrastColor(exports.colors.primary.gray_50, 'dark'),
121
+ },
122
+ status: {
123
+ valid: {
124
+ main: contrastColor(exports.colors.primary.green_500, 'dark'),
125
+ },
126
+ info: {
127
+ main: contrastColor(exports.colors.secondary.cyan_500, 'dark'),
128
+ },
129
+ warning: {
130
+ main: contrastColor(exports.colors.secondary.yellow_500, 'dark'),
131
+ },
132
+ error: {
133
+ main: contrastColor(exports.colors.secondary.red_500, 'light'),
134
+ },
135
+ },
136
+ text: {
137
+ colors: {
138
+ primary: exports.colors.text.dark,
139
+ secondary: (0, hex_to_rgba_1.default)(exports.colors.text.dark, 0.6),
140
+ disabled: (0, hex_to_rgba_1.default)(exports.colors.text.dark, 0.2),
141
+ },
142
+ },
143
+ border: {
144
+ primary: exports.colors.primary.gray_50,
145
+ secondary: exports.colors.text.dark,
146
+ focus: exports.colors.secondary.blue_500,
147
+ radius: sizes_1.borderRadius,
148
+ width: sizes_1.borderWidth,
149
+ },
150
+ icon: {
151
+ size: sizes_1.iconSizes,
152
+ },
153
+ },
154
+ dark: {
155
+ spacings: sizes_1.spacings,
156
+ colors: {
157
+ background_0: contrastColor(exports.backgrounds.dark.level0, 'light'),
158
+ background_1: contrastColor(exports.backgrounds.dark.level1, 'light'),
159
+ background_2: contrastColor(exports.backgrounds.dark.level2, 'light'),
160
+ background_3: contrastColor(exports.backgrounds.dark.level3, 'light'),
161
+ background_accent: contrastColor(exports.colors.primary.gray_500, 'light'),
162
+ primary_1: contrastColor(exports.colors.primary.green_500, 'dark'),
163
+ primary_2: contrastColor(exports.colors.secondary.blue_500, 'light'),
164
+ primary_3: contrastColor(exports.colors.secondary.cyan_500, 'dark'),
165
+ primary_destructive: contrastColor(exports.colors.secondary.red_500, 'light'),
166
+ secondary_1: contrastColor(exports.colors.primary.gray_50, 'dark'),
167
+ secondary_2: contrastColor(exports.colors.primary.gray_500, 'light'),
168
+ secondary_3: contrastColor(exports.colors.secondary.blue_600, 'light'),
169
+ secondary_4: contrastColor(exports.colors.primary.gray_600, 'light'),
170
+ transport_city: contrastColor(exports.colors.primary.green_500),
171
+ transport_region: contrastColor(exports.colors.secondary.blue_500),
172
+ transport_boat: contrastColor(exports.colors.secondary.cyan_300),
173
+ transport_train: contrastColor(exports.colors.secondary.red_400),
174
+ transport_airport: contrastColor(exports.colors.other.ekspressen_500),
175
+ transport_plane: contrastColor(exports.colors.other.orange_500),
176
+ transport_other: contrastColor(exports.colors.primary.gray_300),
177
+ },
178
+ content: {
179
+ subtle_primary: contrastColor(exports.colors.primary.gray_950, 'dark'),
180
+ },
181
+ status: {
182
+ valid: {
183
+ main: contrastColor(exports.colors.primary.green_500, 'dark'),
184
+ },
185
+ info: {
186
+ main: contrastColor(exports.colors.secondary.cyan_500, 'dark'),
187
+ },
188
+ warning: {
189
+ main: contrastColor(exports.colors.secondary.yellow_500, 'dark'),
190
+ },
191
+ error: {
192
+ main: contrastColor(exports.colors.secondary.red_500, 'light'),
193
+ },
194
+ },
195
+ text: {
196
+ colors: {
197
+ primary: exports.colors.text.light,
198
+ secondary: (0, hex_to_rgba_1.default)(exports.colors.text.light, 0.6),
199
+ disabled: (0, hex_to_rgba_1.default)(exports.colors.text.light, 0.2),
200
+ },
201
+ },
202
+ border: {
203
+ primary: exports.colors.primary.gray_600,
204
+ secondary: exports.colors.text.light,
205
+ focus: exports.colors.secondary.cyan_500,
206
+ radius: sizes_1.borderRadius,
207
+ width: sizes_1.borderWidth,
208
+ },
209
+ icon: {
210
+ size: sizes_1.iconSizes,
211
+ },
212
+ },
213
+ };
214
+ exports.default = themes;
215
+ //# sourceMappingURL=theme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../src/themes/atb-theme/theme.ts"],"names":[],"mappings":";;;;;;AACA,qCAA2E;AAC3E,4DAAoC;AAEvB,QAAA,WAAW,GAAG;IACzB,KAAK,EAAE;QACL,MAAM,EAAE,SAAS;QACjB,MAAM,EAAE,SAAS;QACjB,MAAM,EAAE,SAAS;QACjB,MAAM,EAAE,SAAS;KAClB;IACD,IAAI,EAAE;QACJ,MAAM,EAAE,SAAS;QACjB,MAAM,EAAE,SAAS;QACjB,MAAM,EAAE,SAAS;QACjB,MAAM,EAAE,SAAS;KAClB;CACF,CAAC;AAEW,QAAA,MAAM,GAAG;IACpB,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,SAAS;IAChB,OAAO,EAAE;QACP,QAAQ;QACR,OAAO,EAAE,SAAS;QAClB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,SAAS;QACT,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