@abgov/design-tokens 1.4.3 → 1.5.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 (35) hide show
  1. package/data/component-design-tokens/accordion-design-tokens.json +6 -4
  2. package/data/component-design-tokens/badge-design-tokens.json +103 -0
  3. package/data/component-design-tokens/button-design-tokens.json +326 -8
  4. package/data/component-design-tokens/button-group-design-tokens.json +12 -0
  5. package/data/component-design-tokens/checkbox-design-tokens.json +99 -0
  6. package/data/component-design-tokens/container-design-tokens.json +146 -0
  7. package/data/component-design-tokens/date-picker-design-tokens.json +102 -0
  8. package/data/component-design-tokens/details-design-tokens.json +84 -0
  9. package/data/component-design-tokens/divider-design-tokens.json +6 -0
  10. package/data/component-design-tokens/dropdown-design-tokens.json +110 -0
  11. package/data/component-design-tokens/file-uploader-design-tokens.json +102 -0
  12. package/data/component-design-tokens/footer-design-tokens.json +74 -0
  13. package/data/component-design-tokens/form-item-design-tokens.json +46 -0
  14. package/data/component-design-tokens/form-stepper-design-tokens.json +98 -0
  15. package/data/component-design-tokens/header-design-tokens.json +70 -0
  16. package/data/component-design-tokens/hero-banner-design-tokens.json +22 -0
  17. package/data/component-design-tokens/icon-button-design-tokens.json +74 -0
  18. package/data/component-design-tokens/input-design-tokens.json +90 -0
  19. package/data/component-design-tokens/microsite-header-design-tokens.json +66 -0
  20. package/data/component-design-tokens/modal-design-tokens.json +53 -0
  21. package/data/component-design-tokens/notification-banner-design-tokens.json +90 -0
  22. package/data/component-design-tokens/popover-design-tokens.json +33 -0
  23. package/data/component-design-tokens/progress-indicator-design-tokens.json +22 -0
  24. package/data/component-design-tokens/radio-design-tokens.json +138 -0
  25. package/data/component-design-tokens/scrollable-design-tokens.json +12 -0
  26. package/data/component-design-tokens/side-menu-design-tokens.json +174 -17
  27. package/data/component-design-tokens/skeleton-loading-design-tokens.json +6 -0
  28. package/data/component-design-tokens/table-design-tokens.json +4 -0
  29. package/data/component-design-tokens/tabs-design-tokens.json +78 -0
  30. package/data/component-design-tokens/text-area-design-tokens.json +67 -0
  31. package/data/component-design-tokens/tooltip-design-tokens.json +38 -0
  32. package/data/goa-global-design-tokens.json +252 -215
  33. package/dist/tokens.css +552 -60
  34. package/dist/tokens.scss +552 -60
  35. package/package.json +1 -1
@@ -1,4 +1,78 @@
1
1
  {
2
+ "border-none": {
3
+ "value": {
4
+ "color": "rgba(0,0,0,0)",
5
+ "width": "{borderWidth.none}",
6
+ "style": "solid"
7
+ },
8
+ "type": "border"
9
+ },
10
+ "borderRadius": {
11
+ "none": {
12
+ "value": "0",
13
+ "type": "borderRadius"
14
+ },
15
+ "s": {
16
+ "value": "0.125rem",
17
+ "type": "borderRadius",
18
+ "description": "2px"
19
+ },
20
+ "m": {
21
+ "value": "0.25rem",
22
+ "type": "borderRadius",
23
+ "description": "4px"
24
+ },
25
+ "l": {
26
+ "value": "0.375rem",
27
+ "type": "borderRadius",
28
+ "description": "6px"
29
+ },
30
+ "xl": {
31
+ "value": "0.5rem",
32
+ "type": "borderRadius",
33
+ "description": "8px"
34
+ },
35
+ "2xl": {
36
+ "value": "0.625rem",
37
+ "type": "borderRadius",
38
+ "description": "10px"
39
+ },
40
+ "3xl": {
41
+ "value": "0.75rem",
42
+ "type": "borderRadius",
43
+ "description": "12px"
44
+ }
45
+ },
46
+ "borderWidth": {
47
+ "none": {
48
+ "value": "0px",
49
+ "type": "borderWidth"
50
+ },
51
+ "2xs": {
52
+ "value": "0.5px",
53
+ "type": "borderWidth"
54
+ },
55
+ "xs": {
56
+ "value": "0.7px",
57
+ "type": "borderWidth"
58
+ },
59
+ "s": {
60
+ "value": "1px",
61
+ "type": "borderWidth"
62
+ },
63
+ "m": {
64
+ "value": "2px",
65
+ "type": "borderWidth"
66
+ },
67
+ "l": {
68
+ "value": "3px",
69
+ "type": "borderWidth"
70
+ },
71
+ "xl": {
72
+ "value": "4px",
73
+ "type": "borderWidth"
74
+ }
75
+ },
2
76
  "color": {
3
77
  "interactive": {
4
78
  "default": {
@@ -120,7 +194,7 @@
120
194
  "type": "color"
121
195
  },
122
196
  "background": {
123
- "value": "#fff1f2",
197
+ "value": "#FFF6F6",
124
198
  "type": "color"
125
199
  }
126
200
  },
@@ -138,7 +212,7 @@
138
212
  "type": "color"
139
213
  },
140
214
  "background": {
141
- "value": "#eef9f3",
215
+ "value": "#F2FFFA",
142
216
  "type": "color"
143
217
  }
144
218
  },
