@atb-as/theme 5.0.1 → 6.0.0-alpha.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.
Files changed (40) hide show
  1. package/lib/index.d.ts +3 -0
  2. package/lib/index.js +16 -0
  3. package/lib/index.js.map +1 -0
  4. package/lib/sizes.d.ts +22 -0
  5. package/lib/sizes.js +25 -0
  6. package/lib/sizes.js.map +1 -0
  7. package/lib/theme.d.ts +128 -0
  8. package/lib/theme.js +80 -0
  9. package/lib/theme.js.map +1 -0
  10. package/lib/themes/atb-theme/theme.css +522 -0
  11. package/lib/themes/atb-theme/theme.d.ts +109 -0
  12. package/lib/themes/atb-theme/theme.js +301 -0
  13. package/lib/themes/atb-theme/theme.js.map +1 -0
  14. package/lib/themes/atb-theme/theme.module.css +522 -0
  15. package/lib/themes/index.d.ts +2 -0
  16. package/lib/themes/index.js +11 -0
  17. package/lib/themes/index.js.map +1 -0
  18. package/lib/themes/nfk-theme/theme.css +522 -0
  19. package/lib/themes/nfk-theme/theme.d.ts +3 -0
  20. package/lib/themes/nfk-theme/theme.js +197 -0
  21. package/lib/themes/nfk-theme/theme.js.map +1 -0
  22. package/lib/themes/nfk-theme/theme.module.css +522 -0
  23. package/lib/typography/android.d.ts +3 -0
  24. package/lib/typography/android.js +65 -0
  25. package/lib/typography/android.js.map +1 -0
  26. package/lib/typography/index.d.ts +63 -0
  27. package/lib/typography/index.js +94 -0
  28. package/lib/typography/index.js.map +1 -0
  29. package/lib/typography/ios.d.ts +3 -0
  30. package/lib/typography/ios.js +64 -0
  31. package/lib/typography/ios.js.map +1 -0
  32. package/lib/typography/types.d.ts +21 -0
  33. package/lib/typography/types.js +19 -0
  34. package/lib/typography/types.js.map +1 -0
  35. package/lib/typography.css +166 -0
  36. package/lib/typography.module.css +166 -0
  37. package/lib/utils/override-config.d.ts +8 -0
  38. package/lib/utils/override-config.js +38 -0
  39. package/lib/utils/override-config.js.map +1 -0
  40. package/package.json +2 -2
