@abgov/design-tokens 1.5.0 → 1.5.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.
@@ -1,78 +1,4 @@
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
- },
76
2
  "color": {
77
3
  "interactive": {
78
4
  "default": {
@@ -345,82 +271,141 @@
345
271
  }
346
272
  }
347
273
  },
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"
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
+ }
358
286
  }
359
287
  },
360
- "fontSize": {
361
- "1": {
288
+ "borderRadius": {
289
+ "none": {
290
+ "value": "0",
291
+ "type": "borderRadius"
292
+ },
293
+ "s": {
294
+ "value": "0.125rem",
295
+ "type": "borderRadius",
296
+ "description": "2px"
297
+ },
298
+ "m": {
299
+ "value": "0.25rem",
300
+ "type": "borderRadius",
301
+ "description": "4px"
302
+ },
303
+ "l": {
304
+ "value": "0.375rem",
305
+ "type": "borderRadius",
306
+ "description": "6px"
307
+ },
308
+ "xl": {
309
+ "value": "0.5rem",
310
+ "type": "borderRadius",
311
+ "description": "8px"
312
+ },
313
+ "2xl": {
314
+ "value": "0.625rem",
315
+ "type": "borderRadius",
316
+ "description": "10px"
317
+ },
318
+ "3xl": {
362
319
  "value": "0.75rem",
363
- "type": "fontSizes",
320
+ "type": "borderRadius",
364
321
  "description": "12px"
322
+ }
323
+ },
324
+ "borderWidth": {
325
+ "none": {
326
+ "value": "0px",
327
+ "type": "borderWidth"
365
328
  },
366
- "2": {
367
- "value": "0.875rem",
368
- "type": "fontSizes",
369
- "description": "14px"
329
+ "2xs": {
330
+ "value": "0.5px",
331
+ "type": "borderWidth"
370
332
  },
371
- "3": {
372
- "value": "1rem",
373
- "type": "fontSizes",
374
- "description": "16px"
333
+ "xs": {
334
+ "value": "0.7px",
335
+ "type": "borderWidth"
375
336
  },
376
- "4": {
377
- "value": "1.125rem",
378
- "type": "fontSizes",
379
- "description": "18px"
337
+ "s": {
338
+ "value": "1px",
339
+ "type": "borderWidth"
380
340
  },
381
- "5": {
382
- "value": "1.25rem",
383
- "type": "fontSizes",
384
- "description": "20px"
341
+ "m": {
342
+ "value": "2px",
343
+ "type": "borderWidth"
385
344
  },
386
- "6": {
387
- "value": "1.375rem",
388
- "type": "fontSizes",
389
- "description": "22px"
345
+ "l": {
346
+ "value": "3px",
347
+ "type": "borderWidth"
390
348
  },
391
- "7": {
349
+ "xl": {
350
+ "value": "4px",
351
+ "type": "borderWidth"
352
+ }
353
+ },
354
+ "space": {
355
+ "none": {
356
+ "value": "0rem",
357
+ "type": "spacing",
358
+ "description": "0px"
359
+ },
360
+ "3xs": {
361
+ "value": "0.125rem",
362
+ "type": "spacing",
363
+ "description": "2px"
364
+ },
365
+ "2xs": {
366
+ "value": "0.25rem",
367
+ "type": "spacing",
368
+ "description": "4px"
369
+ },
370
+ "xs": {
371
+ "value": "0.5rem",
372
+ "type": "spacing",
373
+ "description": "8px"
374
+ },
375
+ "s": {
376
+ "value": "0.75rem",
377
+ "type": "spacing",
378
+ "description": "12px"
379
+ },
380
+ "m": {
381
+ "value": "1rem",
382
+ "type": "spacing",
383
+ "description": "16px"
384
+ },
385
+ "l": {
392
386
  "value": "1.5rem",
393
- "type": "fontSizes",
387
+ "type": "spacing",
394
388
  "description": "24px"
395
389
  },
396
- "8": {
390
+ "xl": {
397
391
  "value": "2rem",
398
- "type": "fontSizes",
392
+ "type": "spacing",
399
393
  "description": "32px"
400
394
  },
401
- "9": {
402
- "value": "2.25rem",
403
- "type": "fontSizes",
404
- "description": "36px"
405
- },
406
- "10": {
395
+ "2xl": {
407
396
  "value": "3rem",
408
- "type": "fontSizes",
397
+ "type": "spacing",
409
398
  "description": "48px"
410
- }
411
- },
412
- "fontWeight": {
413
- "regular": {
414
- "value": "400",
415
- "type": "fontWeights"
416
399
  },
417
- "medium": {
418
- "value": "500",
419
- "type": "fontWeights"
400
+ "3xl": {
401
+ "value": "4rem",
402
+ "type": "spacing",
403
+ "description": "64px"
420
404
  },
421
- "bold": {
422
- "value": "700",
423
- "type": "fontWeights"
405
+ "4xl": {
406
+ "value": "8rem",
407
+ "type": "spacing",
408
+ "description": "128px"
424
409
  }
425
410
  },
426
411
  "iconSize": {
@@ -470,62 +455,6 @@
470
455
  "description": "24px"
471
456
  }
472
457
  },
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
458
  "shadow": {
530
459
  "100": {
531
460
  "value": {
@@ -617,61 +546,124 @@
617
546
  "description": "Drop shadow for modals"
618
547
  }
619
548
  },
620
- "space": {
621
- "none": {
622
- "value": "0rem",
623
- "type": "spacing",
624
- "description": "0px"
549
+ "lineHeight": {
550
+ "1": {
551
+ "value": "1.25rem",
552
+ "type": "lineHeights",
553
+ "description": "20px"
625
554
  },
626
- "3xs": {
627
- "value": "0.125rem",
628
- "type": "spacing",
629
- "description": "2px"
555
+ "2": {
556
+ "value": "1.5rem",
557
+ "type": "lineHeights",
558
+ "description": "24px"
630
559
  },
631
- "2xs": {
632
- "value": "0.25rem",
633
- "type": "spacing",
634
- "description": "4px"
560
+ "3": {
561
+ "value": "1.75rem",
562
+ "type": "lineHeights",
563
+ "description": "28px"
635
564
  },
636
- "xs": {
637
- "value": "0.5rem",
638
- "type": "spacing",
639
- "description": "8px"
565
+ "4": {
566
+ "value": "2rem",
567
+ "type": "lineHeights",
568
+ "description": "32px"
640
569
  },
641
- "s": {
570
+ "5": {
571
+ "value": "2.5rem",
572
+ "type": "lineHeights",
573
+ "description": "40px"
574
+ },
575
+ "6": {
576
+ "value": "2.75rem",
577
+ "type": "lineHeights",
578
+ "description": "44px"
579
+ },
580
+ "7": {
581
+ "value": "3.5rem",
582
+ "type": "lineHeights",
583
+ "description": "56px"
584
+ },
585
+ "05": {
586
+ "value": "1.125rem",
587
+ "type": "lineHeights",
588
+ "description": "18px"
589
+ }
590
+ },
591
+ "fontFamily": {
592
+ "sans": {
593
+ "value": "acumin-pro-semi-condensed, helvetica-neue, arial, sans-serif",
594
+ "type": "fontFamilies",
595
+ "description": "Deafult sans font family and fallback fonts when unavailable"
596
+ },
597
+ "number": {
598
+ "value": "roboto-mono, monospace",
599
+ "type": "fontFamilies",
600
+ "description": "monospace typeface for numbers and fallback fonts when unavailable"
601
+ }
602
+ },
603
+ "fontSize": {
604
+ "1": {
642
605
  "value": "0.75rem",
643
- "type": "spacing",
606
+ "type": "fontSizes",
644
607
  "description": "12px"
645
608
  },
646
- "m": {
609
+ "2": {
610
+ "value": "0.875rem",
611
+ "type": "fontSizes",
612
+ "description": "14px"
613
+ },
614
+ "3": {
647
615
  "value": "1rem",
648
- "type": "spacing",
616
+ "type": "fontSizes",
649
617
  "description": "16px"
650
618
  },
651
- "l": {
619
+ "4": {
620
+ "value": "1.125rem",
621
+ "type": "fontSizes",
622
+ "description": "18px"
623
+ },
624
+ "5": {
625
+ "value": "1.25rem",
626
+ "type": "fontSizes",
627
+ "description": "20px"
628
+ },
629
+ "6": {
630
+ "value": "1.375rem",
631
+ "type": "fontSizes",
632
+ "description": "22px"
633
+ },
634
+ "7": {
652
635
  "value": "1.5rem",
653
- "type": "spacing",
636
+ "type": "fontSizes",
654
637
  "description": "24px"
655
638
  },
656
- "xl": {
639
+ "8": {
657
640
  "value": "2rem",
658
- "type": "spacing",
641
+ "type": "fontSizes",
659
642
  "description": "32px"
660
643
  },
661
- "2xl": {
644
+ "9": {
645
+ "value": "2.25rem",
646
+ "type": "fontSizes",
647
+ "description": "36px"
648
+ },
649
+ "10": {
662
650
  "value": "3rem",
663
- "type": "spacing",
651
+ "type": "fontSizes",
664
652
  "description": "48px"
653
+ }
654
+ },
655
+ "fontWeight": {
656
+ "regular": {
657
+ "value": "400",
658
+ "type": "fontWeights"
665
659
  },
666
- "3xl": {
667
- "value": "4rem",
668
- "type": "spacing",
669
- "description": "64px"
660
+ "medium": {
661
+ "value": "500",
662
+ "type": "fontWeights"
670
663
  },
671
- "4xl": {
672
- "value": "8rem",
673
- "type": "spacing",
674
- "description": "128px"
664
+ "bold": {
665
+ "value": "700",
666
+ "type": "fontWeights"
675
667
  }
676
668
  },
677
669
  "typography": {
@@ -789,5 +781,13 @@
789
781
  "type": "typography"
790
782
  }
791
783
  }
784
+ },
785
+ "border-none": {
786
+ "value": {
787
+ "color": "rgba(0,0,0,0)",
788
+ "width": "{borderWidth.none}",
789
+ "style": "solid"
790
+ },
791
+ "type": "border"
792
792
  }
793
793
  }