@primer/primitives 8.2.4-rc.d955f312 → 8.2.4-rc.f820602a

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 (65) hide show
  1. package/README.md +17 -18
  2. package/dist/css/functional/themes/dark-colorblind.css +12 -12
  3. package/dist/css/functional/themes/dark-dimmed.css +14 -14
  4. package/dist/css/functional/themes/dark-high-contrast.css +250 -250
  5. package/dist/css/functional/themes/dark-tritanopia.css +14 -14
  6. package/dist/css/functional/themes/dark.css +14 -14
  7. package/dist/css/functional/themes/light-colorblind.css +24 -24
  8. package/dist/css/functional/themes/light-high-contrast.css +146 -146
  9. package/dist/css/functional/themes/light-tritanopia.css +24 -24
  10. package/dist/css/functional/themes/light.css +12 -12
  11. package/dist/docs/functional/themes/dark-colorblind.json +149 -149
  12. package/dist/docs/functional/themes/dark-dimmed.json +160 -158
  13. package/dist/docs/functional/themes/dark-high-contrast.json +464 -454
  14. package/dist/docs/functional/themes/dark-tritanopia.json +153 -153
  15. package/dist/docs/functional/themes/dark.json +160 -158
  16. package/dist/docs/functional/themes/light-colorblind.json +167 -173
  17. package/dist/docs/functional/themes/light-high-contrast.json +362 -358
  18. package/dist/docs/functional/themes/light-tritanopia.json +165 -171
  19. package/dist/docs/functional/themes/light.json +159 -157
  20. package/dist/figma/themes/dark-colorblind.json +198 -198
  21. package/dist/figma/themes/dark-dimmed.json +201 -200
  22. package/dist/figma/themes/dark-high-contrast.json +598 -596
  23. package/dist/figma/themes/dark-tritanopia.json +200 -200
  24. package/dist/figma/themes/dark.json +201 -200
  25. package/dist/figma/themes/light-colorblind.json +217 -218
  26. package/dist/figma/themes/light-high-contrast.json +393 -391
  27. package/dist/figma/themes/light-tritanopia.json +216 -217
  28. package/dist/figma/themes/light.json +139 -138
  29. package/dist/internalCss/dark-colorblind.css +12 -12
  30. package/dist/internalCss/dark-dimmed.css +14 -14
  31. package/dist/internalCss/dark-high-contrast.css +250 -250
  32. package/dist/internalCss/dark-tritanopia.css +14 -14
  33. package/dist/internalCss/dark.css +14 -14
  34. package/dist/internalCss/light-colorblind.css +24 -24
  35. package/dist/internalCss/light-high-contrast.css +146 -146
  36. package/dist/internalCss/light-tritanopia.css +24 -24
  37. package/dist/internalCss/light.css +12 -12
  38. package/dist/styleLint/functional/themes/dark-colorblind.json +149 -149
  39. package/dist/styleLint/functional/themes/dark-dimmed.json +160 -158
  40. package/dist/styleLint/functional/themes/dark-high-contrast.json +464 -454
  41. package/dist/styleLint/functional/themes/dark-tritanopia.json +153 -153
  42. package/dist/styleLint/functional/themes/dark.json +160 -158
  43. package/dist/styleLint/functional/themes/light-colorblind.json +167 -173
  44. package/dist/styleLint/functional/themes/light-high-contrast.json +362 -358
  45. package/dist/styleLint/functional/themes/light-tritanopia.json +165 -171
  46. package/dist/styleLint/functional/themes/light.json +159 -157
  47. package/package.json +28 -28
  48. package/src/formats/cssAdvanced.ts +3 -3
  49. package/src/formats/cssCustomMedia.ts +2 -2
  50. package/src/formats/javascriptCommonJs.ts +2 -2
  51. package/src/formats/javascriptEsm.ts +2 -2
  52. package/src/formats/jsonFigma.ts +2 -2
  53. package/src/formats/jsonNestedPrefixed.ts +2 -2
  54. package/src/formats/jsonOneDimensional.ts +2 -2
  55. package/src/formats/jsonPostCssFallback.ts +2 -2
  56. package/src/formats/typescriptExportDefinition.ts +2 -2
  57. package/src/schemas/designToken.ts +1 -1
  58. package/src/schemas/validTokenType.ts +1 -1
  59. package/src/tokens/functional/color/dark/overrides/dark.high-contrast.json5 +512 -2
  60. package/src/tokens/functional/color/dark/overrides/dark.tritanopia.json5 +4 -0
  61. package/src/tokens/functional/color/dark/primitives-dark.json5 +66 -65
  62. package/src/tokens/functional/color/light/overrides/light.high-contrast.json5 +394 -0
  63. package/src/tokens/functional/color/light/overrides/light.protanopia-deuteranopia.json5 +3 -6
  64. package/src/tokens/functional/color/light/overrides/light.tritanopia.json5 +3 -6
  65. package/src/tokens/functional/color/light/primitives-light.json5 +65 -64
