@primer/primitives 8.2.2-rc.535ae80a → 8.2.3-rc.26d0d501

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 (63) hide show
  1. package/dist/css/functional/themes/dark-colorblind.css +4 -2
  2. package/dist/css/functional/themes/dark-dimmed.css +4 -2
  3. package/dist/css/functional/themes/dark-high-contrast.css +4 -2
  4. package/dist/css/functional/themes/dark-tritanopia.css +4 -2
  5. package/dist/css/functional/themes/dark.css +4 -2
  6. package/dist/css/functional/themes/light-colorblind.css +4 -2
  7. package/dist/css/functional/themes/light-high-contrast.css +4 -2
  8. package/dist/css/functional/themes/light-tritanopia.css +4 -2
  9. package/dist/css/functional/themes/light.css +4 -2
  10. package/dist/css/functional/typography/typography.css +5 -4
  11. package/dist/css/primitives.css +5 -4
  12. package/dist/docs/functional/themes/dark-colorblind.json +43 -6
  13. package/dist/docs/functional/themes/dark-dimmed.json +43 -6
  14. package/dist/docs/functional/themes/dark-high-contrast.json +42 -3
  15. package/dist/docs/functional/themes/dark-tritanopia.json +43 -6
  16. package/dist/docs/functional/themes/dark.json +43 -6
  17. package/dist/docs/functional/themes/light-colorblind.json +42 -5
  18. package/dist/docs/functional/themes/light-high-contrast.json +41 -2
  19. package/dist/docs/functional/themes/light-tritanopia.json +42 -5
  20. package/dist/docs/functional/themes/light.json +42 -5
  21. package/dist/docs/functional/typography/typography.json +29 -4
  22. package/dist/fallbacks/functional/typography/typography.json +1 -0
  23. package/dist/figma/figma.json +2 -2
  24. package/dist/figma/themes/dark-colorblind.json +38 -21
  25. package/dist/figma/themes/dark-dimmed.json +38 -21
  26. package/dist/figma/themes/dark-high-contrast.json +22 -4
  27. package/dist/figma/themes/dark-tritanopia.json +38 -21
  28. package/dist/figma/themes/dark.json +38 -21
  29. package/dist/figma/themes/light-colorblind.json +37 -20
  30. package/dist/figma/themes/light-high-contrast.json +21 -3
  31. package/dist/figma/themes/light-tritanopia.json +37 -20
  32. package/dist/figma/themes/light.json +37 -20
  33. package/dist/figma/typography/typography.json +10 -0
  34. package/dist/internalCss/dark-colorblind.css +4 -2
  35. package/dist/internalCss/dark-dimmed.css +4 -2
  36. package/dist/internalCss/dark-high-contrast.css +4 -2
  37. package/dist/internalCss/dark-tritanopia.css +4 -2
  38. package/dist/internalCss/dark.css +4 -2
  39. package/dist/internalCss/light-colorblind.css +4 -2
  40. package/dist/internalCss/light-high-contrast.css +4 -2
  41. package/dist/internalCss/light-tritanopia.css +4 -2
  42. package/dist/internalCss/light.css +4 -2
  43. package/dist/removed/testing.json5 +4 -0
  44. package/dist/styleLint/functional/themes/dark-colorblind.json +43 -6
  45. package/dist/styleLint/functional/themes/dark-dimmed.json +43 -6
  46. package/dist/styleLint/functional/themes/dark-high-contrast.json +42 -3
  47. package/dist/styleLint/functional/themes/dark-tritanopia.json +43 -6
  48. package/dist/styleLint/functional/themes/dark.json +43 -6
  49. package/dist/styleLint/functional/themes/light-colorblind.json +42 -5
  50. package/dist/styleLint/functional/themes/light-high-contrast.json +41 -2
  51. package/dist/styleLint/functional/themes/light-tritanopia.json +42 -5
  52. package/dist/styleLint/functional/themes/light.json +42 -5
  53. package/dist/styleLint/functional/typography/typography.json +29 -4
  54. package/package.json +1 -3
  55. package/src/platforms/figma.ts +1 -0
  56. package/src/tokens/functional/color/dark/overrides/dark.high-contrast.json5 +5 -0
  57. package/src/tokens/functional/color/dark/patterns-dark.json5 +6 -3
  58. package/src/tokens/functional/color/dark/primitives-dark.json5 +13 -0
  59. package/src/tokens/functional/color/light/overrides/light.high-contrast.json5 +5 -0
  60. package/src/tokens/functional/color/light/patterns-light.json5 +5 -2
  61. package/src/tokens/functional/color/light/primitives-light.json5 +13 -0
  62. package/src/tokens/functional/typography/typography.json +14 -4
  63. package/src/tokens/removed/testing.json5 +4 -0
