@atb-as/theme 5.0.0 → 5.0.1

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.
Files changed (51) hide show
  1. package/package.json +1 -1
  2. package/lib/colors.d.ts +0 -76
  3. package/lib/colors.js +0 -84
  4. package/lib/colors.js.map +0 -1
  5. package/lib/index.d.ts +0 -3
  6. package/lib/index.js +0 -16
  7. package/lib/index.js.map +0 -1
  8. package/lib/sizes.d.ts +0 -22
  9. package/lib/sizes.js +0 -25
  10. package/lib/sizes.js.map +0 -1
  11. package/lib/theme.css +0 -429
  12. package/lib/theme.d.ts +0 -122
  13. package/lib/theme.js +0 -80
  14. package/lib/theme.js.map +0 -1
  15. package/lib/theme.module.css +0 -429
  16. package/lib/themes/atb-theme/colors.d.ts +0 -76
  17. package/lib/themes/atb-theme/colors.js +0 -84
  18. package/lib/themes/atb-theme/colors.js.map +0 -1
  19. package/lib/themes/atb-theme/theme.css +0 -332
  20. package/lib/themes/atb-theme/theme.d.ts +0 -79
  21. package/lib/themes/atb-theme/theme.js +0 -215
  22. package/lib/themes/atb-theme/theme.js.map +0 -1
  23. package/lib/themes/atb-theme/theme.module.css +0 -332
  24. package/lib/themes/index.d.ts +0 -2
  25. package/lib/themes/index.js +0 -11
  26. package/lib/themes/index.js.map +0 -1
  27. package/lib/themes/nfk-theme/colors.d.ts +0 -76
  28. package/lib/themes/nfk-theme/colors.js +0 -84
  29. package/lib/themes/nfk-theme/colors.js.map +0 -1
  30. package/lib/themes/nfk-theme/theme.css +0 -332
  31. package/lib/themes/nfk-theme/theme.d.ts +0 -3
  32. package/lib/themes/nfk-theme/theme.js +0 -142
  33. package/lib/themes/nfk-theme/theme.js.map +0 -1
  34. package/lib/themes/nfk-theme/theme.module.css +0 -332
  35. package/lib/typography/android.d.ts +0 -3
  36. package/lib/typography/android.js +0 -59
  37. package/lib/typography/android.js.map +0 -1
  38. package/lib/typography/index.d.ts +0 -63
  39. package/lib/typography/index.js +0 -94
  40. package/lib/typography/index.js.map +0 -1
  41. package/lib/typography/ios.d.ts +0 -3
  42. package/lib/typography/ios.js +0 -58
  43. package/lib/typography/ios.js.map +0 -1
  44. package/lib/typography/types.d.ts +0 -20
  45. package/lib/typography/types.js +0 -18
  46. package/lib/typography/types.js.map +0 -1
  47. package/lib/typography.css +0 -156
  48. package/lib/typography.module.css +0 -156
  49. package/lib/utils/override-config.d.ts +0 -8
  50. package/lib/utils/override-config.js +0 -38
  51. package/lib/utils/override-config.js.map +0 -1
