@equinor/eds-tokens 2.2.0 → 2.3.0-beta.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 (39) hide show
  1. package/README.md +11 -1
  2. package/build/js/spacing/comfortable.d.ts +0 -1
  3. package/build/js/spacing/comfortable.js +0 -1
  4. package/build/js/spacing/spacious.d.ts +0 -1
  5. package/build/js/spacing/spacious.js +0 -1
  6. package/build/ts/color/color-scheme/dark-color-scheme.ts +116 -0
  7. package/build/ts/color/color-scheme/dark-semantic.ts +162 -0
  8. package/build/ts/color/color-scheme/light-color-scheme.ts +116 -0
  9. package/build/ts/color/color-scheme/light-semantic.ts +162 -0
  10. package/build/ts/spacing/comfortable.ts +558 -0
  11. package/build/ts/spacing/index.ts +6 -0
  12. package/build/ts/spacing/spacious.ts +558 -0
  13. package/build/ts/typography/font-family-header.ts +122 -0
  14. package/build/ts/typography/font-family-ui.ts +122 -0
  15. package/build/ts/typography/font-size-2xl.ts +21 -0
  16. package/build/ts/typography/font-size-3xl.ts +21 -0
  17. package/build/ts/typography/font-size-4xl.ts +21 -0
  18. package/build/ts/typography/font-size-5xl.ts +21 -0
  19. package/build/ts/typography/font-size-6xl.ts +21 -0
  20. package/build/ts/typography/font-size-lg.ts +21 -0
  21. package/build/ts/typography/font-size-md.ts +21 -0
  22. package/build/ts/typography/font-size-sm.ts +21 -0
  23. package/build/ts/typography/font-size-xl.ts +21 -0
  24. package/build/ts/typography/font-size-xs.ts +21 -0
  25. package/build/ts/typography/font-weight-bolder.ts +9 -0
  26. package/build/ts/typography/font-weight-lighter.ts +9 -0
  27. package/build/ts/typography/font-weight-normal.ts +9 -0
  28. package/build/ts/typography/line-height-default.ts +9 -0
  29. package/build/ts/typography/line-height-squished.ts +9 -0
  30. package/build/ts/typography/tracking-loose.ts +9 -0
  31. package/build/ts/typography/tracking-normal.ts +9 -0
  32. package/build/ts/typography/tracking-tight.ts +9 -0
  33. package/build/ts/typography/tracking-wide.ts +9 -0
  34. package/instructions/colors-dynamic.md +29 -0
  35. package/instructions/colors-static.md +78 -0
  36. package/instructions/colors.md +13 -0
  37. package/instructions/typography.md +161 -0
  38. package/package.json +31 -28
  39. package/LICENSE +0 -21