@@ -0,0 +1,522 @@
1
+
2
+
3
+ /* Light theme data */
4
+ .light {
5
+ --border-primary: #E7E8E9;
6
+ --border-secondary: #003441;
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: #003441;
25
+ --text-colors-secondary: rgba(0, 52, 65, 0.7);
26
+ --text-colors-disabled: rgba(0, 52, 65, 0.52);
27
+
28
+ --static-background-background_0-background: #FFFFFF;
29
+ --static-background-background_0-text: #003441;
30
+ --static-background-background_1-background: #E6F2F6;
31
+ --static-background-background_1-text: #003441;
32
+ --static-background-background_2-background: #EAEAEA;
33
+ --static-background-background_2-text: #003441;
34
+ --static-background-background_3-background: #E4E4E4;
35
+ --static-background-background_3-text: #003441;
36
+ --static-background-background_accent_0-background: #0181A2;
37
+ --static-background-background_accent_0-text: #FFFFFF;
38
+ --static-background-background_accent_1-background: #FFFFFF;
39
+ --static-background-background_accent_1-text: #003441;
40
+ --static-background-background_accent_2-background: #FFFFFF;
41
+ --static-background-background_accent_2-text: #003441;
42
+ --static-background-background_accent_3-background: #FFFFFF;
43
+ --static-background-background_accent_3-text: #003441;
44
+ --static-background-background_accent_4-background: #FFFFFF;
45
+ --static-background-background_accent_4-text: #003441;
46
+ --static-transport-transport_city-background: #014D61;
47
+ --static-transport-transport_city-text: #FFFFFF;
48
+ --static-transport-transport_region-background: #6C7E2F;
49
+ --static-transport-transport_region-text: #FFFFFF;
50
+ --static-transport-transport_boat-background: #1777D7;
51
+ --static-transport-transport_boat-text: #FFFFFF;
52
+ --static-transport-transport_train-background: #A5608A;
53
+ --static-transport-transport_train-text: #FFFFFF;
54
+ --static-transport-transport_airport-background: #8A62C3;
55
+ --static-transport-transport_airport-text: #FFFFFF;
56
+ --static-transport-transport_plane-background: #318181;
57
+ --static-transport-transport_plane-text: #FFFFFF;
58
+ --static-transport-transport_other-background: #717171;
59
+ --static-transport-transport_other-text: #FFFFFF;
60
+ --static-status-valid-background: #7FDABB;
61
+ --static-status-valid-text: #003441;
62
+ --static-status-info-background: #99CDDA;
63
+ --static-status-info-text: #003441;
64
+ --static-status-warning-background: #FCBA63;
65
+ --static-status-warning-text: #003441;
66
+ --static-status-error-background: #A61419;
67
+ --static-status-error-text: #FFFFFF;
68
+
69
+ --interactive-interactive_0-default-background: #FFFFFF;
70
+ --interactive-interactive_0-default-text: #003441;
71
+ --interactive-interactive_0-hover-background: #FFFFFF;
72
+ --interactive-interactive_0-hover-text: #003441;
73
+ --interactive-interactive_0-active-background: #FFFFFF;
74
+ --interactive-interactive_0-active-text: #003441;
75
+ --interactive-interactive_0-disabled-background: #FFFFFF;
76
+ --interactive-interactive_0-disabled-text: #003441;
77
+ --interactive-interactive_0-outline-background: #FFFFFF;
78
+ --interactive-interactive_0-outline-text: #003441;
79
+ --interactive-interactive_1-default-background: #FFFFFF;
80
+ --interactive-interactive_1-default-text: #003441;
81
+ --interactive-interactive_1-hover-background: #FFFFFF;
82
+ --interactive-interactive_1-hover-text: #003441;
83
+ --interactive-interactive_1-active-background: #FFFFFF;
84
+ --interactive-interactive_1-active-text: #003441;
85
+ --interactive-interactive_1-disabled-background: #FFFFFF;
86
+ --interactive-interactive_1-disabled-text: #003441;
87
+ --interactive-interactive_1-outline-background: #FFFFFF;
88
+ --interactive-interactive_1-outline-text: #003441;
89
+ --interactive-interactive_2-default-background: #FFFFFF;
90
+ --interactive-interactive_2-default-text: #003441;
91
+ --interactive-interactive_2-hover-background: #FFFFFF;
92
+ --interactive-interactive_2-hover-text: #003441;
93
+ --interactive-interactive_2-active-background: #FFFFFF;
94
+ --interactive-interactive_2-active-text: #003441;
95
+ --interactive-interactive_2-disabled-background: #FFFFFF;
96
+ --interactive-interactive_2-disabled-text: #003441;
97
+ --interactive-interactive_2-outline-background: #FFFFFF;
98
+ --interactive-interactive_2-outline-text: #003441;
99
+ --interactive-interactive_3-default-background: #FFFFFF;
100
+ --interactive-interactive_3-default-text: #003441;
101
+ --interactive-interactive_3-hover-background: #FFFFFF;
102
+ --interactive-interactive_3-hover-text: #003441;
103
+ --interactive-interactive_3-active-background: #FFFFFF;
104
+ --interactive-interactive_3-active-text: #003441;
105
+ --interactive-interactive_3-disabled-background: #FFFFFF;
106
+ --interactive-interactive_3-disabled-text: #003441;
107
+ --interactive-interactive_3-outline-background: #FFFFFF;
108
+ --interactive-interactive_3-outline-text: #003441;
109
+ --interactive-interactive_destructive-default-background: #FFFFFF;
110
+ --interactive-interactive_destructive-default-text: #003441;
111
+ --interactive-interactive_destructive-hover-background: #FFFFFF;
112
+ --interactive-interactive_destructive-hover-text: #003441;
113
+ --interactive-interactive_destructive-active-background: #FFFFFF;
114
+ --interactive-interactive_destructive-active-text: #003441;
115
+ --interactive-interactive_destructive-disabled-background: #FFFFFF;
116
+ --interactive-interactive_destructive-disabled-text: #003441;
117
+ --interactive-interactive_destructive-outline-background: #FFFFFF;
118
+ --interactive-interactive_destructive-outline-text: #003441;
119
+ }
120
+
121
+
122
+ /* Dark theme data */
123
+ .dark {
124
+ --border-primary: #2C353B;
125
+ --border-secondary: #FFFFFF;
126
+ --border-focus: #71D6E0;
127
+ --border-radius-circle: 1.25rem;
128
+ --border-radius-regular: 0.5rem;
129
+ --border-radius-small: 0.25rem;
130
+ --border-width-slim: 0.0625rem;
131
+ --border-width-medium: 0.125rem;
132
+
133
+ --spacings-xLarge: 1.5rem;
134
+ --spacings-large: 1.25rem;
135
+ --spacings-medium: 0.75rem;
136
+ --spacings-small: 0.5rem;
137
+ --spacings-xSmall: 0.25rem;
138
+
139
+ --icon-size-large: 1.75rem;
140
+ --icon-size-normal: 1.25rem;
141
+ --icon-size-small: 0.625rem;
142
+
143
+ --text-colors-primary: #FFFFFF;
144
+ --text-colors-secondary: rgba(255, 255, 255, 0.6);
145
+ --text-colors-disabled: rgba(255, 255, 255, 0.2);
146
+
147
+ --static-background-background_0-background: #046073;
148
+ --static-background-background_0-text: #FFFFFF;
149
+ --static-background-background_1-background: #00303D;
150
+ --static-background-background_1-text: #FFFFFF;
151
+ --static-background-background_2-background: #00232C;
152
+ --static-background-background_2-text: #FFFFFF;
153
+ --static-background-background_3-background: #002B38;
154
+ --static-background-background_3-text: #FFFFFF;
155
+ --static-background-background_accent_0-background: #00232C;
156
+ --static-background-background_accent_0-text: #FFFFFF;
157
+ --static-background-background_accent_1-background: #000000;
158
+ --static-background-background_accent_1-text: #FFFFFF;
159
+ --static-background-background_accent_2-background: #000000;
160
+ --static-background-background_accent_2-text: #FFFFFF;
161
+ --static-background-background_accent_3-background: #000000;
162
+ --static-background-background_accent_3-text: #FFFFFF;
163
+ --static-background-background_accent_4-background: #000000;
164
+ --static-background-background_accent_4-text: #FFFFFF;
165
+ --static-transport-transport_city-background: #80C0D1;
166
+ --static-transport-transport_city-text: #003441;
167
+ --static-transport-transport_region-background: #98A56D;
168
+ --static-transport-transport_region-text: #003441;
169
+ --static-transport-transport_boat-background: #5DA0E3;
170
+ --static-transport-transport_boat-text: #003441;
171
+ --static-transport-transport_train-background: #C090AD;
172
+ --static-transport-transport_train-text: #003441;
173
+ --static-transport-transport_airport-background: #AD91D5;
174
+ --static-transport-transport_airport-text: #003441;
175
+ --static-transport-transport_plane-background: #6FA7A7;
176
+ --static-transport-transport_plane-text: #003441;
177
+ --static-transport-transport_other-background: #9C9C9C;
178
+ --static-transport-transport_other-text: #003441;
179
+ --static-status-valid-background: #7FDABB;
180
+ --static-status-valid-text: #003441;
181
+ --static-status-info-background: #99CDDA;
182
+ --static-status-info-text: #003441;
183
+ --static-status-warning-background: #FCBA63;
184
+ --static-status-warning-text: #003441;
185
+ --static-status-error-background: #BE161D;
186
+ --static-status-error-text: #FFFFFF;
187
+
188
+ --interactive-interactive_0-default-background: #FFFFFF;
189
+ --interactive-interactive_0-default-text: #003441;
190
+ --interactive-interactive_0-hover-background: #FFFFFF;
191
+ --interactive-interactive_0-hover-text: #003441;
192
+ --interactive-interactive_0-active-background: #FFFFFF;
193
+ --interactive-interactive_0-active-text: #003441;
194
+ --interactive-interactive_0-disabled-background: #FFFFFF;
195
+ --interactive-interactive_0-disabled-text: #003441;
196
+ --interactive-interactive_0-outline-background: #FFFFFF;
197
+ --interactive-interactive_0-outline-text: #003441;
198
+ --interactive-interactive_1-default-background: #FFFFFF;
199
+ --interactive-interactive_1-default-text: #003441;
200
+ --interactive-interactive_1-hover-background: #FFFFFF;
201
+ --interactive-interactive_1-hover-text: #003441;
202
+ --interactive-interactive_1-active-background: #FFFFFF;
203
+ --interactive-interactive_1-active-text: #003441;
204
+ --interactive-interactive_1-disabled-background: #FFFFFF;
205
+ --interactive-interactive_1-disabled-text: #003441;
206
+ --interactive-interactive_1-outline-background: #FFFFFF;
207
+ --interactive-interactive_1-outline-text: #003441;
208
+ --interactive-interactive_2-default-background: #FFFFFF;
209
+ --interactive-interactive_2-default-text: #003441;
210
+ --interactive-interactive_2-hover-background: #FFFFFF;
211
+ --interactive-interactive_2-hover-text: #003441;
212
+ --interactive-interactive_2-active-background: #FFFFFF;
213
+ --interactive-interactive_2-active-text: #003441;
214
+ --interactive-interactive_2-disabled-background: #FFFFFF;
215
+ --interactive-interactive_2-disabled-text: #003441;
216
+ --interactive-interactive_2-outline-background: #FFFFFF;
217
+ --interactive-interactive_2-outline-text: #003441;
218
+ --interactive-interactive_3-default-background: #FFFFFF;
219
+ --interactive-interactive_3-default-text: #003441;
220
+ --interactive-interactive_3-hover-background: #FFFFFF;
221
+ --interactive-interactive_3-hover-text: #003441;
222
+ --interactive-interactive_3-active-background: #FFFFFF;
223
+ --interactive-interactive_3-active-text: #003441;
224
+ --interactive-interactive_3-disabled-background: #FFFFFF;
225
+ --interactive-interactive_3-disabled-text: #003441;
226
+ --interactive-interactive_3-outline-background: #FFFFFF;
227
+ --interactive-interactive_3-outline-text: #003441;
228
+ --interactive-interactive_destructive-default-background: #FFFFFF;
229
+ --interactive-interactive_destructive-default-text: #003441;
230
+ --interactive-interactive_destructive-hover-background: #FFFFFF;
231
+ --interactive-interactive_destructive-hover-text: #003441;
232
+ --interactive-interactive_destructive-active-background: #FFFFFF;
233
+ --interactive-interactive_destructive-active-text: #003441;
234
+ --interactive-interactive_destructive-disabled-background: #FFFFFF;
235
+ --interactive-interactive_destructive-disabled-text: #003441;
236
+ --interactive-interactive_destructive-outline-background: #FFFFFF;
237
+ --interactive-interactive_destructive-outline-text: #003441;
238
+ }
239
+
240
+
241
+ @media (prefers-color-scheme: dark) {
242
+ .light:not(.override-light) {
243
+ --border-primary: #2C353B;
244
+ --border-secondary: #FFFFFF;
245
+ --border-focus: #71D6E0;
246
+ --border-radius-circle: 1.25rem;
247
+ --border-radius-regular: 0.5rem;
248
+ --border-radius-small: 0.25rem;
249
+ --border-width-slim: 0.0625rem;
250
+ --border-width-medium: 0.125rem;
251
+
252
+ --spacings-xLarge: 1.5rem;
253
+ --spacings-large: 1.25rem;
254
+ --spacings-medium: 0.75rem;
255
+ --spacings-small: 0.5rem;
256
+ --spacings-xSmall: 0.25rem;
257
+
258
+ --icon-size-large: 1.75rem;
259
+ --icon-size-normal: 1.25rem;
260
+ --icon-size-small: 0.625rem;
261
+
262
+ --text-colors-primary: #FFFFFF;
263
+ --text-colors-secondary: rgba(255, 255, 255, 0.6);
264
+ --text-colors-disabled: rgba(255, 255, 255, 0.2);
265
+
266
+ --static-background-background_0-background: #046073;
267
+ --static-background-background_0-text: #FFFFFF;
268
+ --static-background-background_1-background: #00303D;
269
+ --static-background-background_1-text: #FFFFFF;
270
+ --static-background-background_2-background: #00232C;
271
+ --static-background-background_2-text: #FFFFFF;
272
+ --static-background-background_3-background: #002B38;
273
+ --static-background-background_3-text: #FFFFFF;
274
+ --static-background-background_accent_0-background: #00232C;
275
+ --static-background-background_accent_0-text: #FFFFFF;
276
+ --static-background-background_accent_1-background: #000000;
277
+ --static-background-background_accent_1-text: #FFFFFF;
278
+ --static-background-background_accent_2-background: #000000;
279
+ --static-background-background_accent_2-text: #FFFFFF;
280
+ --static-background-background_accent_3-background: #000000;
281
+ --static-background-background_accent_3-text: #FFFFFF;
282
+ --static-background-background_accent_4-background: #000000;
283
+ --static-background-background_accent_4-text: #FFFFFF;
284
+ --static-transport-transport_city-background: #80C0D1;
285
+ --static-transport-transport_city-text: #003441;
286
+ --static-transport-transport_region-background: #98A56D;
287
+ --static-transport-transport_region-text: #003441;
288
+ --static-transport-transport_boat-background: #5DA0E3;
289
+ --static-transport-transport_boat-text: #003441;
290
+ --static-transport-transport_train-background: #C090AD;
291
+ --static-transport-transport_train-text: #003441;
292
+ --static-transport-transport_airport-background: #AD91D5;
293
+ --static-transport-transport_airport-text: #003441;
294
+ --static-transport-transport_plane-background: #6FA7A7;
295
+ --static-transport-transport_plane-text: #003441;
296
+ --static-transport-transport_other-background: #9C9C9C;
297
+ --static-transport-transport_other-text: #003441;
298
+ --static-status-valid-background: #7FDABB;
299
+ --static-status-valid-text: #003441;
300
+ --static-status-info-background: #99CDDA;
301
+ --static-status-info-text: #003441;
302
+ --static-status-warning-background: #FCBA63;
303
+ --static-status-warning-text: #003441;
304
+ --static-status-error-background: #BE161D;
305
+ --static-status-error-text: #FFFFFF;
306
+
307
+ --interactive-interactive_0-default-background: #FFFFFF;
308
+ --interactive-interactive_0-default-text: #003441;
309
+ --interactive-interactive_0-hover-background: #FFFFFF;
310
+ --interactive-interactive_0-hover-text: #003441;
311
+ --interactive-interactive_0-active-background: #FFFFFF;
312
+ --interactive-interactive_0-active-text: #003441;
313
+ --interactive-interactive_0-disabled-background: #FFFFFF;
314
+ --interactive-interactive_0-disabled-text: #003441;
315
+ --interactive-interactive_0-outline-background: #FFFFFF;
316
+ --interactive-interactive_0-outline-text: #003441;
317
+ --interactive-interactive_1-default-background: #FFFFFF;
318
+ --interactive-interactive_1-default-text: #003441;
319
+ --interactive-interactive_1-hover-background: #FFFFFF;
320
+ --interactive-interactive_1-hover-text: #003441;
321
+ --interactive-interactive_1-active-background: #FFFFFF;
322
+ --interactive-interactive_1-active-text: #003441;
323
+ --interactive-interactive_1-disabled-background: #FFFFFF;
324
+ --interactive-interactive_1-disabled-text: #003441;
325
+ --interactive-interactive_1-outline-background: #FFFFFF;
326
+ --interactive-interactive_1-outline-text: #003441;
327
+ --interactive-interactive_2-default-background: #FFFFFF;
328
+ --interactive-interactive_2-default-text: #003441;
329
+ --interactive-interactive_2-hover-background: #FFFFFF;
330
+ --interactive-interactive_2-hover-text: #003441;
331
+ --interactive-interactive_2-active-background: #FFFFFF;
332
+ --interactive-interactive_2-active-text: #003441;
333
+ --interactive-interactive_2-disabled-background: #FFFFFF;
334
+ --interactive-interactive_2-disabled-text: #003441;
335
+ --interactive-interactive_2-outline-background: #FFFFFF;
336
+ --interactive-interactive_2-outline-text: #003441;
337
+ --interactive-interactive_3-default-background: #FFFFFF;
338
+ --interactive-interactive_3-default-text: #003441;
339
+ --interactive-interactive_3-hover-background: #FFFFFF;
340
+ --interactive-interactive_3-hover-text: #003441;
341
+ --interactive-interactive_3-active-background: #FFFFFF;
342
+ --interactive-interactive_3-active-text: #003441;
343
+ --interactive-interactive_3-disabled-background: #FFFFFF;
344
+ --interactive-interactive_3-disabled-text: #003441;
345
+ --interactive-interactive_3-outline-background: #FFFFFF;
346
+ --interactive-interactive_3-outline-text: #003441;
347
+ --interactive-interactive_destructive-default-background: #FFFFFF;
348
+ --interactive-interactive_destructive-default-text: #003441;
349
+ --interactive-interactive_destructive-hover-background: #FFFFFF;
350
+ --interactive-interactive_destructive-hover-text: #003441;
351
+ --interactive-interactive_destructive-active-background: #FFFFFF;
352
+ --interactive-interactive_destructive-active-text: #003441;
353
+ --interactive-interactive_destructive-disabled-background: #FFFFFF;
354
+ --interactive-interactive_destructive-disabled-text: #003441;
355
+ --interactive-interactive_destructive-outline-background: #FFFFFF;
356
+ --interactive-interactive_destructive-outline-text: #003441;
357
+ }
358
+ }
359
+
360
+
361
+ /* Theme color pairs */
362
+ .static-background-background_0 {
363
+ background-color: var(--static-background-background_0-background);
364
+ color: var(--static-background-background_0-text);
365
+ }
366
+ .static-background-background_1 {
367
+ background-color: var(--static-background-background_1-background);
368
+ color: var(--static-background-background_1-text);
369
+ }
370
+ .static-background-background_2 {
371
+ background-color: var(--static-background-background_2-background);
372
+ color: var(--static-background-background_2-text);
373
+ }
374
+ .static-background-background_3 {
375
+ background-color: var(--static-background-background_3-background);
376
+ color: var(--static-background-background_3-text);
377
+ }
378
+ .static-background-background_accent_0 {
379
+ background-color: var(--static-background-background_accent_0-background);
380
+ color: var(--static-background-background_accent_0-text);
381
+ }
382
+ .static-background-background_accent_1 {
383
+ background-color: var(--static-background-background_accent_1-background);
384
+ color: var(--static-background-background_accent_1-text);
385
+ }
386
+ .static-background-background_accent_2 {
387
+ background-color: var(--static-background-background_accent_2-background);
388
+ color: var(--static-background-background_accent_2-text);
389
+ }
390
+ .static-background-background_accent_3 {
391
+ background-color: var(--static-background-background_accent_3-background);
392
+ color: var(--static-background-background_accent_3-text);
393
+ }
394
+ .static-background-background_accent_4 {
395
+ background-color: var(--static-background-background_accent_4-background);
396
+ color: var(--static-background-background_accent_4-text);
397
+ }
398
+ .static-transport-transport_city {
399
+ background-color: var(--static-transport-transport_city-background);
400
+ color: var(--static-transport-transport_city-text);
401
+ }
402
+ .static-transport-transport_region {
403
+ background-color: var(--static-transport-transport_region-background);
404
+ color: var(--static-transport-transport_region-text);
405
+ }
406
+ .static-transport-transport_boat {
407
+ background-color: var(--static-transport-transport_boat-background);
408
+ color: var(--static-transport-transport_boat-text);
409
+ }
410
+ .static-transport-transport_train {
411
+ background-color: var(--static-transport-transport_train-background);
412
+ color: var(--static-transport-transport_train-text);
413
+ }
414
+ .static-transport-transport_airport {
415
+ background-color: var(--static-transport-transport_airport-background);
416
+ color: var(--static-transport-transport_airport-text);
417
+ }
418
+ .static-transport-transport_plane {
419
+ background-color: var(--static-transport-transport_plane-background);
420
+ color: var(--static-transport-transport_plane-text);
421
+ }
422
+ .static-transport-transport_other {
423
+ background-color: var(--static-transport-transport_other-background);
424
+ color: var(--static-transport-transport_other-text);
425
+ }
426
+ .static-status-valid {
427
+ background-color: var(--static-status-valid-background);
428
+ color: var(--static-status-valid-text);
429
+ }
430
+ .static-status-info {
431
+ background-color: var(--static-status-info-background);
432
+ color: var(--static-status-info-text);
433
+ }
434
+ .static-status-warning {
435
+ background-color: var(--static-status-warning-background);
436
+ color: var(--static-status-warning-text);
437
+ }
438
+ .static-status-error {
439
+ background-color: var(--static-status-error-background);
440
+ color: var(--static-status-error-text);
441
+ }
442
+
443
+ .interactive-interactive_0 {
444
+ background-color: var(--interactive-interactive_0-default-background);
445
+ color: var(--interactive-interactive_0-default-text);
446
+ }
447
+ .interactive-interactive_0:hover {
448
+ background-color: var(--interactive-interactive_0-hover-background);
449
+ color: var(--interactive-interactive_0-hover-text);
450
+ }
451
+ .interactive-interactive_0:active {
452
+ background-color: var(--interactive-interactive_0-active-background);
453
+ color: var(--interactive-interactive_0-active-text);
454
+ }
455
+ .interactive-interactive_0:disabled {
456
+ background-color: var(--interactive-interactive_0-disabled-background);
457
+ color: var(--interactive-interactive_0-disabled-text);
458
+ }
459
+ .interactive-interactive_1 {
460
+ background-color: var(--interactive-interactive_1-default-background);
461
+ color: var(--interactive-interactive_1-default-text);
462
+ }
463
+ .interactive-interactive_1:hover {
464
+ background-color: var(--interactive-interactive_1-hover-background);
465
+ color: var(--interactive-interactive_1-hover-text);
466
+ }
467
+ .interactive-interactive_1:active {
468
+ background-color: var(--interactive-interactive_1-active-background);
469
+ color: var(--interactive-interactive_1-active-text);
470
+ }
471
+ .interactive-interactive_1:disabled {
472
+ background-color: var(--interactive-interactive_1-disabled-background);
473
+ color: var(--interactive-interactive_1-disabled-text);
474
+ }
475
+ .interactive-interactive_2 {
476
+ background-color: var(--interactive-interactive_2-default-background);
477
+ color: var(--interactive-interactive_2-default-text);
478
+ }
479
+ .interactive-interactive_2:hover {
480
+ background-color: var(--interactive-interactive_2-hover-background);
481
+ color: var(--interactive-interactive_2-hover-text);
482
+ }
483
+ .interactive-interactive_2:active {
484
+ background-color: var(--interactive-interactive_2-active-background);
485
+ color: var(--interactive-interactive_2-active-text);
486
+ }
487
+ .interactive-interactive_2:disabled {
488
+ background-color: var(--interactive-interactive_2-disabled-background);
489
+ color: var(--interactive-interactive_2-disabled-text);
490
+ }
491
+ .interactive-interactive_3 {
492
+ background-color: var(--interactive-interactive_3-default-background);
493
+ color: var(--interactive-interactive_3-default-text);
494
+ }
495
+ .interactive-interactive_3:hover {
496
+ background-color: var(--interactive-interactive_3-hover-background);
497
+ color: var(--interactive-interactive_3-hover-text);
498
+ }
499
+ .interactive-interactive_3:active {
500
+ background-color: var(--interactive-interactive_3-active-background);
501
+ color: var(--interactive-interactive_3-active-text);
502
+ }
503
+ .interactive-interactive_3:disabled {
504
+ background-color: var(--interactive-interactive_3-disabled-background);
505
+ color: var(--interactive-interactive_3-disabled-text);
506
+ }
507
+ .interactive-interactive_destructive {
508
+ background-color: var(--interactive-interactive_destructive-default-background);
509
+ color: var(--interactive-interactive_destructive-default-text);
510
+ }
511
+ .interactive-interactive_destructive:hover {
512
+ background-color: var(--interactive-interactive_destructive-hover-background);
513
+ color: var(--interactive-interactive_destructive-hover-text);
514
+ }
515
+ .interactive-interactive_destructive:active {
516
+ background-color: var(--interactive-interactive_destructive-active-background);
517
+ color: var(--interactive-interactive_destructive-active-text);
518
+ }
519
+ .interactive-interactive_destructive:disabled {
520
+ background-color: var(--interactive-interactive_destructive-disabled-background);
521
+ color: var(--interactive-interactive_destructive-disabled-text);
522
+ }
@@ -0,0 +1,3 @@
1
+ import { FontBook, TextTypeStyles } from './types';
2
+ export declare const androidFontData: FontBook;
3
+ export declare const androidTextTypeStyles: TextTypeStyles;
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.androidTextTypeStyles = exports.androidFontData = void 0;
15
+ var primaryBase = {
16
+ fontSize: 16,
17
+ lineHeight: 20,
18
+ letterSpacing: 0.5,
19
+ };
20
+ var secondaryBase = {
21
+ fontSize: 14,
22
+ lineHeight: 20,
23
+ letterSpacing: 0.25,
24
+ };
25
+ var tertiaryBase = {
26
+ fontSize: 12,
27
+ lineHeight: 16,
28
+ letterSpacing: 0.4,
29
+ };
30
+ var labelBase = {
31
+ fontSize: 8,
32
+ lineHeight: 16,
33
+ letterSpacing: 0,
34
+ };
35
+ exports.androidFontData = {
36
+ main: {
37
+ url: 'https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap',
38
+ fontFamily: "'Roboto', sans-serif",
39
+ },
40
+ };
41
+ exports.androidTextTypeStyles = {
42
+ body__primary: primaryBase,
43
+ 'body__primary--bold': __assign(__assign({}, primaryBase), { fontWeight: '500' }),
44
+ 'body__primary--underline': __assign(__assign({}, primaryBase), { textDecorationLine: 'underline' }),
45
+ 'body__primary--jumbo': {
46
+ fontSize: 36,
47
+ lineHeight: 40,
48
+ letterSpacing: 0.25,
49
+ },
50
+ 'body__primary--jumbo--bold': {
51
+ fontSize: 36,
52
+ lineHeight: 40,
53
+ letterSpacing: 0.25,
54
+ fontWeight: 'bold'
55
+ },
56
+ body__secondary: secondaryBase,
57
+ 'body__secondary--bold': __assign(__assign({}, secondaryBase), { fontWeight: '500' }),
58
+ body__tertiary: tertiaryBase,
59
+ 'body__tertiary--strike': __assign(__assign({}, tertiaryBase), { textDecorationLine: 'line-through' }),
60
+ heading__title: __assign(__assign({}, primaryBase), { fontWeight: 'bold' }),
61
+ heading__component: __assign(__assign({}, primaryBase), { fontWeight: '500' }),
62
+ heading__paragraph: __assign(__assign({}, primaryBase), { fontWeight: '500' }),
63
+ label__uppercase: __assign(__assign({}, labelBase), { textTransform: 'uppercase' }),
64
+ };
65
+ //# sourceMappingURL=android.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"android.js","sourceRoot":"","sources":["../../src/typography/android.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAEA,IAAM,WAAW,GAAc;IAC7B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,GAAG;CACnB,CAAC;AACF,IAAM,aAAa,GAAc;IAC/B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,IAAI;CACpB,CAAC;AACF,IAAM,YAAY,GAAc;IAC9B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,GAAG;CACnB,CAAC;AACF,IAAM,SAAS,GAAc;IAC3B,QAAQ,EAAE,CAAC;IACX,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,CAAC;CACjB,CAAC;AAEW,QAAA,eAAe,GAAa;IACvC,IAAI,EAAE;QACJ,GAAG,EACD,+EAA+E;QACjF,UAAU,EAAE,sBAAsB;KACnC;CACF,CAAC;AAEW,QAAA,qBAAqB,GAAmB;IACnD,aAAa,EAAE,WAAW;IAC1B,qBAAqB,wBAChB,WAAW,KACd,UAAU,EAAE,KAAK,GAClB;IACD,0BAA0B,wBACrB,WAAW,KACd,kBAAkB,EAAE,WAAW,GAChC;IACD,sBAAsB,EAAE;QACtB,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAI;KACpB;IACD,4BAA4B,EAAE;QAC5B,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAI;QACnB,UAAU,EAAE,MAAM;KACnB;IACD,eAAe,EAAE,aAAa;IAC9B,uBAAuB,wBAClB,aAAa,KAChB,UAAU,EAAE,KAAK,GAClB;IACD,cAAc,EAAE,YAAY;IAC5B,wBAAwB,wBACnB,YAAY,KACf,kBAAkB,EAAE,cAAc,GACnC;IACD,cAAc,wBACT,WAAW,KACd,UAAU,EAAE,MAAM,GACnB;IACD,kBAAkB,wBACb,WAAW,KACd,UAAU,EAAE,KAAK,GAClB;IACD,kBAAkB,wBACb,WAAW,KACd,UAAU,EAAE,KAAK,GAClB;IACD,gBAAgB,wBACX,SAAS,KACZ,aAAa,EAAE,WAAW,GAC3B;CACF,CAAC"}
@@ -0,0 +1,63 @@
1
+ import { TextTypeStyles } from '.';
2
+ import { ConfigurationOverride } from '../utils/override-config';
3
+ declare type _MappedPlatforms = 'ios' | 'android';
4
+ declare type PlatformTypes = _MappedPlatforms | 'web';
5
+ export * from './types';
6
+ export declare const textTypeStyles: {
7
+ android: TextTypeStyles;
8
+ ios: TextTypeStyles;
9
+ };
10
+ export declare const fonts: {
11
+ android: import("./types").FontBook;
12
+ ios: import("./types").FontBook;
13
+ };
14
+ /**
15
+ * Get fonts for platform. Web should use Android as platform.
16
+ *
17
+ * @param overrides - Properties to override base config with
18
+ * @returns text type styles
19
+ */
20
+ export declare function getFontBook(type: PlatformTypes): import("./types").FontBook;
21
+ /**
22
+ * Create new text type style with optinally overriden defaults.
23
+ *
24
+ * @example extending nested features
25
+ * ```ts
26
+ * createTextTypeStyles({
27
+ * paragraphHeadline: {
28
+ * fontWeight: Platform.select({ios: '600', android: 'bold'})
29
+ * }
30
+ * })
31
+ * ```
32
+ *
33
+ * @param type - What platform to fetch text styles from (Android, iOS, Web)
34
+ * @param overrides - Properties to override base config with
35
+ * @returns text type styles
36
+ */
37
+ export declare function createTextTypeStyles(type: PlatformTypes, overrides?: ConfigurationOverride<TextTypeStyles>): TextTypeStyles;
38
+ /**
39
+ * Use text type style as base and extend with new properties. Properties
40
+ * can be nested and will be deep merged.
41
+ *
42
+ * @example extending nested features
43
+ * ```ts
44
+ * type Foo = {
45
+ * paragraphHeadline: {
46
+ * additional: boolean;
47
+ * };
48
+ * };
49
+ * const foo = extendTextTypeStyles<Foo>({
50
+ * paragraphHeadline: {
51
+ * additional: true,
52
+ * },
53
+ * });
54
+ *
55
+ * console.log(foo.paragraphHeadline.additional);
56
+ * //=> (property) additional: boolean
57
+ * ```
58
+ *
59
+ * @param type - What platform to fetch text styles from (Android, iOS, Web)
60
+ * @param extension - Object to extend original text type style. Can be nested with same keys as style
61
+ * @returns new deep merged intersection
62
+ */
63
+ export declare function extendTextTypeStyles<T>(type: PlatformTypes, extension: T): ((k: TextTypeStyles) => void) | (T extends any ? (k: T) => void : never) extends (k: infer I) => void ? I : never;