package/lib/theme.d.ts DELETED
@@ -1,122 +0,0 @@
1
- import { borderRadius, borderWidth, iconSizes, spacings } from './sizes';
2
- import { ConfigurationOverride } from './utils/override-config';
3
- export declare type Themes = {
4
- light: Theme;
5
- dark: Theme;
6
- };
7
- export declare type Mode = keyof Themes;
8
- export declare type TextColor = 'primary' | 'secondary' | 'disabled';
9
- export declare type TextColorType = 'dark' | 'light';
10
- export declare type ContrastColor = {
11
- backgroundColor: string;
12
- color: string;
13
- textColorType: TextColorType;
14
- };
15
- declare type StatusColor = {
16
- main: ContrastColor;
17
- };
18
- export interface Theme {
19
- spacings: typeof spacings;
20
- colors: {
21
- background_0: ContrastColor;
22
- background_1: ContrastColor;
23
- background_2: ContrastColor;
24
- background_3: ContrastColor;
25
- background_accent: ContrastColor;
26
- primary_1: ContrastColor;
27
- primary_2: ContrastColor;
28
- primary_3: ContrastColor;
29
- primary_destructive: ContrastColor;
30
- secondary_1: ContrastColor;
31
- secondary_2: ContrastColor;
32
- secondary_3: ContrastColor;
33
- secondary_4: ContrastColor;
34
- transport_city: ContrastColor;
35
- transport_region: ContrastColor;
36
- transport_boat: ContrastColor;
37
- transport_train: ContrastColor;
38
- transport_airport: ContrastColor;
39
- transport_plane: ContrastColor;
40
- transport_other: ContrastColor;
41
- };
42
- content: {
43
- subtle_primary: ContrastColor;
44
- };
45
- status: {
46
- valid: StatusColor;
47
- info: StatusColor;
48
- warning: StatusColor;
49
- error: StatusColor;
50
- };
51
- text: {
52
- colors: {
53
- [key in TextColor]: string;
54
- };
55
- };
56
- border: {
57
- primary: string;
58
- secondary: string;
59
- focus: string;
60
- radius: typeof borderRadius;
61
- width: typeof borderWidth;
62
- };
63
- icon: {
64
- size: typeof iconSizes;
65
- };
66
- }
67
- export declare type Statuses = keyof Theme['status'];
68
- export declare enum ThemeVariant {
69
- AtB = 0,
70
- Nfk = 1
71
- }
72
- export declare function createThemesFor(themeVariant: ThemeVariant): Themes;
73
- /**
74
- * Create new themes (light/dark) with optinally overriden defaults.
75
- *
76
- * @example extending nested features
77
- * ```ts
78
- * const themes = createThemes({
79
- * light: {
80
- * spacings: {
81
- * medium: 20,
82
- * },
83
- * },
84
- * });
85
- *
86
- * themes.dark.spacings.medium;
87
- * //=> 20
88
- * ```
89
- *
90
- * @param overrides - Properties to override base themes with, on `Theme` level
91
- * @returns themes
92
- */
93
- export declare function createThemes(themes: Themes, overrides?: ConfigurationOverride<Themes>): Themes;
94
- /**
95
- * Use Theme as base and extend with new properties. Properties
96
- * can be nested and will be deep merged.
97
- *
98
- * @example extending nested features
99
- * ```ts
100
- * type FooExtension = {
101
- * statusBarStyle: 'dark' | 'light';
102
- * }
103
- * const _themes = createExtendedThemes<FooExtension>({
104
- * light: {statusBarStyle: 'dark'},
105
- * dark: {statusBarStyle: 'light'}
106
- * });
107
- *
108
- * _themes.dark.statusBarStyle;
109
- * //=> (property) statusBarStyle: "dark" | "light"
110
- * ```
111
- *
112
- * @param extension - Object to extend original theme. Can be nested with same keys
113
- * @returns new deep merged intersection themes
114
- */
115
- export declare function createExtendedThemes<T>(themes: Themes, extension: {
116
- light: T;
117
- dark: T;
118
- }): {
119
- light: ((k: Theme) => void) | (T extends any ? (k: T) => void : never) extends (k: infer I) => void ? I : never;
120
- dark: ((k: Theme) => void) | (T extends any ? (k: T) => void : never) extends (k: infer I) => void ? I : never;
121
- };
122
- export {};
package/lib/theme.js DELETED
@@ -1,80 +0,0 @@
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.createExtendedThemes = exports.createThemes = exports.createThemesFor = exports.ThemeVariant = void 0;
7
- var ts_deepmerge_1 = __importDefault(require("ts-deepmerge"));
8
- var override_config_1 = require("./utils/override-config");
9
- var themes_1 = require("./themes");
10
- var ThemeVariant;
11
- (function (ThemeVariant) {
12
- ThemeVariant[ThemeVariant["AtB"] = 0] = "AtB";
13
- ThemeVariant[ThemeVariant["Nfk"] = 1] = "Nfk";
14
- })(ThemeVariant = exports.ThemeVariant || (exports.ThemeVariant = {}));
15
- function createThemesFor(themeVariant) {
16
- switch (themeVariant) {
17
- case ThemeVariant.AtB:
18
- return themes_1.AtBThemes;
19
- case ThemeVariant.Nfk:
20
- return themes_1.NfkThemes;
21
- default:
22
- throw Error('A valid ThemeVariant must be provided');
23
- }
24
- }
25
- exports.createThemesFor = createThemesFor;
26
- /**
27
- * Create new themes (light/dark) with optinally overriden defaults.
28
- *
29
- * @example extending nested features
30
- * ```ts
31
- * const themes = createThemes({
32
- * light: {
33
- * spacings: {
34
- * medium: 20,
35
- * },
36
- * },
37
- * });
38
- *
39
- * themes.dark.spacings.medium;
40
- * //=> 20
41
- * ```
42
- *
43
- * @param overrides - Properties to override base themes with, on `Theme` level
44
- * @returns themes
45
- */
46
- function createThemes(themes, overrides) {
47
- if (!overrides)
48
- return themes;
49
- return (0, override_config_1.overrideConfig)(themes, overrides);
50
- }
51
- exports.createThemes = createThemes;
52
- /**
53
- * Use Theme as base and extend with new properties. Properties
54
- * can be nested and will be deep merged.
55
- *
56
- * @example extending nested features
57
- * ```ts
58
- * type FooExtension = {
59
- * statusBarStyle: 'dark' | 'light';
60
- * }
61
- * const _themes = createExtendedThemes<FooExtension>({
62
- * light: {statusBarStyle: 'dark'},
63
- * dark: {statusBarStyle: 'light'}
64
- * });
65
- *
66
- * _themes.dark.statusBarStyle;
67
- * //=> (property) statusBarStyle: "dark" | "light"
68
- * ```
69
- *
70
- * @param extension - Object to extend original theme. Can be nested with same keys
71
- * @returns new deep merged intersection themes
72
- */
73
- function createExtendedThemes(themes, extension) {
74
- return {
75
- light: (0, ts_deepmerge_1.default)(themes.light, extension.light),
76
- dark: (0, ts_deepmerge_1.default)(themes.dark, extension.dark),
77
- };
78
- }
79
- exports.createExtendedThemes = createExtendedThemes;
80
- //# sourceMappingURL=theme.js.map
package/lib/theme.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"theme.js","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":";;;;;;AAAA,8DAAiC;AAEjC,2DAA8E;AAC9E,mCAA8C;AA4E9C,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,6CAAG,CAAA;IACH,6CAAG,CAAA;AACL,CAAC,EAHW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAGvB;AAED,SAAgB,eAAe,CAAC,YAA0B;IACxD,QAAQ,YAAY,EAAE;QACpB,KAAK,YAAY,CAAC,GAAG;YACnB,OAAO,kBAAS,CAAC;QACnB,KAAK,YAAY,CAAC,GAAG;YACnB,OAAO,kBAAS,CAAC;QACnB;YACE,MAAM,KAAK,CAAC,uCAAuC,CAAC,CAAC;KACxD;AACH,CAAC;AATD,0CASC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,YAAY,CAC1B,MAAc,EACd,SAAyC;IAEzC,IAAI,CAAC,SAAS;QAAE,OAAO,MAAM,CAAC;IAC9B,OAAO,IAAA,gCAAc,EAAC,MAAM,EAAE,SAAS,CAAC,CAAC;AAC3C,CAAC;AAND,oCAMC;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,oBAAoB,CAClC,MAAc,EACd,SAA8B;IAE9B,OAAO;QACL,KAAK,EAAE,IAAA,sBAAK,EAAC,MAAM,CAAC,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC;QAC3C,IAAI,EAAE,IAAA,sBAAK,EAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC;KACzC,CAAC;AACJ,CAAC;AARD,oDAQC"}
@@ -1,429 +0,0 @@
1
-
2
- :root {
3
-
4
- /* Base color data */
5
- --baseColor-white: #ffffff;
6
- --baseColor-black: #000000;
7
- --baseColor-primary-gray_50: #E7E8E9;
8
- --baseColor-primary-gray_100: #F5F5F6;
9
- --baseColor-primary-gray_200: #AFB3B7;
10
- --baseColor-primary-gray_300: #878E92;
11
- --baseColor-primary-gray_400: #5F686E;
12
- --baseColor-primary-gray_500: #37424A;
13
- --baseColor-primary-gray_600: #2C353B;
14
- --baseColor-primary-gray_700: #21282C;
15
- --baseColor-primary-gray_800: #161A1E;
16
- --baseColor-primary-gray_900: #101416;
17
- --baseColor-primary-gray_950: #1B1C1D;
18
- --baseColor-primary-green_100: #E3E6B3;
19
- --baseColor-primary-green_200: #DADE99;
20
- --baseColor-primary-green_300: #C7CE66;
21
- --baseColor-primary-green_400: #B5BD33;
22
- --baseColor-primary-green_500: #A2AD00;
23
- --baseColor-primary-green_600: #828A00;
24
- --baseColor-primary-green_700: #616800;
25
- --baseColor-primary-green_800: #414500;
26
- --baseColor-primary-green_900: #313400;
27
- --baseColor-secondary-cyan_100: #D4F3F6;
28
- --baseColor-secondary-cyan_200: #C6EFF3;
29
- --baseColor-secondary-cyan_300: #AAE6EC;
30
- --baseColor-secondary-cyan_400: #8DDEE6;
31
- --baseColor-secondary-cyan_500: #71D6E0;
32
- --baseColor-secondary-cyan_600: #5AABB3;
33
- --baseColor-secondary-cyan_700: #448086;
34
- --baseColor-secondary-cyan_800: #2D565A;
35
- --baseColor-secondary-cyan_900: #224043;
36
- --baseColor-secondary-blue_100: #B3D8DE;
37
- --baseColor-secondary-blue_200: #99CBD3;
38
- --baseColor-secondary-blue_300: #66B0BE;
39
- --baseColor-secondary-blue_400: #3396A8;
40
- --baseColor-secondary-blue_500: #007C92;
41
- --baseColor-secondary-blue_600: #006375;
42
- --baseColor-secondary-blue_700: #004A58;
43
- --baseColor-secondary-blue_800: #00323A;
44
- --baseColor-secondary-blue_900: #00252C;
45
- --baseColor-secondary-brown: #584528;
46
- --baseColor-secondary-orange: #C75B12;
47
- --baseColor-secondary-yellow_100: #F7F3B2;
48
- --baseColor-secondary-yellow_500: #E4D700;
49
- --baseColor-secondary-red_100: #E4B8C6;
50
- --baseColor-secondary-red_400: #B74166;
51
- --baseColor-secondary-red_500: #A51140;
52
- --baseColor-text-light: #FFFFFF;
53
- --baseColor-text-dark: #000000;
54
- --baseColor-other-orange_500: #BE5604;
55
- --baseColor-other-ekspressen_500: #ED6C05;
56
- --baseColor-other-ekspressen_600: #C75B12;
57
-
58
- }
59
-
60
- /* Light theme data */
61
- .light {
62
- --border-primary: #E7E8E9;
63
- --border-secondary: #000000;
64
- --border-focus: #007C92;
65
- --border-radius-circle: 1.25rem;
66
- --border-radius-regular: 0.5rem;
67
- --border-radius-small: 0.25rem;
68
- --border-width-slim: 0.0625rem;
69
- --border-width-medium: 0.125rem;
70
-
71
- --spacings-xLarge: 1.5rem;
72
- --spacings-large: 1.25rem;
73
- --spacings-medium: 0.75rem;
74
- --spacings-small: 0.5rem;
75
- --spacings-xSmall: 0.25rem;
76
-
77
- --icon-size-large: 1.75rem;
78
- --icon-size-normal: 1.25rem;
79
- --icon-size-small: 0.625rem;
80
-
81
- --text-colors-primary: #000000;
82
- --text-colors-secondary: rgba(0, 0, 0, 0.6);
83
- --text-colors-disabled: rgba(0, 0, 0, 0.2);
84
-
85
- --colors-background_0-backgroundColor: #FFFFFF;
86
- --colors-background_0-color: #000000;
87
- --colors-background_1-backgroundColor: #E7E8E9;
88
- --colors-background_1-color: #000000;
89
- --colors-background_2-backgroundColor: #DBDDDE;
90
- --colors-background_2-color: #000000;
91
- --colors-background_3-backgroundColor: #CFD2D3;
92
- --colors-background_3-color: #000000;
93
- --colors-background_gray-backgroundColor: #37424A;
94
- --colors-background_gray-color: #FFFFFF;
95
- --colors-primary_1-backgroundColor: #A2AD00;
96
- --colors-primary_1-color: #000000;
97
- --colors-primary_2-backgroundColor: #007C92;
98
- --colors-primary_2-color: #FFFFFF;
99
- --colors-primary_3-backgroundColor: #71D6E0;
100
- --colors-primary_3-color: #000000;
101
- --colors-primary_destructive-backgroundColor: #A51140;
102
- --colors-primary_destructive-color: #FFFFFF;
103
- --colors-secondary_1-backgroundColor: #37424A;
104
- --colors-secondary_1-color: #FFFFFF;
105
- --colors-secondary_2-backgroundColor: #AFB3B7;
106
- --colors-secondary_2-color: #000000;
107
- --colors-secondary_3-backgroundColor: #5F686E;
108
- --colors-secondary_3-color: #FFFFFF;
109
- --colors-secondary_4-backgroundColor: #E7E8E9;
110
- --colors-secondary_4-color: #000000;
111
- --colors-transport_city-backgroundColor: #828A00;
112
- --colors-transport_city-color: #000000;
113
- --colors-transport_region-backgroundColor: #007C92;
114
- --colors-transport_region-color: #000000;
115
- --colors-transport_boat-backgroundColor: #448086;
116
- --colors-transport_boat-color: #000000;
117
- --colors-transport_train-backgroundColor: #A51140;
118
- --colors-transport_train-color: #000000;
119
- --colors-transport_airport-backgroundColor: #C75B12;
120
- --colors-transport_airport-color: #000000;
121
- --colors-transport_plane-backgroundColor: #BE5604;
122
- --colors-transport_plane-color: #000000;
123
- --colors-transport_other-backgroundColor: #5F686E;
124
- --colors-transport_other-color: #000000;
125
-
126
- --status-valid-main-backgroundColor: #A2AD00;
127
- --status-valid-main-color: #000000;
128
- --status-valid-bg-backgroundColor: rgba(162, 173, 0, 0.25);
129
- --status-valid-bg-color: #000000;
130
- --status-info-main-backgroundColor: #71D6E0;
131
- --status-info-main-color: #000000;
132
- --status-info-bg-backgroundColor: rgba(113, 214, 224, 0.25);
133
- --status-info-bg-color: #000000;
134
- --status-warning-main-backgroundColor: #E4D700;
135
- --status-warning-main-color: #000000;
136
- --status-warning-bg-backgroundColor: rgba(228, 215, 0, 0.25);
137
- --status-warning-bg-color: #000000;
138
- --status-error-main-backgroundColor: #A51140;
139
- --status-error-main-color: #FFFFFF;
140
- --status-error-bg-backgroundColor: rgba(165, 17, 64, 0.25);
141
- --status-error-bg-color: #000000;
142
- }
143
-
144
-
145
- /* Dark theme data */
146
- .dark {
147
- --border-primary: #2C353B;
148
- --border-secondary: #FFFFFF;
149
- --border-focus: #71D6E0;
150
- --border-radius-circle: 1.25rem;
151
- --border-radius-regular: 0.5rem;
152
- --border-radius-small: 0.25rem;
153
- --border-width-slim: 0.0625rem;
154
- --border-width-medium: 0.125rem;
155
-
156
- --spacings-xLarge: 1.5rem;
157
- --spacings-large: 1.25rem;
158
- --spacings-medium: 0.75rem;
159
- --spacings-small: 0.5rem;
160
- --spacings-xSmall: 0.25rem;
161
-
162
- --icon-size-large: 1.75rem;
163
- --icon-size-normal: 1.25rem;
164
- --icon-size-small: 0.625rem;
165
-
166
- --text-colors-primary: #FFFFFF;
167
- --text-colors-secondary: rgba(255, 255, 255, 0.6);
168
- --text-colors-disabled: rgba(255, 255, 255, 0.2);
169
-
170
- --colors-background_0-backgroundColor: #000000;
171
- --colors-background_0-color: #FFFFFF;
172
- --colors-background_1-backgroundColor: #242B30;
173
- --colors-background_1-color: #FFFFFF;
174
- --colors-background_2-backgroundColor: #37424A;
175
- --colors-background_2-color: #FFFFFF;
176
- --colors-background_3-backgroundColor: #555E65;
177
- --colors-background_3-color: #FFFFFF;
178
- --colors-background_gray-backgroundColor: #37424A;
179
- --colors-background_gray-color: #FFFFFF;
180
- --colors-primary_1-backgroundColor: #A2AD00;
181
- --colors-primary_1-color: #000000;
182
- --colors-primary_2-backgroundColor: #007C92;
183
- --colors-primary_2-color: #FFFFFF;
184
- --colors-primary_3-backgroundColor: #71D6E0;
185
- --colors-primary_3-color: #000000;
186
- --colors-primary_destructive-backgroundColor: #A51140;
187
- --colors-primary_destructive-color: #FFFFFF;
188
- --colors-secondary_1-backgroundColor: #E7E8E9;
189
- --colors-secondary_1-color: #000000;
190
- --colors-secondary_2-backgroundColor: #37424A;
191
- --colors-secondary_2-color: #FFFFFF;
192
- --colors-secondary_3-backgroundColor: #006375;
193
- --colors-secondary_3-color: #FFFFFF;
194
- --colors-secondary_4-backgroundColor: #2C353B;
195
- --colors-secondary_4-color: #FFFFFF;
196
- --colors-transport_city-backgroundColor: #A2AD00;
197
- --colors-transport_city-color: #000000;
198
- --colors-transport_region-backgroundColor: #007C92;
199
- --colors-transport_region-color: #000000;
200
- --colors-transport_boat-backgroundColor: #AAE6EC;
201
- --colors-transport_boat-color: #000000;
202
- --colors-transport_train-backgroundColor: #B74166;
203
- --colors-transport_train-color: #000000;
204
- --colors-transport_airport-backgroundColor: #ED6C05;
205
- --colors-transport_airport-color: #000000;
206
- --colors-transport_plane-backgroundColor: #BE5604;
207
- --colors-transport_plane-color: #000000;
208
- --colors-transport_other-backgroundColor: #878E92;
209
- --colors-transport_other-color: #000000;
210
-
211
- --status-valid-main-backgroundColor: #A2AD00;
212
- --status-valid-main-color: #000000;
213
- --status-valid-bg-backgroundColor: rgba(162, 173, 0, 0.25);
214
- --status-valid-bg-color: #FFFFFF;
215
- --status-info-main-backgroundColor: #71D6E0;
216
- --status-info-main-color: #000000;
217
- --status-info-bg-backgroundColor: rgba(113, 214, 224, 0.25);
218
- --status-info-bg-color: #FFFFFF;
219
- --status-warning-main-backgroundColor: #E4D700;
220
- --status-warning-main-color: #000000;
221
- --status-warning-bg-backgroundColor: rgba(228, 215, 0, 0.25);
222
- --status-warning-bg-color: #000000;
223
- --status-error-main-backgroundColor: #A51140;
224
- --status-error-main-color: #FFFFFF;
225
- --status-error-bg-backgroundColor: rgba(165, 17, 64, 0.25);
226
- --status-error-bg-color: #000000;
227
- }
228
-
229
-
230
- @media (prefers-color-scheme: dark) {
231
- .light:not(.override-light) {
232
- --border-primary: #2C353B;
233
- --border-secondary: #FFFFFF;
234
- --border-focus: #71D6E0;
235
- --border-radius-circle: 1.25rem;
236
- --border-radius-regular: 0.5rem;
237
- --border-radius-small: 0.25rem;
238
- --border-width-slim: 0.0625rem;
239
- --border-width-medium: 0.125rem;
240
-
241
- --spacings-xLarge: 1.5rem;
242
- --spacings-large: 1.25rem;
243
- --spacings-medium: 0.75rem;
244
- --spacings-small: 0.5rem;
245
- --spacings-xSmall: 0.25rem;
246
-
247
- --icon-size-large: 1.75rem;
248
- --icon-size-normal: 1.25rem;
249
- --icon-size-small: 0.625rem;
250
-
251
- --text-colors-primary: #FFFFFF;
252
- --text-colors-secondary: rgba(255, 255, 255, 0.6);
253
- --text-colors-disabled: rgba(255, 255, 255, 0.2);
254
-
255
- --colors-background_0-backgroundColor: #000000;
256
- --colors-background_0-color: #FFFFFF;
257
- --colors-background_1-backgroundColor: #242B30;
258
- --colors-background_1-color: #FFFFFF;
259
- --colors-background_2-backgroundColor: #37424A;
260
- --colors-background_2-color: #FFFFFF;
261
- --colors-background_3-backgroundColor: #555E65;
262
- --colors-background_3-color: #FFFFFF;
263
- --colors-background_gray-backgroundColor: #37424A;
264
- --colors-background_gray-color: #FFFFFF;
265
- --colors-primary_1-backgroundColor: #A2AD00;
266
- --colors-primary_1-color: #000000;
267
- --colors-primary_2-backgroundColor: #007C92;
268
- --colors-primary_2-color: #FFFFFF;
269
- --colors-primary_3-backgroundColor: #71D6E0;
270
- --colors-primary_3-color: #000000;
271
- --colors-primary_destructive-backgroundColor: #A51140;
272
- --colors-primary_destructive-color: #FFFFFF;
273
- --colors-secondary_1-backgroundColor: #E7E8E9;
274
- --colors-secondary_1-color: #000000;
275
- --colors-secondary_2-backgroundColor: #37424A;
276
- --colors-secondary_2-color: #FFFFFF;
277
- --colors-secondary_3-backgroundColor: #006375;
278
- --colors-secondary_3-color: #FFFFFF;
279
- --colors-secondary_4-backgroundColor: #2C353B;
280
- --colors-secondary_4-color: #FFFFFF;
281
- --colors-transport_city-backgroundColor: #A2AD00;
282
- --colors-transport_city-color: #000000;
283
- --colors-transport_region-backgroundColor: #007C92;
284
- --colors-transport_region-color: #000000;
285
- --colors-transport_boat-backgroundColor: #AAE6EC;
286
- --colors-transport_boat-color: #000000;
287
- --colors-transport_train-backgroundColor: #B74166;
288
- --colors-transport_train-color: #000000;
289
- --colors-transport_airport-backgroundColor: #ED6C05;
290
- --colors-transport_airport-color: #000000;
291
- --colors-transport_plane-backgroundColor: #BE5604;
292
- --colors-transport_plane-color: #000000;
293
- --colors-transport_other-backgroundColor: #878E92;
294
- --colors-transport_other-color: #000000;
295
-
296
- --status-valid-main-backgroundColor: #A2AD00;
297
- --status-valid-main-color: #000000;
298
- --status-valid-bg-backgroundColor: rgba(162, 173, 0, 0.25);
299
- --status-valid-bg-color: #FFFFFF;
300
- --status-info-main-backgroundColor: #71D6E0;
301
- --status-info-main-color: #000000;
302
- --status-info-bg-backgroundColor: rgba(113, 214, 224, 0.25);
303
- --status-info-bg-color: #FFFFFF;
304
- --status-warning-main-backgroundColor: #E4D700;
305
- --status-warning-main-color: #000000;
306
- --status-warning-bg-backgroundColor: rgba(228, 215, 0, 0.25);
307
- --status-warning-bg-color: #000000;
308
- --status-error-main-backgroundColor: #A51140;
309
- --status-error-main-color: #FFFFFF;
310
- --status-error-bg-backgroundColor: rgba(165, 17, 64, 0.25);
311
- --status-error-bg-color: #000000;
312
- }
313
- }
314
-
315
-
316
- /* Theme color pairs */
317
- .colors-background_0 {
318
- background-color: var(--colors-background_0-backgroundColor);
319
- color: var(--colors-background_0-color);
320
- }
321
- .colors-background_1 {
322
- background-color: var(--colors-background_1-backgroundColor);
323
- color: var(--colors-background_1-color);
324
- }
325
- .colors-background_2 {
326
- background-color: var(--colors-background_2-backgroundColor);
327
- color: var(--colors-background_2-color);
328
- }
329
- .colors-background_3 {
330
- background-color: var(--colors-background_3-backgroundColor);
331
- color: var(--colors-background_3-color);
332
- }
333
- .colors-background_gray {
334
- background-color: var(--colors-background_gray-backgroundColor);
335
- color: var(--colors-background_gray-color);
336
- }
337
- .colors-primary_1 {
338
- background-color: var(--colors-primary_1-backgroundColor);
339
- color: var(--colors-primary_1-color);
340
- }
341
- .colors-primary_2 {
342
- background-color: var(--colors-primary_2-backgroundColor);
343
- color: var(--colors-primary_2-color);
344
- }
345
- .colors-primary_3 {
346
- background-color: var(--colors-primary_3-backgroundColor);
347
- color: var(--colors-primary_3-color);
348
- }
349
- .colors-primary_destructive {
350
- background-color: var(--colors-primary_destructive-backgroundColor);
351
- color: var(--colors-primary_destructive-color);
352
- }
353
- .colors-secondary_1 {
354
- background-color: var(--colors-secondary_1-backgroundColor);
355
- color: var(--colors-secondary_1-color);
356
- }
357
- .colors-secondary_2 {
358
- background-color: var(--colors-secondary_2-backgroundColor);
359
- color: var(--colors-secondary_2-color);
360
- }
361
- .colors-secondary_3 {
362
- background-color: var(--colors-secondary_3-backgroundColor);
363
- color: var(--colors-secondary_3-color);
364
- }
365
- .colors-secondary_4 {
366
- background-color: var(--colors-secondary_4-backgroundColor);
367
- color: var(--colors-secondary_4-color);
368
- }
369
- .colors-transport_city {
370
- background-color: var(--colors-transport_city-backgroundColor);
371
- color: var(--colors-transport_city-color);
372
- }
373
- .colors-transport_region {
374
- background-color: var(--colors-transport_region-backgroundColor);
375
- color: var(--colors-transport_region-color);
376
- }
377
- .colors-transport_boat {
378
- background-color: var(--colors-transport_boat-backgroundColor);
379
- color: var(--colors-transport_boat-color);
380
- }
381
- .colors-transport_train {
382
- background-color: var(--colors-transport_train-backgroundColor);
383
- color: var(--colors-transport_train-color);
384
- }
385
- .colors-transport_airport {
386
- background-color: var(--colors-transport_airport-backgroundColor);
387
- color: var(--colors-transport_airport-color);
388
- }
389
- .colors-transport_plane {
390
- background-color: var(--colors-transport_plane-backgroundColor);
391
- color: var(--colors-transport_plane-color);
392
- }
393
- .colors-transport_other {
394
- background-color: var(--colors-transport_other-backgroundColor);
395
- color: var(--colors-transport_other-color);
396
- }
397
-
398
- .status-valid-main {
399
- background-color: var(--status-valid-main-backgroundColor);
400
- color: var(--status-valid-main-color);
401
- }
402
- .status-valid-bg {
403
- background-color: var(--status-valid-bg-backgroundColor);
404
- color: var(--status-valid-bg-color);
405
- }
406
- .status-info-main {
407
- background-color: var(--status-info-main-backgroundColor);
408
- color: var(--status-info-main-color);
409
- }
410
- .status-info-bg {
411
- background-color: var(--status-info-bg-backgroundColor);
412
- color: var(--status-info-bg-color);
413
- }
414
- .status-warning-main {
415
- background-color: var(--status-warning-main-backgroundColor);
416
- color: var(--status-warning-main-color);
417
- }
418
- .status-warning-bg {
419
- background-color: var(--status-warning-bg-backgroundColor);
420
- color: var(--status-warning-bg-color);
421
- }
422
- .status-error-main {
423
- background-color: var(--status-error-main-backgroundColor);
424
- color: var(--status-error-main-color);
425
- }
426
- .status-error-bg {
427
- background-color: var(--status-error-bg-backgroundColor);
428
- color: var(--status-error-bg-color);
429
- }
@@ -1,76 +0,0 @@
1
- export declare const backgrounds: {
2
- light: {
3
- level0: string;
4
- level1: string;
5
- level2: string;
6
- level3: string;
7
- };
8
- dark: {
9
- level0: string;
10
- level1: string;
11
- level2: string;
12
- level3: string;
13
- };
14
- };
15
- export declare const colors: {
16
- white: string;
17
- black: string;
18
- primary: {
19
- gray_50: string;
20
- gray_100: string;
21
- gray_200: string;
22
- gray_300: string;
23
- gray_400: string;
24
- gray_500: string;
25
- gray_600: string;
26
- gray_700: string;
27
- gray_800: string;
28
- gray_900: string;
29
- gray_950: string;
30
- green_100: string;
31
- green_200: string;
32
- green_300: string;
33
- green_400: string;
34
- green_500: string;
35
- green_600: string;
36
- green_700: string;
37
- green_800: string;
38
- green_900: string;
39
- };
40
- secondary: {
41
- cyan_100: string;
42
- cyan_200: string;
43
- cyan_300: string;
44
- cyan_400: string;
45
- cyan_500: string;
46
- cyan_600: string;
47
- cyan_700: string;
48
- cyan_800: string;
49
- cyan_900: string;
50
- blue_100: string;
51
- blue_200: string;
52
- blue_300: string;
53
- blue_400: string;
54
- blue_500: string;
55
- blue_600: string;
56
- blue_700: string;
57
- blue_800: string;
58
- blue_900: string;
59
- brown: string;
60
- orange: string;
61
- yellow_100: string;
62
- yellow_500: string;
63
- red_100: string;
64
- red_400: string;
65
- red_500: string;
66
- };
67
- text: {
68
- light: string;
69
- dark: string;
70
- };
71
- other: {
72
- orange_500: string;
73
- ekspressen_500: string;
74
- ekspressen_600: string;
75
- };
76
- };