package/README.md CHANGED
@@ -27,7 +27,7 @@ Data is served from the `dist/` folder:
27
27
 
28
28
  All available imports:
29
29
 
30
- ```
30
+ ```css
31
31
  /* size/typography */
32
32
  @import '@primer/primitives/dist/css/base/size/size.css';
33
33
  @import '@primer/primitives/dist/css/base/typography/typography.css';
@@ -70,13 +70,13 @@ In the individual files, e.g. `light.high-contrast.json5` you can now add tokens
70
70
  You can create color tokens that inherit a color but have a different alpha value by adding the `alpha` property.
71
71
  **Note:** The original alpha value will be replaced by your value. If you add `alpha: 0.4` to a color, it doesn't matter if the color you reference has no `alpha` or `alpha: 0.7`, the new token will always have newly the defined value of `alpha: 0.4`.
72
72
 
73
- ```js
73
+ ```json5
74
74
  {
75
75
  muted: {
76
76
  $value: '{base.color.blue.3}',
77
77
  alpha: 0.4, // the opacity value of the color === 40% opaque
78
78
  $type: 'color',
79
- }
79
+ },
80
80
  }
81
81
  ```
82
82
 
@@ -88,17 +88,17 @@ The `mix` proeprty mixes the color it gets into the main color from the `$value`
88
88
 
89
89
  A `mix` proprty must always have a `color` and a `weight` child. `color` can be a `hex` value or a reference to a valid color. The `weight` property must receive a value between `0.0` and `1`.
90
90
 
91
- ```js
91
+ ```json5
92
92
  {
93
93
  control: {
94
- $value: '{base.color.gray.4}', // main color
95
- $type: 'color',
96
- mix: {
97
- color: '{base.color.gray.5}', // color to mix into the main color
98
- weight: 0.2, // amount of the mix color that is added === 20% of gray.5 is mix into gray.4
94
+ $value: '{base.color.gray.4}', // main color
95
+ $type: 'color',
96
+ mix: {
97
+ color: '{base.color.gray.5}', // color to mix into the main color
98
+ weight: 0.2, // amount of the mix color that is added === 20% of gray.5 is mix into gray.4
99
+ },
99
100
  },
100
101
  }
101
- }
102
102
  ```
103
103
 
104
104
  #### Extensions property
@@ -113,7 +113,7 @@ For our Figma export we use the following meta data:
113
113
 
114
114
  Code example
115
115
 
116
- ```js
116
+ ```json5
117
117
  bgColor: {
118
118
  $value: '{borderColor.accent.muted}',
119
119
  $type: 'color',
@@ -133,18 +133,18 @@ Token names have to be in camelCase or kebab-case and may only include letters,
133
133
  The only acception is the `@`-hack. This is used when you want to have a default value and sub-values, e.g. `bgColor.accent` and `bgColor.accent.muted`.
134
134
  In this case you can create the follwing structure. The `@` will be removed from the name and act as the default value.
135
135
 
136
- ```js
136
+ ```json5
137
137
  {
138
138
  bgColor: {
139
139
  accent: {
140
- "@": {
140
+ '@': {
141
141
  // values for accent (default)
142
142
  },
143
- "muted": {
143
+ muted: {
144
144
  // values for accent-muted
145
- }
146
- }
147
- }
145
+ },
146
+ },
147
+ },
148
148
  }