@@ -271,126 +345,115 @@
271
345
  }
272
346
  }
273
347
  },
274
- "opacity": {
275
- "background": {
276
- "modal": {
277
- "value": "50%",
278
- "type": "opacity",
279
- "description": "50% opacity for black scrim behind modal to disable the rest of the screen"
280
- },
281
- "loading": {
282
- "value": "90%",
283
- "type": "opacity",
284
- "description": "90% opacity for white scrum behind loading indicator"
285
- }
348
+ "fontFamily": {
349
+ "sans": {
350
+ "value": "acumin-pro-semi-condensed, helvetica-neue, arial, sans-serif",
351
+ "type": "fontFamilies",
352
+ "description": "Deafult sans font family and fallback fonts when unavailable"
353
+ },
354
+ "number": {
355
+ "value": "roboto-mono, monospace",
356
+ "type": "fontFamilies",
357
+ "description": "monospace typeface for numbers and fallback fonts when unavailable"
286
358
  }
287
359
  },
288
- "borderRadius": {
289
- "none": {
290
- "value": "0",
291
- "type": "borderRadius"
360
+ "fontSize": {
361
+ "1": {
362
+ "value": "0.75rem",
363
+ "type": "fontSizes",
364
+ "description": "12px"
292
365
  },
293
- "m": {
294
- "value": "0.25rem",
295
- "type": "borderRadius"
366
+ "2": {
367
+ "value": "0.875rem",
368
+ "type": "fontSizes",
369
+ "description": "14px"
296
370
  },
297
- "l": {
298
- "value": "0.375rem",
299
- "type": "borderRadius"
371
+ "3": {
372
+ "value": "1rem",
373
+ "type": "fontSizes",
374
+ "description": "16px"
300
375
  },
301
- "xl": {
302
- "value": "0.5rem",
303
- "type": "borderRadius"
376
+ "4": {
377
+ "value": "1.125rem",
378
+ "type": "fontSizes",
379
+ "description": "18px"
304
380
  },
305
- "2xl": {
306
- "value": "0.625rem",
307
- "type": "borderRadius"
381
+ "5": {
382
+ "value": "1.25rem",
383
+ "type": "fontSizes",
384
+ "description": "20px"
308
385
  },
309
- "3xl": {
310
- "value": "0.75rem",
311
- "type": "borderRadius"
312
- }
313
- },
314
- "borderWidth": {
315
- "2xs": {
316
- "value": "0.5px",
317
- "type": "borderWidth"
386
+ "6": {
387
+ "value": "1.375rem",
388
+ "type": "fontSizes",
389
+ "description": "22px"
318
390
  },
319
- "xs": {
320
- "value": "0.7px",
321
- "type": "borderWidth"
391
+ "7": {
392
+ "value": "1.5rem",
393
+ "type": "fontSizes",
394
+ "description": "24px"
322
395
  },
323
- "s": {
324
- "value": "1px",
325
- "type": "borderWidth"
396
+ "8": {
397
+ "value": "2rem",
398
+ "type": "fontSizes",
399
+ "description": "32px"
326
400
  },
327
- "m": {
328
- "value": "2px",
329
- "type": "borderWidth"
401
+ "9": {
402
+ "value": "2.25rem",
403
+ "type": "fontSizes",
404
+ "description": "36px"
330
405
  },
331
- "l": {
332
- "value": "3px",
333
- "type": "borderWidth"
406
+ "10": {
407
+ "value": "3rem",
408
+ "type": "fontSizes",
409
+ "description": "48px"
334
410
  }
335
411
  },
336
- "space": {
337
- "none": {
338
- "value": "0rem",
339
- "type": "spacing",
340
- "description": "0px"
341
- },
342
- "3xs": {
343
- "value": "0.125rem",
344
- "type": "spacing",
345
- "description": "2px"
346
- },
347
- "2xs": {
348
- "value": "0.25rem",
349
- "type": "spacing",
350
- "description": "4px"
351
- },
352
- "xs": {
353
- "value": "0.5rem",
354
- "type": "spacing",
355
- "description": "8px"
412
+ "fontWeight": {
413
+ "regular": {
414
+ "value": "400",
415
+ "type": "fontWeights"
356
416
  },
357
- "s": {
358
- "value": "0.75rem",
359
- "type": "spacing",
360
- "description": "12px"
417
+ "medium": {
418
+ "value": "500",
419
+ "type": "fontWeights"
361
420
  },
362
- "m": {
421
+ "bold": {
422
+ "value": "700",
423
+ "type": "fontWeights"
424
+ }
425
+ },
426
+ "iconSize": {
427
+ "1": {
363
428
  "value": "1rem",
364
- "type": "spacing",
429
+ "type": "sizing",
365
430
  "description": "16px"
366
431
  },
367
- "l": {
432
+ "2": {
433
+ "value": "1.125rem",
434
+ "type": "sizing",
435
+ "description": "18px"
436
+ },
437
+ "3": {
438
+ "value": "1.25rem",
439
+ "type": "sizing",
440
+ "description": "20px"
441
+ },
442
+ "4": {
368
443
  "value": "1.5rem",
369
- "type": "spacing",
444
+ "type": "sizing",
370
445
  "description": "24px"
371
446
  },
372
- "xl": {
447
+ "5": {
373
448
  "value": "2rem",
374
- "type": "spacing",
449
+ "type": "sizing",
375
450
  "description": "32px"
376
451
  },
377
- "2xl": {
378
- "value": "3rem",
379
- "type": "spacing",
380
- "description": "48px"
381
- },
382
- "3xl": {
383
- "value": "4rem",
384
- "type": "spacing",
385
- "description": "64px"
452
+ "6": {
453
+ "value": "2.5rem",
454
+ "type": "sizing",
455
+ "description": "40px"
386
456
  },
387
- "4xl": {
388
- "value": "8rem",
389
- "type": "spacing",
390
- "description": "128px"
391
- }
392
- },
393
- "iconSize": {
394
457
  "s": {
395
458
  "value": "1rem",
396
459
  "type": "sizing",
@@ -407,7 +470,63 @@
407
470
  "description": "24px"
408
471
  }
409
472
  },
410
- "Shadow": {
473
+ "lineHeight": {
474
+ "1": {
475
+ "value": "1.25rem",
476
+ "type": "lineHeights",
477
+ "description": "20px"
478
+ },
479
+ "2": {
480
+ "value": "1.5rem",
481
+ "type": "lineHeights",
482
+ "description": "24px"
483
+ },
484
+ "3": {
485
+ "value": "1.75rem",
486
+ "type": "lineHeights",
487
+ "description": "28px"
488
+ },
489
+ "4": {
490
+ "value": "2rem",
491
+ "type": "lineHeights",
492
+ "description": "32px"
493
+ },
494
+ "5": {
495
+ "value": "2.5rem",
496
+ "type": "lineHeights",
497
+ "description": "40px"
498
+ },
499
+ "6": {
500
+ "value": "2.75rem",
501
+ "type": "lineHeights",
502
+ "description": "44px"
503
+ },
504
+ "7": {
505
+ "value": "3.5rem",
506
+ "type": "lineHeights",
507
+ "description": "56px"
508
+ },
509
+ "05": {
510
+ "value": "1.125rem",
511
+ "type": "lineHeights",
512
+ "description": "18px"
513
+ }
514
+ },
515
+ "opacity": {
516
+ "background": {
517
+ "modal": {
518
+ "value": "50%",
519
+ "type": "opacity",
520
+ "description": "50% opacity for black scrim behind modal to disable the rest of the screen"
521
+ },
522
+ "loading": {
523
+ "value": "90%",
524
+ "type": "opacity",
525
+ "description": "90% opacity for white scrum behind loading indicator"
526
+ }
527
+ }
528
+ },
529
+ "shadow": {
411
530
  "100": {
412
531
  "value": {
413
532
  "x": "0",
@@ -498,124 +617,61 @@
498
617
  "description": "Drop shadow for modals"
499
618
  }
500
619
  },
501
- "lineHeight": {
502
- "1": {
503
- "value": "1.25rem",
504
- "type": "lineHeights",
505
- "description": "20px"
506
- },
507
- "2": {
508
- "value": "1.5rem",
509
- "type": "lineHeights",
510
- "description": "24px"
511
- },
512
- "3": {
513
- "value": "1.75rem",
514
- "type": "lineHeights",
515
- "description": "28px"
516
- },
517
- "4": {
518
- "value": "2rem",
519
- "type": "lineHeights",
520
- "description": "32px"
521
- },
522
- "5": {
523
- "value": "2.5rem",
524
- "type": "lineHeights",
525
- "description": "40px"
620
+ "space": {
621
+ "none": {
622
+ "value": "0rem",
623
+ "type": "spacing",
624
+ "description": "0px"
526
625
  },
527
- "6": {
528
- "value": "2.75rem",
529
- "type": "lineHeights",
530
- "description": "44px"
626
+ "3xs": {
627
+ "value": "0.125rem",
628
+ "type": "spacing",
629
+ "description": "2px"
531
630
  },
532
- "7": {
533
- "value": "3.5rem",
534
- "type": "lineHeights",
535
- "description": "56px"
631
+ "2xs": {
632
+ "value": "0.25rem",
633
+ "type": "spacing",
634
+ "description": "4px"
536
635
  },
537
- "05": {
538
- "value": "1.125rem",
539
- "type": "lineHeights",
540
- "description": "18px"
541
- }
542
- },
543
- "fontFamily": {
544
- "sans": {
545
- "value": "acumin-pro-semi-condensed, helvetica-neue, arial, sans-serif",
546
- "type": "fontFamilies",
547
- "description": "Deafult sans font family and fallback fonts when unavailable"
636
+ "xs": {
637
+ "value": "0.5rem",
638
+ "type": "spacing",
639
+ "description": "8px"
548
640
  },
549
- "number": {
550
- "value": "roboto-mono, monospace",
551
- "type": "fontFamilies",
552
- "description": "monospace typeface for numbers and fallback fonts when unavailable"
553
- }
554
- },
555
- "fontSize": {
556
- "1": {
641
+ "s": {
557
642
  "value": "0.75rem",
558
- "type": "fontSizes",
643
+ "type": "spacing",
559
644
  "description": "12px"
560
645
  },
561
- "2": {
562
- "value": "0.875rem",
563
- "type": "fontSizes",
564
- "description": "14px"
565
- },
566
- "3": {
646
+ "m": {
567
647
  "value": "1rem",
568
- "type": "fontSizes",
648
+ "type": "spacing",
569
649
  "description": "16px"
570
650
  },
571
- "4": {
572
- "value": "1.125rem",
573
- "type": "fontSizes",
574
- "description": "18px"
575
- },
576
- "5": {
577
- "value": "1.25rem",
578
- "type": "fontSizes",
579
- "description": "20px"
580
- },
581
- "6": {
582
- "value": "1.375rem",
583
- "type": "fontSizes",
584
- "description": "22px"
585
- },
586
- "7": {
651
+ "l": {
587
652
  "value": "1.5rem",
588
- "type": "fontSizes",
653
+ "type": "spacing",
589
654
  "description": "24px"
590
655
  },
591
- "8": {
656
+ "xl": {
592
657
  "value": "2rem",
593
- "type": "fontSizes",
658
+ "type": "spacing",
594
659
  "description": "32px"
595
660
  },
596
- "9": {
597
- "value": "2.25rem",
598
- "type": "fontSizes",
599
- "description": "36px"
600
- },
601
- "10": {
661
+ "2xl": {
602
662
  "value": "3rem",
603
- "type": "fontSizes",
663
+ "type": "spacing",
604
664
  "description": "48px"
605
- }
606
- },
607
- "fontWeight": {
608
- "regular": {
609
- "value": "400",
610
- "type": "fontWeights"
611
665
  },
612
- "medium": {
613
- "value": "500",
614
- "type": "fontWeights"
666
+ "3xl": {
667
+ "value": "4rem",
668
+ "type": "spacing",
669
+ "description": "64px"
615
670
  },
616
- "bold": {
617
- "value": "700",
618
- "type": "fontWeights"
671
+ "4xl": {
672
+ "value": "8rem",
673
+ "type": "spacing",
674
+ "description": "128px"
619
675
  }
620
676
  },
621
677
  "typography": {
@@ -704,18 +760,6 @@
704
760
  "type": "typography"
705
761
  }
706
762
  },
707
- "button": {
708
- "default": {
709
- "value": {
710
- "fontFamily": "{fontFamily.sans}",
711
- "fontWeight": "{fontWeight.regular}",
712
- "fontSize": "{fontSize.4}",
713
- "lineHeight": "{lineHeight.1}",
714
- "letterSpacing": "{letterSpacing.button}"
715
- },
716
- "type": "typography"
717
- }
718
- },
719
763
  "number": {
720
764
  "s": {
721
765
  "value": {
@@ -745,12 +789,5 @@
745
789
  "type": "typography"
746
790
  }
747
791
  }
748
- },
749
- "letterSpacing": {
750
- "button": {
751
- "value": "0.0125rem",
752
- "type": "letterSpacing",
753
- "description": "small letter spacing adjustment to slightly kern letters out for readability on buttons"
754
- }
755
792
  }
756
793
  }