@@ -4558,11 +4558,10 @@
4558
4558
  "scopes": ["borderColor"]
4559
4559
  }
4560
4560
  },
4561
- "alpha": 0.15,
4562
4561
  "filePath": "src/tokens/functional/color/dark/patterns-dark.json5",
4563
4562
  "isSource": true,
4564
4563
  "original": {
4565
- "value": "{base.color.white}",
4564
+ "value": "{borderColor.translucent}",
4566
4565
  "$type": "color",
4567
4566
  "$extensions": {
4568
4567
  "org.primer.figma": {
@@ -4571,8 +4570,7 @@
4571
4570
  "group": "component (internal)",
4572
4571
  "scopes": ["borderColor"]
4573
4572
  }
4574
- },
4575
- "alpha": 0.15
4573
+ }
4576
4574
  },
4577
4575
  "name": "avatar-borderColor",
4578
4576
  "attributes": {},
@@ -4863,8 +4861,12 @@
4863
4861
  "path": ["control", "fgColor", "rest"]
4864
4862
  },
4865
4863
  "control-fgColor-placeholder": {
4866
- "value": "#484f58",
4864
+ "value": "#858e98",
4867
4865
  "$type": "color",
4866
+ "mix": {
4867
+ "color": "#6e7681",
4868
+ "weight": 0.2
4869
+ },
4868
4870
  "$extensions": {
4869
4871
  "org.primer.figma": {
4870
4872
  "collection": "mode",
@@ -4876,8 +4878,12 @@
4876
4878
  "filePath": "src/tokens/functional/color/dark/patterns-dark.json5",
4877
4879
  "isSource": true,
4878
4880
  "original": {
4879
- "value": "{base.color.neutral.5}",
4881
+ "value": "{base.color.neutral.3}",
4880
4882
  "$type": "color",
4883
+ "mix": {
4884
+ "color": "{base.color.neutral.4}",
4885
+ "weight": 0.2
4886
+ },
4881
4887
  "$extensions": {
4882
4888
  "org.primer.figma": {
4883
4889
  "collection": "mode",
@@ -14422,6 +14428,37 @@
14422
14428
  "attributes": {},
14423
14429
  "path": ["borderColor", "transparent"]
14424
14430
  },
14431
+ "borderColor-translucent": {
14432
+ "value": "#ffffff26",
14433
+ "$type": "color",
14434
+ "$extensions": {
14435
+ "org.primer.figma": {
14436
+ "collection": "mode",
14437
+ "mode": "dark",
14438
+ "group": "component (internal)",
14439
+ "scopes": ["borderColor"]
14440
+ }
14441
+ },
14442
+ "alpha": 0.15,
14443
+ "filePath": "src/tokens/functional/color/dark/primitives-dark.json5",
14444
+ "isSource": true,
14445
+ "original": {
14446
+ "value": "{base.color.white}",
14447
+ "$type": "color",
14448
+ "$extensions": {
14449
+ "org.primer.figma": {
14450
+ "collection": "mode",
14451
+ "mode": "dark",
14452
+ "group": "component (internal)",
14453
+ "scopes": ["borderColor"]
14454
+ }
14455
+ },
14456
+ "alpha": 0.15
14457
+ },
14458
+ "name": "borderColor-translucent",
14459
+ "attributes": {},
14460
+ "path": ["borderColor", "translucent"]
14461
+ },
14425
14462
  "borderColor-neutral-muted": {
14426
14463
  "value": "#6e768166",
14427
14464
  "$type": "color",
@@ -4552,11 +4552,10 @@
4552
4552
  "scopes": ["borderColor"]
4553
4553
  }
4554
4554
  },
4555
- "alpha": 0.15,
4556
4555
  "filePath": "src/tokens/functional/color/light/patterns-light.json5",
4557
4556
  "isSource": true,
4558
4557
  "original": {
4559
- "value": "{base.color.black}",
4558
+ "value": "{borderColor.translucent}",
4560
4559
  "$type": "color",
4561
4560
  "$extensions": {
4562
4561
  "org.primer.figma": {
@@ -4565,8 +4564,7 @@
4565
4564
  "group": "component (internal)",
4566
4565
  "scopes": ["borderColor"]
4567
4566
  }
4568
- },
4569
- "alpha": 0.15
4567
+ }
4570
4568
  },
4571
4569
  "name": "avatar-borderColor",
4572
4570
  "attributes": {},
@@ -4857,8 +4855,12 @@
4857
4855
  "path": ["control", "fgColor", "rest"]
4858
4856
  },
4859
4857
  "control-fgColor-placeholder": {
4860
- "value": "#6e7781",
4858
+ "value": "#69727c",
4861
4859
  "$type": "color",
4860
+ "mix": {
4861
+ "color": "#57606a",
4862
+ "weight": 0.2
4863
+ },
4862
4864
  "$extensions": {
4863
4865
  "org.primer.figma": {
4864
4866
  "collection": "mode",
@@ -4872,6 +4874,10 @@
4872
4874
  "original": {
4873
4875
  "value": "{base.color.neutral.5}",
4874
4876
  "$type": "color",
4877
+ "mix": {
4878
+ "color": "{base.color.neutral.6}",
4879
+ "weight": 0.2
4880
+ },
4875
4881
  "$extensions": {
4876
4882
  "org.primer.figma": {
4877
4883
  "collection": "mode",
@@ -14415,6 +14421,37 @@
14415
14421
  "attributes": {},
14416
14422
  "path": ["borderColor", "transparent"]
14417
14423
  },
14424
+ "borderColor-translucent": {
14425
+ "value": "#1f232826",
14426
+ "$type": "color",
14427
+ "$extensions": {
14428
+ "org.primer.figma": {
14429
+ "collection": "mode",
14430
+ "mode": "light",
14431
+ "group": "semantic",
14432
+ "scopes": ["borderColor"]
14433
+ }
14434
+ },
14435
+ "alpha": 0.15,
14436
+ "filePath": "src/tokens/functional/color/light/primitives-light.json5",
14437
+ "isSource": true,
14438
+ "original": {
14439
+ "value": "{base.color.black}",
14440
+ "$type": "color",
14441
+ "$extensions": {
14442
+ "org.primer.figma": {
14443
+ "collection": "mode",
14444
+ "mode": "light",
14445
+ "group": "semantic",
14446
+ "scopes": ["borderColor"]
14447
+ }
14448
+ },
14449
+ "alpha": 0.15
14450
+ },
14451
+ "name": "borderColor-translucent",
14452
+ "attributes": {},
14453
+ "path": ["borderColor", "translucent"]
14454
+ },
14418
14455
  "borderColor-neutral-muted": {
14419
14456
  "value": "#afb8c133",
14420
14457
  "$type": "color",
@@ -4550,9 +4550,9 @@
4550
4550
  "scopes": ["borderColor"]
4551
4551
  }
4552
4552
  },
4553
- "alpha": 0.9,
4554
4553
  "filePath": "src/tokens/functional/color/light/overrides/light.high-contrast.json5",
4555
4554
  "isSource": true,
4555
+ "alpha": 0.9,
4556
4556
  "original": {
4557
4557
  "value": "{base.color.black}",
4558
4558
  "$type": "color",
@@ -4855,8 +4855,12 @@
4855
4855
  "path": ["control", "fgColor", "rest"]
4856
4856
  },
4857
4857
  "control-fgColor-placeholder": {
4858
- "value": "#66707b",
4858
+ "value": "#616a75",
4859
4859
  "$type": "color",
4860
+ "mix": {
4861
+ "color": "#4b535d",
4862
+ "weight": 0.2
4863
+ },
4860
4864
  "$extensions": {
4861
4865
  "org.primer.figma": {
4862
4866
  "collection": "mode",
@@ -4870,6 +4874,10 @@
4870
4874
  "original": {
4871
4875
  "value": "{base.color.neutral.5}",
4872
4876
  "$type": "color",
4877
+ "mix": {
4878
+ "color": "{base.color.neutral.6}",
4879
+ "weight": 0.2
4880
+ },
4873
4881
  "$extensions": {
4874
4882
  "org.primer.figma": {
4875
4883
  "collection": "mode",
@@ -14419,6 +14427,37 @@
14419
14427
  "attributes": {},
14420
14428
  "path": ["borderColor", "transparent"]
14421
14429
  },
14430
+ "borderColor-translucent": {
14431
+ "value": "#20252c",
14432
+ "$type": "color",
14433
+ "$extensions": {
14434
+ "org.primer.figma": {
14435
+ "collection": "mode",
14436
+ "mode": "light",
14437
+ "group": "semantic",
14438
+ "scopes": ["borderColor"]
14439
+ }
14440
+ },
14441
+ "alpha": 1,
14442
+ "filePath": "src/tokens/functional/color/light/overrides/light.high-contrast.json5",
14443
+ "isSource": true,
14444
+ "original": {
14445
+ "value": "{base.color.neutral.8}",
14446
+ "$type": "color",
14447
+ "$extensions": {
14448
+ "org.primer.figma": {
14449
+ "collection": "mode",
14450
+ "mode": "light",
14451
+ "group": "semantic",
14452
+ "scopes": ["borderColor"]
14453
+ }
14454
+ },
14455
+ "alpha": 1
14456
+ },
14457
+ "name": "borderColor-translucent",
14458
+ "attributes": {},
14459
+ "path": ["borderColor", "translucent"]
14460
+ },
14422
14461
  "borderColor-neutral-muted": {
14423
14462
  "value": "#88929d",
14424
14463
  "$type": "color",
@@ -4548,11 +4548,10 @@
4548
4548
  "scopes": ["borderColor"]
4549
4549
  }
4550
4550
  },
4551
- "alpha": 0.15,
4552
4551
  "filePath": "src/tokens/functional/color/light/patterns-light.json5",
4553
4552
  "isSource": true,
4554
4553
  "original": {
4555
- "value": "{base.color.black}",
4554
+ "value": "{borderColor.translucent}",
4556
4555
  "$type": "color",
4557
4556
  "$extensions": {
4558
4557
  "org.primer.figma": {
@@ -4561,8 +4560,7 @@
4561
4560
  "group": "component (internal)",
4562
4561
  "scopes": ["borderColor"]
4563
4562
  }
4564
- },
4565
- "alpha": 0.15
4563
+ }
4566
4564
  },
4567
4565
  "name": "avatar-borderColor",
4568
4566
  "attributes": {},
@@ -4853,8 +4851,12 @@
4853
4851
  "path": ["control", "fgColor", "rest"]
4854
4852
  },
4855
4853
  "control-fgColor-placeholder": {
4856
- "value": "#6e7781",
4854
+ "value": "#69727c",
4857
4855
  "$type": "color",
4856
+ "mix": {
4857
+ "color": "#57606a",
4858
+ "weight": 0.2
4859
+ },
4858
4860
  "$extensions": {
4859
4861
  "org.primer.figma": {
4860
4862
  "collection": "mode",
@@ -4868,6 +4870,10 @@
4868
4870
  "original": {
4869
4871
  "value": "{base.color.neutral.5}",
4870
4872
  "$type": "color",
4873
+ "mix": {
4874
+ "color": "{base.color.neutral.6}",
4875
+ "weight": 0.2
4876
+ },
4871
4877
  "$extensions": {
4872
4878
  "org.primer.figma": {
4873
4879
  "collection": "mode",
@@ -14407,6 +14413,37 @@
14407
14413
  "attributes": {},
14408
14414
  "path": ["borderColor", "transparent"]
14409
14415
  },
14416
+ "borderColor-translucent": {
14417
+ "value": "#1f232826",
14418
+ "$type": "color",
14419
+ "$extensions": {
14420
+ "org.primer.figma": {
14421
+ "collection": "mode",
14422
+ "mode": "light",
14423
+ "group": "semantic",
14424
+ "scopes": ["borderColor"]
14425
+ }
14426
+ },
14427
+ "alpha": 0.15,
14428
+ "filePath": "src/tokens/functional/color/light/primitives-light.json5",
14429
+ "isSource": true,
14430
+ "original": {
14431
+ "value": "{base.color.black}",
14432
+ "$type": "color",
14433
+ "$extensions": {
14434
+ "org.primer.figma": {
14435
+ "collection": "mode",
14436
+ "mode": "light",
14437
+ "group": "semantic",
14438
+ "scopes": ["borderColor"]
14439
+ }
14440
+ },
14441
+ "alpha": 0.15
14442
+ },
14443
+ "name": "borderColor-translucent",
14444
+ "attributes": {},
14445
+ "path": ["borderColor", "translucent"]
14446
+ },
14410
14447
  "borderColor-neutral-muted": {
14411
14448
  "value": "#afb8c133",
14412
14449
  "$type": "color",
@@ -4548,11 +4548,10 @@
4548
4548
  "scopes": ["borderColor"]
4549
4549
  }
4550
4550
  },
4551
- "alpha": 0.15,
4552
4551
  "filePath": "src/tokens/functional/color/light/patterns-light.json5",
4553
4552
  "isSource": true,
4554
4553
  "original": {
4555
- "value": "{base.color.black}",
4554
+ "value": "{borderColor.translucent}",
4556
4555
  "$type": "color",
4557
4556
  "$extensions": {
4558
4557
  "org.primer.figma": {
@@ -4561,8 +4560,7 @@
4561
4560
  "group": "component (internal)",
4562
4561
  "scopes": ["borderColor"]
4563
4562
  }
4564
- },
4565
- "alpha": 0.15
4563
+ }
4566
4564
  },
4567
4565
  "name": "avatar-borderColor",
4568
4566
  "attributes": {},
@@ -4853,8 +4851,12 @@
4853
4851
  "path": ["control", "fgColor", "rest"]
4854
4852
  },
4855
4853
  "control-fgColor-placeholder": {
4856
- "value": "#6e7781",
4854
+ "value": "#69727c",
4857
4855
  "$type": "color",
4856
+ "mix": {
4857
+ "color": "#57606a",
4858
+ "weight": 0.2
4859
+ },
4858
4860
  "$extensions": {
4859
4861
  "org.primer.figma": {
4860
4862
  "collection": "mode",
@@ -4868,6 +4870,10 @@
4868
4870
  "original": {
4869
4871
  "value": "{base.color.neutral.5}",
4870
4872
  "$type": "color",
4873
+ "mix": {
4874
+ "color": "{base.color.neutral.6}",
4875
+ "weight": 0.2
4876
+ },
4871
4877
  "$extensions": {
4872
4878
  "org.primer.figma": {
4873
4879
  "collection": "mode",
@@ -14407,6 +14413,37 @@
14407
14413
  "attributes": {},
14408
14414
  "path": ["borderColor", "transparent"]
14409
14415
  },
14416
+ "borderColor-translucent": {
14417
+ "value": "#1f232826",
14418
+ "$type": "color",
14419
+ "$extensions": {
14420
+ "org.primer.figma": {
14421
+ "collection": "mode",
14422
+ "mode": "light",
14423
+ "group": "semantic",
14424
+ "scopes": ["borderColor"]
14425
+ }
14426
+ },
14427
+ "alpha": 0.15,
14428
+ "filePath": "src/tokens/functional/color/light/primitives-light.json5",
14429
+ "isSource": true,
14430
+ "original": {
14431
+ "value": "{base.color.black}",
14432
+ "$type": "color",
14433
+ "$extensions": {
14434
+ "org.primer.figma": {
14435
+ "collection": "mode",
14436
+ "mode": "light",
14437
+ "group": "semantic",
14438
+ "scopes": ["borderColor"]
14439
+ }
14440
+ },
14441
+ "alpha": 0.15
14442
+ },
14443
+ "name": "borderColor-translucent",
14444
+ "attributes": {},
14445
+ "path": ["borderColor", "translucent"]
14446
+ },
14410
14447
  "borderColor-neutral-muted": {
14411
14448
  "value": "#afb8c133",
14412
14449
  "$type": "color",
@@ -49,6 +49,31 @@
49
49
  "attributes": {},
50
50
  "path": ["fontStack", "sansSerif"]
51
51
  },
52
+ "fontStack-sansSerifDisplay": {
53
+ "value": "-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
54
+ "$type": "fontFamily",
55
+ "$extensions": {
56
+ "org.primer.figma": {
57
+ "collection": "typography",
58
+ "scopes": ["fontFamily"]
59
+ }
60
+ },
61
+ "filePath": "src/tokens/functional/typography/typography.json",
62
+ "isSource": true,
63
+ "original": {
64
+ "value": "-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
65
+ "$type": "fontFamily",
66
+ "$extensions": {
67
+ "org.primer.figma": {
68
+ "collection": "typography",
69
+ "scopes": ["fontFamily"]
70
+ }
71
+ }
72
+ },
73
+ "name": "fontStack-sansSerifDisplay",
74
+ "attributes": {},
75
+ "path": ["fontStack", "sansSerifDisplay"]
76
+ },
52
77
  "fontStack-monospace": {
53
78
  "value": "ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace",
54
79
  "$type": "fontFamily",
@@ -199,7 +224,7 @@
199
224
  "fontWeight": "{text.display.weight}",
200
225
  "fontSize": "{text.display.size}",
201
226
  "lineHeight": "{text.display.lineHeight}",
202
- "fontFamily": "{fontStack.sansSerif}"
227
+ "fontFamily": "{fontStack.sansSerifDisplay}"
203
228
  },
204
229
  "$type": "typography",
205
230
  "comment": "Hero-style text for brand to product transition pages. Utilize Title (large) styles on narrow viewports."
@@ -462,7 +487,7 @@
462
487
  "fontWeight": "{text.title.weight.large}",
463
488
  "fontSize": "{text.title.size.large}",
464
489
  "lineHeight": "{text.title.lineHeight.large}",
465
- "fontFamily": "{fontStack.sansSerif}"
490
+ "fontFamily": "{fontStack.sansSerifDisplay}"
466
491
  },
467
492
  "$type": "typography",
468
493
  "comment": "Page headings for user-created objects, such as issues or pull requests. Utilize title (medium) styles on narrow viewports."
@@ -482,7 +507,7 @@
482
507
  "fontWeight": "{text.title.weight.medium}",
483
508
  "fontSize": "{text.title.size.medium}",
484
509
  "lineHeight": "{text.title.lineHeight.medium}",
485
- "fontFamily": "{fontStack.sansSerif}"
510
+ "fontFamily": "{fontStack.sansSerifDisplay}"
486
511
  },
487
512
  "$type": "typography",
488
513
  "comment": "Default page title. The 32px-equivalent line-height matches with button and other medium control heights. Great for page header composition."
@@ -603,7 +628,7 @@
603
628
  "fontWeight": "{text.subtitle.weight}",
604
629
  "fontSize": "{text.subtitle.size}",
605
630
  "lineHeight": "{text.subtitle.lineHeight}",
606
- "fontFamily": "{fontStack.sansSerif}"
631
+ "fontFamily": "{fontStack.sansSerifDisplay}"
607
632
  },
608
633
  "$type": "typography",
609
634
  "comment": "Page sections/sub headings, or less important object names in page titles (automated action titles, for example). Same line-height as title (medium)."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/primitives",
3
- "version": "8.2.2-rc.535ae80a",
3
+ "version": "8.2.3-rc.26d0d501",
4
4
  "description": "Typography, spacing, and color primitives for Primer design system",
5
5
  "files": [
6
6
  "dist",
@@ -53,11 +53,9 @@
53
53
  "@types/node": "^20.4.0",
54
54
  "@typescript-eslint/eslint-plugin": "^5.61.0",
55
55
  "@typescript-eslint/parser": "^5.61.0",
56
- "camelcase-keys": "^6.2.2",
57
56
  "color-blend": "^4.0.0",
58
57
  "color2k": "^2.0.0",
59
58
  "console-table-printer": "^2.11.1",
60
- "deepmerge": "^4.2.2",
61
59
  "eslint": "^8.12.0",
62
60
  "eslint-config-prettier": "^8.6.0",
63
61
  "eslint-import-resolver-typescript": "^3.5.3",
@@ -39,6 +39,7 @@ export const figma: PlatformInitializer = (outputFile, prefix, buildPath, option
39
39
  fontFamilies: {
40
40
  'fontStack/system': 'SF Pro Text',
41
41
  'fontStack/sansSerif': 'SF Pro Text',
42
+ 'fontStack/sansSerifDisplay': 'SF Pro Display',
42
43
  'fontStack/monospace': 'SF Mono',
43
44
  },
44
45
  ...options,
@@ -42,6 +42,11 @@
42
42
  $type: 'color',
43
43
  alpha: 1,
44
44
  },
45
+ translucent: {
46
+ $value: '{base.color.neutral.5}',
47
+ $type: 'color',
48
+ alpha: 1,
49
+ },
45
50
  neutral: {
46
51
  muted: {
47
52
  $value: '{base.color.neutral.4}',
@@ -14,7 +14,7 @@
14
14
  alpha: 0.1,
15
15
  },
16
16
  borderColor: {
17
- $value: '{base.color.white}',
17
+ $value: '{borderColor.translucent}',
18
18
  $type: 'color',
19
19
  $extensions: {
20
20
  'org.primer.figma': {
@@ -24,7 +24,6 @@
24
24
  scopes: ['borderColor'],
25
25
  },
26
26
  },
27
- alpha: 0.15,
28
27
  },
29
28
  },
30
29
  avatarStack: {
@@ -142,8 +141,12 @@
142
141
  },
143
142
  },
144
143
  placeholder: {
145
- $value: '{base.color.neutral.5}',
144
+ $value: '{base.color.neutral.3}',
146
145
  $type: 'color',
146
+ mix: {
147
+ color: '{base.color.neutral.4}',
148
+ weight: 0.2,
149
+ },
147
150
  $extensions: {
148
151
  'org.primer.figma': {
149
152
  collection: 'mode',
@@ -846,6 +846,19 @@
846
846
  },
847
847
  },
848
848
  },
849
+ translucent: {
850
+ $value: '{base.color.white}',
851
+ $type: 'color',
852
+ $extensions: {
853
+ 'org.primer.figma': {
854
+ collection: 'mode',
855
+ mode: 'dark',
856
+ group: 'component (internal)',
857
+ scopes: ['borderColor'],
858
+ },
859
+ },
860
+ alpha: 0.15,
861
+ },
849
862
  neutral: {
850
863
  muted: {
851
864
  $value: '{base.color.neutral.4}',
@@ -71,6 +71,11 @@
71
71
  $type: 'color',
72
72
  alpha: 1,
73
73
  },
74
+ translucent: {
75
+ $value: '{base.color.neutral.8}',
76
+ $type: 'color',
77
+ alpha: 1,
78
+ },
74
79
  neutral: {
75
80
  muted: {
76
81
  $value: '{base.color.neutral.4}',
@@ -13,7 +13,7 @@
13
13
  },
14
14
  },
15
15
  borderColor: {
16
- $value: '{base.color.black}',
16
+ $value: '{borderColor.translucent}',
17
17
  $type: 'color',
18
18
  $extensions: {
19
19
  'org.primer.figma': {
@@ -23,7 +23,6 @@
23
23
  scopes: ['borderColor'],
24
24
  },
25
25
  },
26
- alpha: 0.15,
27
26
  },
28
27
  },
29
28
  avatarStack: {
@@ -143,6 +142,10 @@
143
142
  placeholder: {
144
143
  $value: '{base.color.neutral.5}',
145
144
  $type: 'color',
145
+ mix: {
146
+ color: '{base.color.neutral.6}',
147
+ weight: 0.2,
148
+ },
146
149
  $extensions: {
147
150
  'org.primer.figma': {
148
151
  collection: 'mode',
@@ -836,6 +836,19 @@
836
836
  },
837
837
  },
838
838
  },
839
+ translucent: {
840
+ $value: '{base.color.black}',
841
+ $type: 'color',
842
+ $extensions: {
843
+ 'org.primer.figma': {
844
+ collection: 'mode',
845
+ mode: 'light',
846
+ group: 'semantic',
847
+ scopes: ['borderColor'],
848
+ },
849
+ },
850
+ alpha: 0.15,
851
+ },
839
852
  neutral: {
840
853
  muted: {
841
854
  $value: '{base.color.neutral.3}',