149
149
  ```
150
150
 
@@ -155,4 +155,3 @@ In this case you can create the follwing structure. The `@` will be removed from
155
155
  [primer]: https://github.com/primer/primer
156
156
  [npm]: https://www.npmjs.com/
157
157
  [install-npm]: https://docs.npmjs.com/getting-started/installing-node
158
- [scss]: https://sass-lang.com/
@@ -435,13 +435,13 @@
435
435
  --fgColor-black: #010409;
436
436
  --fgColor-disabled: #6e7681;
437
437
  --fgColor-link: #4493f8;
438
- --fgColor-neutral: #6e7681;
438
+ --fgColor-neutral: #b1bac4;
439
439
  --fgColor-accent: #4493f8;
440
440
  --fgColor-success: #58a6ff;
441
+ --fgColor-open: #f0883e;
441
442
  --fgColor-attention: #d29922;
442
443
  --fgColor-severe: #db6d28;
443
444
  --fgColor-danger: #db6d28;
444
- --fgColor-open: #f0883e;
445
445
  --fgColor-closed: #8b949e;
446
446
  --fgColor-done: #ab7df8;
447
447
  --fgColor-upsell: #ab7df8;
@@ -461,14 +461,14 @@
461
461
  --bgColor-accent-emphasis: #1f6feb;
462
462
  --bgColor-success-muted: #388bfd26;
463
463
  --bgColor-success-emphasis: #1f6feb;
464
+ --bgColor-open-muted: #db6d2866;
465
+ --bgColor-open-emphasis: #bd561d;
464
466
  --bgColor-attention-muted: #bb800926;
465
467
  --bgColor-attention-emphasis: #9e6a03;
466
468
  --bgColor-severe-muted: #db6d281a;
467
469
  --bgColor-severe-emphasis: #bd561d;
468
470
  --bgColor-danger-muted: #db6d281a;
469
471
  --bgColor-danger-emphasis: #bd561d;
470
- --bgColor-open-muted: #db6d2866;
471
- --bgColor-open-emphasis: #bd561d;
472
472
  --bgColor-closed-muted: #6e768166;
473
473
  --bgColor-closed-emphasis: #6e7681;
474
474
  --bgColor-done-muted: #ab7df826;
@@ -489,14 +489,14 @@
489
489
  --borderColor-accent-emphasis: #1f6feb;
490
490
  --borderColor-success-muted: #388bfd66;
491
491
  --borderColor-success-emphasis: #1f6feb;
492
+ --borderColor-open-muted: #db6d2866;
493
+ --borderColor-open-emphasis: #db6d28;
492
494
  --borderColor-attention-muted: #bb800966;
493
495
  --borderColor-attention-emphasis: #9e6a03;
494
496
  --borderColor-severe-muted: #db6d2866;
495
497
  --borderColor-severe-emphasis: #bd561d;
496
498
  --borderColor-danger-muted: #db6d2866;
497
499
  --borderColor-danger-emphasis: #bd561d;
498
- --borderColor-open-muted: #db6d2866;
499
- --borderColor-open-emphasis: #db6d28;
500
500
  --borderColor-closed-muted: #6e768166;
501
501
  --borderColor-closed-emphasis: #6e7681;
502
502
  --borderColor-done-muted: #ab7df866;
@@ -999,13 +999,13 @@
999
999
  --fgColor-black: #010409;
1000
1000
  --fgColor-disabled: #6e7681;
1001
1001
  --fgColor-link: #4493f8;
1002
- --fgColor-neutral: #6e7681;
1002
+ --fgColor-neutral: #b1bac4;
1003
1003
  --fgColor-accent: #4493f8;
1004
1004
  --fgColor-success: #58a6ff;
1005
+ --fgColor-open: #f0883e;
1005
1006
  --fgColor-attention: #d29922;
1006
1007
  --fgColor-severe: #db6d28;
1007
1008
  --fgColor-danger: #db6d28;
1008
- --fgColor-open: #f0883e;
1009
1009
  --fgColor-closed: #8b949e;
1010
1010
  --fgColor-done: #ab7df8;
1011
1011
  --fgColor-upsell: #ab7df8;
@@ -1025,14 +1025,14 @@
1025
1025
  --bgColor-accent-emphasis: #1f6feb;
1026
1026
  --bgColor-success-muted: #388bfd26;
1027
1027
  --bgColor-success-emphasis: #1f6feb;
1028
+ --bgColor-open-muted: #db6d2866;
1029
+ --bgColor-open-emphasis: #bd561d;
1028
1030
  --bgColor-attention-muted: #bb800926;
1029
1031
  --bgColor-attention-emphasis: #9e6a03;
1030
1032
  --bgColor-severe-muted: #db6d281a;
1031
1033
  --bgColor-severe-emphasis: #bd561d;
1032
1034
  --bgColor-danger-muted: #db6d281a;
1033
1035
  --bgColor-danger-emphasis: #bd561d;
1034
- --bgColor-open-muted: #db6d2866;
1035
- --bgColor-open-emphasis: #bd561d;
1036
1036
  --bgColor-closed-muted: #6e768166;
1037
1037
  --bgColor-closed-emphasis: #6e7681;
1038
1038
  --bgColor-done-muted: #ab7df826;
@@ -1053,14 +1053,14 @@
1053
1053
  --borderColor-accent-emphasis: #1f6feb;
1054
1054
  --borderColor-success-muted: #388bfd66;
1055
1055
  --borderColor-success-emphasis: #1f6feb;
1056
+ --borderColor-open-muted: #db6d2866;
1057
+ --borderColor-open-emphasis: #db6d28;
1056
1058
  --borderColor-attention-muted: #bb800966;
1057
1059
  --borderColor-attention-emphasis: #9e6a03;
1058
1060
  --borderColor-severe-muted: #db6d2866;
1059
1061
  --borderColor-severe-emphasis: #bd561d;
1060
1062
  --borderColor-danger-muted: #db6d2866;
1061
1063
  --borderColor-danger-emphasis: #bd561d;
1062
- --borderColor-open-muted: #db6d2866;
1063
- --borderColor-open-emphasis: #db6d28;
1064
1064
  --borderColor-closed-muted: #6e768166;
1065
1065
  --borderColor-closed-emphasis: #6e7681;
1066
1066
  --borderColor-done-muted: #ab7df866;
@@ -435,13 +435,13 @@
435
435
  --fgColor-black: #1c2128;
436
436
  --fgColor-disabled: #636e7b;
437
437
  --fgColor-link: #478be6;
438
- --fgColor-neutral: #636e7b;
438
+ --fgColor-neutral: #909dab;
439
439
  --fgColor-accent: #478be6;
440
440
  --fgColor-success: #57ab5a;
441
+ --fgColor-open: #57ab5a;
441
442
  --fgColor-attention: #c69026;
442
443
  --fgColor-severe: #cc6b2c;
443
444
  --fgColor-danger: #e5534b;
444
- --fgColor-open: #57ab5a;
445
445
  --fgColor-closed: #e5534b;
446
446
  --fgColor-done: #986ee2;
447
447
  --fgColor-upsell: #986ee2;
@@ -461,15 +461,15 @@
461
461
  --bgColor-accent-emphasis: #316dca;
462
462
  --bgColor-success-muted: #46954a26;
463
463
  --bgColor-success-emphasis: #347d39;
464
+ --bgColor-open-muted: #46954a26;
465
+ --bgColor-open-emphasis: #347d39;
464
466
  --bgColor-attention-muted: #ae7c1426;
465
467
  --bgColor-attention-emphasis: #966600;
466
468
  --bgColor-severe-muted: #cc6b2c1a;
467
469
  --bgColor-severe-emphasis: #ae5622;
468
470
  --bgColor-danger-muted: #e5534b1a;
469
471
  --bgColor-danger-emphasis: #c93c37;
470
- --bgColor-open-muted: #46954a1a;
471
- --bgColor-open-emphasis: #347d39;
472
- --bgColor-closed-muted: #e5534b26;
472
+ --bgColor-closed-muted: #e5534b1a;
473
473
  --bgColor-closed-emphasis: #c93c37;
474
474
  --bgColor-done-muted: #986ee226;
475
475
  --bgColor-done-emphasis: #8256d0;
@@ -489,14 +489,14 @@
489
489
  --borderColor-accent-emphasis: #316dca;
490
490
  --borderColor-success-muted: #46954a66;
491
491
  --borderColor-success-emphasis: #347d39;
492
+ --borderColor-open-muted: #46954a66;
493
+ --borderColor-open-emphasis: #347d39;
492
494
  --borderColor-attention-muted: #ae7c1466;
493
495
  --borderColor-attention-emphasis: #966600;
494
496
  --borderColor-severe-muted: #cc6b2c66;
495
497
  --borderColor-severe-emphasis: #ae5622;
496
498
  --borderColor-danger-muted: #e5534b66;
497
499
  --borderColor-danger-emphasis: #c93c37;
498
- --borderColor-open-muted: #46954a66;
499
- --borderColor-open-emphasis: #347d39;
500
500
  --borderColor-closed-muted: #e5534b66;
501
501
  --borderColor-closed-emphasis: #c93c37;
502
502
  --borderColor-done-muted: #986ee266;
@@ -999,13 +999,13 @@
999
999
  --fgColor-black: #1c2128;
1000
1000
  --fgColor-disabled: #636e7b;
1001
1001
  --fgColor-link: #478be6;
1002
- --fgColor-neutral: #636e7b;
1002
+ --fgColor-neutral: #909dab;
1003
1003
  --fgColor-accent: #478be6;
1004
1004
  --fgColor-success: #57ab5a;
1005
+ --fgColor-open: #57ab5a;
1005
1006
  --fgColor-attention: #c69026;
1006
1007
  --fgColor-severe: #cc6b2c;
1007
1008
  --fgColor-danger: #e5534b;
1008
- --fgColor-open: #57ab5a;
1009
1009
  --fgColor-closed: #e5534b;
1010
1010
  --fgColor-done: #986ee2;
1011
1011
  --fgColor-upsell: #986ee2;
@@ -1025,15 +1025,15 @@
1025
1025
  --bgColor-accent-emphasis: #316dca;
1026
1026
  --bgColor-success-muted: #46954a26;
1027
1027
  --bgColor-success-emphasis: #347d39;
1028
+ --bgColor-open-muted: #46954a26;
1029
+ --bgColor-open-emphasis: #347d39;
1028
1030
  --bgColor-attention-muted: #ae7c1426;
1029
1031
  --bgColor-attention-emphasis: #966600;
1030
1032
  --bgColor-severe-muted: #cc6b2c1a;
1031
1033
  --bgColor-severe-emphasis: #ae5622;
1032
1034
  --bgColor-danger-muted: #e5534b1a;
1033
1035
  --bgColor-danger-emphasis: #c93c37;
1034
- --bgColor-open-muted: #46954a1a;
1035
- --bgColor-open-emphasis: #347d39;
1036
- --bgColor-closed-muted: #e5534b26;
1036
+ --bgColor-closed-muted: #e5534b1a;
1037
1037
  --bgColor-closed-emphasis: #c93c37;
1038
1038
  --bgColor-done-muted: #986ee226;
1039
1039
  --bgColor-done-emphasis: #8256d0;
@@ -1053,14 +1053,14 @@
1053
1053
  --borderColor-accent-emphasis: #316dca;
1054
1054
  --borderColor-success-muted: #46954a66;
1055
1055
  --borderColor-success-emphasis: #347d39;
1056
+ --borderColor-open-muted: #46954a66;
1057
+ --borderColor-open-emphasis: #347d39;
1056
1058
  --borderColor-attention-muted: #ae7c1466;
1057
1059
  --borderColor-attention-emphasis: #966600;
1058
1060
  --borderColor-severe-muted: #cc6b2c66;
1059
1061
  --borderColor-severe-emphasis: #ae5622;
1060
1062
  --borderColor-danger-muted: #e5534b66;
1061
1063
  --borderColor-danger-emphasis: #c93c37;
1062
- --borderColor-open-muted: #46954a66;
1063
- --borderColor-open-emphasis: #347d39;
1064
1064
  --borderColor-closed-muted: #e5534b66;
1065
1065
  --borderColor-closed-emphasis: #c93c37;
1066
1066
  --borderColor-done-muted: #986ee266;