@@ -0,0 +1,558 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+ export const spacing = {
6
+ sizing: {
7
+ icon: {
8
+ xs: 16,
9
+ sm: 18,
10
+ md: 20,
11
+ lg: 24,
12
+ xl: 28,
13
+ twoXl: 32,
14
+ threeXl: 37,
15
+ fourXl: 42,
16
+ fiveXl: 48,
17
+ sixXl: 56,
18
+ },
19
+ selectable: {
20
+ xs: 20,
21
+ sm: 24,
22
+ md: 36,
23
+ lg: 44,
24
+ xl: 52,
25
+ twoXl: 60,
26
+ },
27
+ stroke: {
28
+ thin: 1,
29
+ thick: 2,
30
+ none: 0,
31
+ },
32
+ },
33
+ spacing: {
34
+ icon: {
35
+ xs: {
36
+ gapHorizontal: 6.5,
37
+ gapVertical: 6.5,
38
+ },
39
+ sm: {
40
+ gapHorizontal: 7.5,
41
+ gapVertical: 7.5,
42
+ },
43
+ md: {
44
+ gapHorizontal: 8.5,
45
+ gapVertical: 8.5,
46
+ },
47
+ lg: {
48
+ gapHorizontal: 10,
49
+ gapVertical: 10,
50
+ },
51
+ xl: {
52
+ gapHorizontal: 11.5,
53
+ gapVertical: 11.5,
54
+ },
55
+ twoXl: {
56
+ gapHorizontal: 13,
57
+ gapVertical: 13,
58
+ },
59
+ threeXl: {
60
+ gapHorizontal: 15,
61
+ gapVertical: 15,
62
+ },
63
+ fourXl: {
64
+ gapHorizontal: 17.5,
65
+ gapVertical: 17.5,
66
+ },
67
+ fiveXl: {
68
+ gapHorizontal: 20,
69
+ gapVertical: 20,
70
+ },
71
+ sixXl: {
72
+ gapHorizontal: 23,
73
+ gapVertical: 23,
74
+ },
75
+ },
76
+ borderRadius: {
77
+ rounded: 4,
78
+ pill: 1000,
79
+ none: 0,
80
+ },
81
+ inset: {
82
+ xs: {
83
+ horizontal: 8,
84
+ verticalSquished: 6,
85
+ verticalSquared: 8,
86
+ verticalStretched: 12,
87
+ },
88
+ sm: {
89
+ horizontal: 12,
90
+ verticalSquished: 8,
91
+ verticalSquared: 12,
92
+ verticalStretched: 16,
93
+ },
94
+ md: {
95
+ horizontal: 16,
96
+ verticalSquished: 12,
97
+ verticalSquared: 16,
98
+ verticalStretched: 20,
99
+ },
100
+ lg: {
101
+ horizontal: 20,
102
+ verticalSquished: 16,
103
+ verticalSquared: 20,
104
+ verticalStretched: 24,
105
+ },
106
+ xl: {
107
+ horizontal: 24,
108
+ verticalSquished: 20,
109
+ verticalSquared: 24,
110
+ verticalStretched: 28,
111
+ },
112
+ },
113
+ horizontal: {
114
+ fourXs: 2,
115
+ threeXs: 4,
116
+ twoXs: 6,
117
+ xs: 8,
118
+ sm: 12,
119
+ md: 16,
120
+ lg: 20,
121
+ xl: 24,
122
+ twoXl: 28,
123
+ threeXl: 32,
124
+ },
125
+ vertical: {
126
+ fourXs: 2,
127
+ threeXs: 4,
128
+ twoXs: 6,
129
+ xs: 8,
130
+ sm: 12,
131
+ md: 16,
132
+ lg: 20,
133
+ xl: 24,
134
+ twoXl: 28,
135
+ threeXl: 32,
136
+ },
137
+ },
138
+ typography: {
139
+ uiBody: {
140
+ xs: {
141
+ fontSize: 10.5,
142
+ trackingTight: -1.149999976158142,
143
+ trackingNormal: 0,
144
+ trackingWide: 1.149999976158142,
145
+ fontWeightLighter: 300,
146
+ fontWeightNormal: 400,
147
+ fontWeightBolder: 500,
148
+ lineHeightDefault: 16,
149
+ lineHeightSquished: 12,
150
+ },
151
+ sm: {
152
+ fontSize: 12,
153
+ trackingTight: -1.3200000524520874,
154
+ trackingNormal: 0,
155
+ trackingWide: 1.3200000524520874,
156
+ fontWeightLighter: 300,
157
+ fontWeightNormal: 400,
158
+ fontWeightBolder: 500,
159
+ lineHeightDefault: 16,
160
+ lineHeightSquished: 12,
161
+ },
162
+ fontFamily: 'Inter',
163
+ md: {
164
+ fontSize: 14,
165
+ trackingTight: -1.5399999618530273,
166
+ trackingNormal: 0,
167
+ trackingWide: 1.5399999618530273,
168
+ fontWeightLighter: 300,
169
+ fontWeightNormal: 400,
170
+ fontWeightBolder: 500,
171
+ lineHeightDefault: 20,
172
+ lineHeightSquished: 16,
173
+ },
174
+ lg: {
175
+ fontSize: 16,
176
+ trackingTight: -1.7599999904632568,
177
+ trackingNormal: 0,
178
+ trackingWide: 1.7599999904632568,
179
+ fontWeightLighter: 300,
180
+ fontWeightNormal: 400,
181
+ fontWeightBolder: 500,
182
+ lineHeightDefault: 24,
183
+ lineHeightSquished: 20,
184
+ },
185
+ xl: {
186
+ fontSize: 18.5,
187
+ trackingTight: -1.7599999904632568,
188
+ trackingNormal: 0,
189
+ trackingWide: 2.0350000858306885,
190
+ fontWeightLighter: 300,
191
+ fontWeightNormal: 400,
192
+ fontWeightBolder: 500,
193
+ lineHeightDefault: 24,
194
+ lineHeightSquished: 20,
195
+ },
196
+ twoXl: {
197
+ fontSize: 21,
198
+ trackingTight: -2.309999942779541,
199
+ trackingNormal: 0,
200
+ trackingWide: 2.309999942779541,
201
+ fontWeightLighter: 300,
202
+ fontWeightNormal: 400,
203
+ fontWeightBolder: 500,
204
+ lineHeightDefault: 28,
205
+ lineHeightSquished: 24,
206
+ },
207
+ threeXl: {
208
+ fontSize: 24.5,
209
+ trackingTight: -2.694999933242798,
210
+ trackingNormal: 0,
211
+ trackingWide: 2.694999933242798,
212
+ fontWeightLighter: 300,
213
+ fontWeightNormal: 400,
214
+ fontWeightBolder: 500,
215
+ lineHeightDefault: 32,
216
+ lineHeightSquished: 28,
217
+ },
218
+ fourXl: {
219
+ fontSize: 28,
220
+ trackingTight: -3.0799999237060547,
221
+ trackingNormal: 0,
222
+ trackingWide: 3.0799999237060547,
223
+ fontWeightLighter: 300,
224
+ fontWeightNormal: 400,
225
+ fontWeightBolder: 500,
226
+ lineHeightDefault: 32,
227
+ lineHeightSquished: 28,
228
+ },
229
+ fiveXl: {
230
+ fontSize: 32,
231
+ trackingTight: -3.5199999809265137,
232
+ trackingNormal: 0,
233
+ trackingWide: 3.5199999809265137,
234
+ fontWeightLighter: 300,
235
+ fontWeightNormal: 400,
236
+ fontWeightBolder: 500,
237
+ lineHeightDefault: 36,
238
+ lineHeightSquished: 32,
239
+ },
240
+ sixXl: {
241
+ fontSize: 37,
242
+ trackingTight: -4.070000171661377,
243
+ trackingNormal: 0,
244
+ trackingWide: 4.070000171661377,
245
+ fontWeightLighter: 300,
246
+ fontWeightNormal: 400,
247
+ fontWeightBolder: 500,
248
+ lineHeightDefault: 40,
249
+ lineHeightSquished: 36,
250
+ },
251
+ },
252
+ header: {
253
+ fontFamily: 'Equinor',
254
+ xs: {
255
+ fontSize: 12,
256
+ trackingTight: -1.149999976158142,
257
+ trackingNormal: 0,
258
+ trackingWide: 1.149999976158142,
259
+ fontWeightLighter: 300,
260
+ fontWeightNormal: 400,
261
+ fontWeightBolder: 500,
262
+ lineHeightDefault: 16,
263
+ lineHeightSquished: 12,
264
+ },
265
+ sm: {
266
+ fontSize: 14,
267
+ trackingTight: -1.3200000524520874,
268
+ trackingNormal: 0,
269
+ trackingWide: 1.3200000524520874,
270
+ fontWeightLighter: 300,
271
+ fontWeightNormal: 400,
272
+ fontWeightBolder: 500,
273
+ lineHeightDefault: 16,
274
+ lineHeightSquished: 12,
275
+ },
276
+ md: {
277
+ fontSize: 16,
278
+ trackingTight: -1.5399999618530273,
279
+ trackingNormal: 0,
280
+ trackingWide: 1.5399999618530273,
281
+ fontWeightLighter: 300,
282
+ fontWeightNormal: 400,
283
+ fontWeightBolder: 500,
284
+ lineHeightDefault: 20,
285
+ lineHeightSquished: 16,
286
+ },
287
+ lg: {
288
+ fontSize: 18,
289
+ trackingTight: -1.7599999904632568,
290
+ trackingNormal: 0,
291
+ trackingWide: 1.7599999904632568,
292
+ fontWeightLighter: 300,
293
+ fontWeightNormal: 400,
294
+ fontWeightBolder: 500,
295
+ lineHeightDefault: 24,
296
+ lineHeightSquished: 20,
297
+ },
298
+ xl: {
299
+ fontSize: 21,
300
+ trackingTight: -1.7599999904632568,
301
+ trackingNormal: 0,
302
+ trackingWide: 2.0350000858306885,
303
+ fontWeightLighter: 300,
304
+ fontWeightNormal: 400,
305
+ fontWeightBolder: 500,
306
+ lineHeightDefault: 24,
307
+ lineHeightSquished: 20,
308
+ },
309
+ twoXl: {
310
+ fontSize: 24,
311
+ trackingTight: -2.309999942779541,
312
+ trackingNormal: 0,
313
+ trackingWide: 2.309999942779541,
314
+ fontWeightLighter: 300,
315
+ fontWeightNormal: 400,
316
+ fontWeightBolder: 500,
317
+ lineHeightDefault: 28,
318
+ lineHeightSquished: 24,
319
+ },
320
+ threeXl: {
321
+ fontSize: 27.5,
322
+ trackingTight: -2.694999933242798,
323
+ trackingNormal: 0,
324
+ trackingWide: 2.694999933242798,
325
+ fontWeightLighter: 300,
326
+ fontWeightNormal: 400,
327
+ fontWeightBolder: 500,
328
+ lineHeightDefault: 32,
329
+ lineHeightSquished: 28,
330
+ },
331
+ fourXl: {
332
+ fontSize: 31.5,
333
+ trackingTight: -3.0799999237060547,
334
+ trackingNormal: 0,
335
+ trackingWide: 3.0799999237060547,
336
+ fontWeightLighter: 300,
337
+ fontWeightNormal: 400,
338
+ fontWeightBolder: 500,
339
+ lineHeightDefault: 32,
340
+ lineHeightSquished: 28,
341
+ },
342
+ fiveXl: {
343
+ fontSize: 36.5,
344
+ trackingTight: -3.5199999809265137,
345
+ trackingNormal: 0,
346
+ trackingWide: 3.5199999809265137,
347
+ fontWeightLighter: 300,
348
+ fontWeightNormal: 400,
349
+ fontWeightBolder: 500,
350
+ lineHeightDefault: 36,
351
+ lineHeightSquished: 32,
352
+ },
353
+ sixXl: {
354
+ fontSize: 42,
355
+ trackingTight: -4.070000171661377,
356
+ trackingNormal: 0,
357
+ trackingWide: 4.070000171661377,
358
+ fontWeightLighter: 300,
359
+ fontWeightNormal: 400,
360
+ fontWeightBolder: 500,
361
+ lineHeightDefault: 40,
362
+ lineHeightSquished: 36,
363
+ },
364
+ },
365
+ },
366
+ generic: {
367
+ gap: {
368
+ none: {
369
+ horizontal: 0,
370
+ vertical: 0,
371
+ },
372
+ fourXs: {
373
+ horizontal: 2,
374
+ vertical: 2,
375
+ },
376
+ threeXs: {
377
+ horizontal: 4,
378
+ vertical: 4,
379
+ },
380
+ twoXs: {
381
+ horizontal: 6,
382
+ vertical: 6,
383
+ },
384
+ xs: {
385
+ horizontal: 8,
386
+ vertical: 8,
387
+ },
388
+ sm: {
389
+ horizontal: 12,
390
+ vertical: 12,
391
+ },
392
+ md: {
393
+ horizontal: 16,
394
+ vertical: 16,
395
+ },
396
+ lg: {
397
+ horizontal: 20,
398
+ vertical: 20,
399
+ },
400
+ xl: {
401
+ horizontal: 24,
402
+ vertical: 24,
403
+ },
404
+ twoXl: {
405
+ horizontal: 28,
406
+ vertical: 28,
407
+ },
408
+ threeXl: {
409
+ horizontal: 32,
410
+ vertical: 32,
411
+ },
412
+ },
413
+ space: {
414
+ none: {
415
+ horizontal: 0,
416
+ vertical: 0,
417
+ },
418
+ fourXs: {
419
+ horizontal: 2,
420
+ vertical: 2,
421
+ },
422
+ threeXs: {
423
+ horizontal: 4,
424
+ vertical: 4,
425
+ },
426
+ twoXs: {
427
+ horizontal: 6,
428
+ vertical: 6,
429
+ },
430
+ xs: {
431
+ horizontal: 8,
432
+ vertical: 8,
433
+ },
434
+ sm: {
435
+ horizontal: 12,
436
+ vertical: 12,
437
+ },
438
+ md: {
439
+ horizontal: 16,
440
+ vertical: 16,
441
+ },
442
+ lg: {
443
+ horizontal: 20,
444
+ vertical: 20,
445
+ },
446
+ xl: {
447
+ horizontal: 24,
448
+ vertical: 24,
449
+ },
450
+ twoXl: {
451
+ horizontal: 28,
452
+ vertical: 28,
453
+ },
454
+ threeXl: {
455
+ horizontal: 32,
456
+ vertical: 32,
457
+ },
458
+ },
459
+ },
460
+ spacingProportions: {
461
+ squished: {
462
+ xs: {
463
+ horizontal: 8,
464
+ vertical: 6,
465
+ },
466
+ sm: {
467
+ horizontal: 12,
468
+ vertical: 8,
469
+ },
470
+ md: {
471
+ horizontal: 16,
472
+ vertical: 12,
473
+ },
474
+ lg: {
475
+ horizontal: 20,
476
+ vertical: 16,
477
+ },
478
+ xl: {
479
+ horizontal: 24,
480
+ vertical: 20,
481
+ },
482
+ },
483
+ squared: {
484
+ xs: {
485
+ horizontal: 8,
486
+ vertical: 8,
487
+ },
488
+ sm: {
489
+ horizontal: 12,
490
+ vertical: 12,
491
+ },
492
+ md: {
493
+ horizontal: 16,
494
+ vertical: 16,
495
+ },
496
+ lg: {
497
+ horizontal: 20,
498
+ vertical: 20,
499
+ },
500
+ xl: {
501
+ horizontal: 24,
502
+ vertical: 24,
503
+ },
504
+ },
505
+ stretched: {
506
+ xs: {
507
+ horizontal: 8,
508
+ vertical: 12,
509
+ },
510
+ sm: {
511
+ horizontal: 12,
512
+ vertical: 16,
513
+ },
514
+ md: {
515
+ horizontal: 16,
516
+ vertical: 20,
517
+ },
518
+ lg: {
519
+ horizontal: 20,
520
+ vertical: 24,
521
+ },
522
+ xl: {
523
+ horizontal: 24,
524
+ vertical: 28,
525
+ },
526
+ },
527
+ },
528
+ selectableSpace: {
529
+ xs: {
530
+ horizontal: 8,
531
+ vertical: 8,
532
+ },
533
+ sm: {
534
+ horizontal: 12,
535
+ vertical: 12,
536
+ },
537
+ md: {
538
+ horizontal: 16,
539
+ vertical: 16,
540
+ },
541
+ lg: {
542
+ horizontal: 20,
543
+ vertical: 20,
544
+ },
545
+ xl: {
546
+ horizontal: 24,
547
+ vertical: 24,
548
+ },
549
+ },
550
+ containerSpace: {
551
+ horizontal: 16,
552
+ vertical: 16,
553
+ },
554
+ pageSpace: {
555
+ horizontal: 24,
556
+ vertical: 24,
557
+ },
558
+ } as const
@@ -0,0 +1,122 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+ export const typography = {
6
+ documentation: 'header',
7
+ typography: {
8
+ fontFamily: 'Equinor',
9
+ },
10
+ fontFamilySize: {
11
+ xs: {
12
+ fontSize: 12,
13
+ trackingTight: -1.149999976158142,
14
+ trackingNormal: 0,
15
+ trackingWide: 1.149999976158142,
16
+ fontWeightLighter: 300,
17
+ fontWeightNormal: 400,
18
+ fontWeightBolder: 500,
19
+ lineHeightDefault: 16,
20
+ lineHeightSquished: 12,
21
+ },
22
+ sm: {
23
+ fontSize: 14,
24
+ trackingTight: -1.3200000524520874,
25
+ trackingNormal: 0,
26
+ trackingWide: 1.3200000524520874,
27
+ fontWeightLighter: 300,
28
+ fontWeightNormal: 400,
29
+ fontWeightBolder: 500,
30
+ lineHeightDefault: 16,
31
+ lineHeightSquished: 12,
32
+ },
33
+ md: {
34
+ fontSize: 16,
35
+ trackingTight: -1.5399999618530273,
36
+ trackingNormal: 0,
37
+ trackingWide: 1.5399999618530273,
38
+ fontWeightLighter: 300,
39
+ fontWeightNormal: 400,
40
+ fontWeightBolder: 500,
41
+ lineHeightDefault: 20,
42
+ lineHeightSquished: 16,
43
+ },
44
+ lg: {
45
+ fontSize: 18,
46
+ trackingTight: -1.7599999904632568,
47
+ trackingNormal: 0,
48
+ trackingWide: 1.7599999904632568,
49
+ fontWeightLighter: 300,
50
+ fontWeightNormal: 400,
51
+ fontWeightBolder: 500,
52
+ lineHeightDefault: 24,
53
+ lineHeightSquished: 20,
54
+ },
55
+ xl: {
56
+ fontSize: 21,
57
+ trackingTight: -1.7599999904632568,
58
+ trackingNormal: 0,
59
+ trackingWide: 2.0350000858306885,
60
+ fontWeightLighter: 300,
61
+ fontWeightNormal: 400,
62
+ fontWeightBolder: 500,
63
+ lineHeightDefault: 24,
64
+ lineHeightSquished: 20,
65
+ },
66
+ twoXl: {
67
+ fontSize: 24,
68
+ trackingTight: -2.309999942779541,
69
+ trackingNormal: 0,
70
+ trackingWide: 2.309999942779541,
71
+ fontWeightLighter: 300,
72
+ fontWeightNormal: 400,
73
+ fontWeightBolder: 500,
74
+ lineHeightDefault: 28,
75
+ lineHeightSquished: 24,
76
+ },
77
+ threeXl: {
78
+ fontSize: 27.5,
79
+ trackingTight: -2.694999933242798,
80
+ trackingNormal: 0,
81
+ trackingWide: 2.694999933242798,
82
+ fontWeightLighter: 300,
83
+ fontWeightNormal: 400,
84
+ fontWeightBolder: 500,
85
+ lineHeightDefault: 32,
86
+ lineHeightSquished: 32,
87
+ },
88
+ fourXl: {
89
+ fontSize: 31.5,
90
+ trackingTight: -3.0799999237060547,
91
+ trackingNormal: 0,
92
+ trackingWide: 3.0799999237060547,
93
+ fontWeightLighter: 300,
94
+ fontWeightNormal: 400,
95
+ fontWeightBolder: 500,
96
+ lineHeightDefault: 32,
97
+ lineHeightSquished: 28,
98
+ },
99
+ fiveXl: {
100
+ fontSize: 36.5,
101
+ trackingTight: -3.5199999809265137,
102
+ trackingNormal: 0,
103
+ trackingWide: 3.5199999809265137,
104
+ fontWeightLighter: 300,
105
+ fontWeightNormal: 400,
106
+ fontWeightBolder: 500,
107
+ lineHeightDefault: 36,
108
+ lineHeightSquished: 32,
109
+ },
110
+ sixXl: {
111
+ fontSize: 42,
112
+ trackingTight: -4.070000171661377,
113
+ trackingNormal: 0,
114
+ trackingWide: 4.070000171661377,
115
+ fontWeightLighter: 300,
116
+ fontWeightNormal: 400,
117
+ fontWeightBolder: 500,
118
+ lineHeightDefault: 40,
119
+ lineHeightSquished: 36,
120
+ },
121
+ },
122
+ } as const