@primer/primitives 7.12.0-rc.335fc83 → 7.12.0-rc.35535a1

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 (88) hide show
  1. package/README.md +21 -0
  2. package/package.json +1 -1
  3. package/tokens-next-private/css/functional/themes/dark-colorblind.css +4 -2
  4. package/tokens-next-private/css/functional/themes/dark-dimmed.css +4 -2
  5. package/tokens-next-private/css/functional/themes/dark-high-contrast.css +4 -2
  6. package/tokens-next-private/css/functional/themes/dark-tritanopia.css +4 -2
  7. package/tokens-next-private/css/functional/themes/dark.css +4 -2
  8. package/tokens-next-private/css/functional/themes/light-colorblind.css +4 -2
  9. package/tokens-next-private/css/functional/themes/light-high-contrast.css +4 -2
  10. package/tokens-next-private/css/functional/themes/light-tritanopia.css +4 -2
  11. package/tokens-next-private/css/functional/themes/light.css +4 -2
  12. package/tokens-next-private/docs/functional/size/size.json +137 -77
  13. package/tokens-next-private/docs/functional/themes/dark-colorblind.json +30 -3
  14. package/tokens-next-private/docs/functional/themes/dark-dimmed.json +30 -3
  15. package/tokens-next-private/docs/functional/themes/dark-high-contrast.json +30 -3
  16. package/tokens-next-private/docs/functional/themes/dark-tritanopia.json +30 -3
  17. package/tokens-next-private/docs/functional/themes/dark.json +30 -3
  18. package/tokens-next-private/docs/functional/themes/light-colorblind.json +30 -3
  19. package/tokens-next-private/docs/functional/themes/light-high-contrast.json +30 -3
  20. package/tokens-next-private/docs/functional/themes/light-tritanopia.json +30 -3
  21. package/tokens-next-private/docs/functional/themes/light.json +30 -3
  22. package/tokens-next-private/fallbacks/color-fallbacks.json +12 -11
  23. package/tokens-next-private/figma/dimension/dimension.json +118 -72
  24. package/tokens-next-private/figma/figma.json +3 -0
  25. package/tokens-next-private/figma/themes/dark.json +314 -299
  26. package/tokens-next-private/figma/themes/light.json +294 -279
  27. package/tokens-next-private/scss/functional/themes/dark-colorblind.scss +2 -1
  28. package/tokens-next-private/scss/functional/themes/dark-dimmed.scss +2 -1
  29. package/tokens-next-private/scss/functional/themes/dark-high-contrast.scss +2 -1
  30. package/tokens-next-private/scss/functional/themes/dark-tritanopia.scss +2 -1
  31. package/tokens-next-private/scss/functional/themes/dark.scss +2 -1
  32. package/tokens-next-private/scss/functional/themes/light-colorblind.scss +2 -1
  33. package/tokens-next-private/scss/functional/themes/light-high-contrast.scss +2 -1
  34. package/tokens-next-private/scss/functional/themes/light-tritanopia.scss +2 -1
  35. package/tokens-next-private/scss/functional/themes/light.scss +2 -1
  36. package/tokens-v2-private/css/tokens/base/size/size.css +1 -1
  37. package/tokens-v2-private/css/tokens/base/typography/typography.css +1 -1
  38. package/tokens-v2-private/css/tokens/functional/size/border.css +1 -1
  39. package/tokens-v2-private/css/tokens/functional/size/breakpoints.css +1 -1
  40. package/tokens-v2-private/css/tokens/functional/size/size-coarse.css +1 -1
  41. package/tokens-v2-private/css/tokens/functional/size/size-fine.css +1 -1
  42. package/tokens-v2-private/css/tokens/functional/size/size.css +1 -1
  43. package/tokens-v2-private/css/tokens/functional/typography/typography.css +1 -1
  44. package/tokens-v2-private/js/module/tokens/base/size/size.js +1 -1
  45. package/tokens-v2-private/js/module/tokens/base/typography/typography.js +1 -1
  46. package/tokens-v2-private/js/module/tokens/functional/size/border.js +1 -1
  47. package/tokens-v2-private/js/module/tokens/functional/size/breakpoints.js +1 -1
  48. package/tokens-v2-private/js/module/tokens/functional/size/size-coarse.js +1 -1
  49. package/tokens-v2-private/js/module/tokens/functional/size/size-fine.js +1 -1
  50. package/tokens-v2-private/js/module/tokens/functional/size/size.js +1 -1
  51. package/tokens-v2-private/js/module/tokens/functional/size/viewport.js +1 -1
  52. package/tokens-v2-private/js/module/tokens/functional/typography/typography.js +1 -1
  53. package/tokens-v2-private/js/tokens/base/size/size.js +1 -1
  54. package/tokens-v2-private/js/tokens/base/typography/typography.js +1 -1
  55. package/tokens-v2-private/js/tokens/functional/size/border.js +1 -1
  56. package/tokens-v2-private/js/tokens/functional/size/breakpoints.js +1 -1
  57. package/tokens-v2-private/js/tokens/functional/size/size-coarse.js +1 -1
  58. package/tokens-v2-private/js/tokens/functional/size/size-fine.js +1 -1
  59. package/tokens-v2-private/js/tokens/functional/size/size.js +1 -1
  60. package/tokens-v2-private/js/tokens/functional/size/viewport.js +1 -1
  61. package/tokens-v2-private/js/tokens/functional/typography/typography.js +1 -1
  62. package/tokens-v2-private/scss/tokens/base/size/size.scss +1 -1
  63. package/tokens-v2-private/scss/tokens/base/typography/typography.scss +1 -1
  64. package/tokens-v2-private/scss/tokens/functional/size/border.scss +1 -1
  65. package/tokens-v2-private/scss/tokens/functional/size/breakpoints.scss +1 -1
  66. package/tokens-v2-private/scss/tokens/functional/size/size-coarse.scss +1 -1
  67. package/tokens-v2-private/scss/tokens/functional/size/size-fine.scss +1 -1
  68. package/tokens-v2-private/scss/tokens/functional/size/size.scss +1 -1
  69. package/tokens-v2-private/scss/tokens/functional/size/viewport.scss +1 -1
  70. package/tokens-v2-private/scss/tokens/functional/typography/typography.scss +1 -1
  71. package/tokens-v2-private/ts/tokens/base/size/size.d.ts +1 -1
  72. package/tokens-v2-private/ts/tokens/base/size/size.js +1 -1
  73. package/tokens-v2-private/ts/tokens/base/typography/typography.d.ts +1 -1
  74. package/tokens-v2-private/ts/tokens/base/typography/typography.js +1 -1
  75. package/tokens-v2-private/ts/tokens/functional/size/border.d.ts +1 -1
  76. package/tokens-v2-private/ts/tokens/functional/size/border.js +1 -1
  77. package/tokens-v2-private/ts/tokens/functional/size/breakpoints.d.ts +1 -1
  78. package/tokens-v2-private/ts/tokens/functional/size/breakpoints.js +1 -1
  79. package/tokens-v2-private/ts/tokens/functional/size/size-coarse.d.ts +1 -1
  80. package/tokens-v2-private/ts/tokens/functional/size/size-coarse.js +1 -1
  81. package/tokens-v2-private/ts/tokens/functional/size/size-fine.d.ts +1 -1
  82. package/tokens-v2-private/ts/tokens/functional/size/size-fine.js +1 -1
  83. package/tokens-v2-private/ts/tokens/functional/size/size.d.ts +1 -1
  84. package/tokens-v2-private/ts/tokens/functional/size/size.js +1 -1
  85. package/tokens-v2-private/ts/tokens/functional/size/viewport.d.ts +1 -1
  86. package/tokens-v2-private/ts/tokens/functional/size/viewport.js +1 -1
  87. package/tokens-v2-private/ts/tokens/functional/typography/typography.d.ts +1 -1
  88. package/tokens-v2-private/ts/tokens/functional/typography/typography.js +1 -1
package/README.md CHANGED
@@ -194,6 +194,27 @@ Code example
194
194
  }
195
195
  ```
196
196
 
197
+ #### Token names and @-hack
198
+
199
+ Token names have to be in camelCase or kebab-case and may only include letters, numbers and `-`. This is enforced by the token validation (`npm run lint:tokens`).
200
+ 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`.
201
+ In this case you can create the follwing structure. The `@` will be removed from the name and act as the default value.
202
+
203
+ ```js
204
+ {
205
+ bgColor: {
206
+ accent: {
207
+ "@": {
208
+ // default values
209
+ },
210
+ "muted": {
211
+ // values for accent-muted
212
+ }
213
+ }
214
+ }
215
+ }
216
+ ```
217
+
197
218
  ## License
198
219
 
199
220
  [MIT](./LICENSE) © [GitHub](https://github.com/)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/primitives",
3
- "version": "7.12.0-rc.335fc83",
3
+ "version": "7.12.0-rc.35535a1",
4
4
  "description": "Typography, spacing, and color primitives for Primer design system",
5
5
  "files": [
6
6
  "dist",
@@ -188,7 +188,7 @@
188
188
  --fgColor-muted: #7d8590;
189
189
  --fgColor-onEmphasis: #ffffff;
190
190
  --fgColor-disabled: #8b949e;
191
- --fgColor-link-rest: #2f81f7;
191
+ --fgColor-link: #2f81f7;
192
192
  --fgColor-accent: #2f81f7;
193
193
  --fgColor-success: #58a6ff;
194
194
  --fgColor-attention: #d29922;
@@ -200,6 +200,7 @@
200
200
  --fgColor-sponsors: #db61a2;
201
201
  --bgColor-default: #0d1117;
202
202
  --bgColor-muted: #161b22;
203
+ --bgColor-inset: #010409;
203
204
  --bgColor-emphasis: #6e7681;
204
205
  --bgColor-disabled: #161b22;
205
206
  --bgColor-transparent: #00000000;
@@ -589,7 +590,7 @@
589
590
  --fgColor-muted: #7d8590;
590
591
  --fgColor-onEmphasis: #ffffff;
591
592
  --fgColor-disabled: #8b949e;
592
- --fgColor-link-rest: #2f81f7;
593
+ --fgColor-link: #2f81f7;
593
594
  --fgColor-accent: #2f81f7;
594
595
  --fgColor-success: #58a6ff;
595
596
  --fgColor-attention: #d29922;
@@ -601,6 +602,7 @@
601
602
  --fgColor-sponsors: #db61a2;
602
603
  --bgColor-default: #0d1117;
603
604
  --bgColor-muted: #161b22;
605
+ --bgColor-inset: #010409;
604
606
  --bgColor-emphasis: #6e7681;
605
607
  --bgColor-disabled: #161b22;
606
608
  --bgColor-transparent: #00000000;
@@ -188,7 +188,7 @@
188
188
  --fgColor-muted: #6d7986;
189
189
  --fgColor-onEmphasis: #cdd9e5;
190
190
  --fgColor-disabled: #768390;
191
- --fgColor-link-rest: #3b7cdb;
191
+ --fgColor-link: #3b7cdb;
192
192
  --fgColor-accent: #3b7cdb;
193
193
  --fgColor-success: #57ab5a;
194
194
  --fgColor-attention: #c69026;
@@ -200,6 +200,7 @@
200
200
  --fgColor-sponsors: #c96198;
201
201
  --bgColor-default: #22272e;
202
202
  --bgColor-muted: #2d333b;
203
+ --bgColor-inset: #1c2128;
203
204
  --bgColor-emphasis: #636e7b;
204
205
  --bgColor-disabled: #2d333b;
205
206
  --bgColor-transparent: #00000000;
@@ -589,7 +590,7 @@
589
590
  --fgColor-muted: #6d7986;
590
591
  --fgColor-onEmphasis: #cdd9e5;
591
592
  --fgColor-disabled: #768390;
592
- --fgColor-link-rest: #3b7cdb;
593
+ --fgColor-link: #3b7cdb;
593
594
  --fgColor-accent: #3b7cdb;
594
595
  --fgColor-success: #57ab5a;
595
596
  --fgColor-attention: #c69026;
@@ -601,6 +602,7 @@
601
602
  --fgColor-sponsors: #c96198;
602
603
  --bgColor-default: #22272e;
603
604
  --bgColor-muted: #2d333b;
605
+ --bgColor-inset: #1c2128;
604
606
  --bgColor-emphasis: #636e7b;
605
607
  --bgColor-disabled: #2d333b;
606
608
  --bgColor-transparent: #00000000;
@@ -188,7 +188,7 @@
188
188
  --fgColor-muted: #f0f3f6;
189
189
  --fgColor-onEmphasis: #0a0c10;
190
190
  --fgColor-disabled: #bdc4cc;
191
- --fgColor-link-rest: #409eff;
191
+ --fgColor-link: #409eff;
192
192
  --fgColor-accent: #409eff;
193
193
  --fgColor-success: #26cd4d;
194
194
  --fgColor-attention: #f0b72f;
@@ -200,6 +200,7 @@
200
200
  --fgColor-sponsors: #ef6eb1;
201
201
  --bgColor-default: #0a0c10;
202
202
  --bgColor-muted: #272b33;
203
+ --bgColor-inset: #010409;
203
204
  --bgColor-emphasis: #ffffff;
204
205
  --bgColor-disabled: #272b33;
205
206
  --bgColor-transparent: #00000000;
@@ -589,7 +590,7 @@
589
590
  --fgColor-muted: #f0f3f6;
590
591
  --fgColor-onEmphasis: #0a0c10;
591
592
  --fgColor-disabled: #bdc4cc;
592
- --fgColor-link-rest: #409eff;
593
+ --fgColor-link: #409eff;
593
594
  --fgColor-accent: #409eff;
594
595
  --fgColor-success: #26cd4d;
595
596
  --fgColor-attention: #f0b72f;
@@ -601,6 +602,7 @@
601
602
  --fgColor-sponsors: #ef6eb1;
602
603
  --bgColor-default: #0a0c10;
603
604
  --bgColor-muted: #272b33;
605
+ --bgColor-inset: #010409;
604
606
  --bgColor-emphasis: #ffffff;
605
607
  --bgColor-disabled: #272b33;
606
608
  --bgColor-transparent: #00000000;
@@ -188,7 +188,7 @@
188
188
  --fgColor-muted: #7d8590;
189
189
  --fgColor-onEmphasis: #ffffff;
190
190
  --fgColor-disabled: #8b949e;
191
- --fgColor-link-rest: #2f81f7;
191
+ --fgColor-link: #2f81f7;
192
192
  --fgColor-accent: #2f81f7;
193
193
  --fgColor-success: #58a6ff;
194
194
  --fgColor-attention: #d29922;
@@ -200,6 +200,7 @@
200
200
  --fgColor-sponsors: #db61a2;
201
201
  --bgColor-default: #0d1117;
202
202
  --bgColor-muted: #161b22;
203
+ --bgColor-inset: #010409;
203
204
  --bgColor-emphasis: #6e7681;
204
205
  --bgColor-disabled: #161b22;
205
206
  --bgColor-transparent: #00000000;
@@ -589,7 +590,7 @@
589
590
  --fgColor-muted: #7d8590;
590
591
  --fgColor-onEmphasis: #ffffff;
591
592
  --fgColor-disabled: #8b949e;
592
- --fgColor-link-rest: #2f81f7;
593
+ --fgColor-link: #2f81f7;
593
594
  --fgColor-accent: #2f81f7;
594
595
  --fgColor-success: #58a6ff;
595
596
  --fgColor-attention: #d29922;
@@ -601,6 +602,7 @@
601
602
  --fgColor-sponsors: #db61a2;
602
603
  --bgColor-default: #0d1117;
603
604
  --bgColor-muted: #161b22;
605
+ --bgColor-inset: #010409;
604
606
  --bgColor-emphasis: #6e7681;
605
607
  --bgColor-disabled: #161b22;
606
608
  --bgColor-transparent: #00000000;
@@ -188,7 +188,7 @@
188
188
  --fgColor-muted: #7d8590;
189
189
  --fgColor-onEmphasis: #ffffff;
190
190
  --fgColor-disabled: #8b949e;
191
- --fgColor-link-rest: #2f81f7;
191
+ --fgColor-link: #2f81f7;
192
192
  --fgColor-accent: #2f81f7;
193
193
  --fgColor-success: #3fb950;
194
194
  --fgColor-attention: #d29922;
@@ -200,6 +200,7 @@
200
200
  --fgColor-sponsors: #db61a2;
201
201
  --bgColor-default: #0d1117;
202
202
  --bgColor-muted: #161b22;
203
+ --bgColor-inset: #010409;
203
204
  --bgColor-emphasis: #6e7681;
204
205
  --bgColor-disabled: #161b22;
205
206
  --bgColor-transparent: #00000000;
@@ -589,7 +590,7 @@
589
590
  --fgColor-muted: #7d8590;
590
591
  --fgColor-onEmphasis: #ffffff;
591
592
  --fgColor-disabled: #8b949e;
592
- --fgColor-link-rest: #2f81f7;
593
+ --fgColor-link: #2f81f7;
593
594
  --fgColor-accent: #2f81f7;
594
595
  --fgColor-success: #3fb950;
595
596
  --fgColor-attention: #d29922;
@@ -601,6 +602,7 @@
601
602
  --fgColor-sponsors: #db61a2;
602
603
  --bgColor-default: #0d1117;
603
604
  --bgColor-muted: #161b22;
605
+ --bgColor-inset: #010409;
604
606
  --bgColor-emphasis: #6e7681;
605
607
  --bgColor-disabled: #161b22;
606
608
  --bgColor-transparent: #00000000;
@@ -189,7 +189,7 @@
189
189
  --fgColor-muted: #636c76;
190
190
  --fgColor-onEmphasis: #ffffff;
191
191
  --fgColor-disabled: #8c959f;
192
- --fgColor-link-rest: #0969da;
192
+ --fgColor-link: #0969da;
193
193
  --fgColor-accent: #0969da;
194
194
  --fgColor-success: #0969da;
195
195
  --fgColor-attention: #9a6700;
@@ -201,6 +201,7 @@
201
201
  --fgColor-sponsors: #bf3989;
202
202
  --bgColor-default: #ffffff;
203
203
  --bgColor-muted: #f6f8fa;
204
+ --bgColor-inset: #f6f8fa;
204
205
  --bgColor-emphasis: #24292f;
205
206
  --bgColor-disabled: #f6f8fa;
206
207
  --bgColor-transparent: #ffffff00;
@@ -590,7 +591,7 @@
590
591
  --fgColor-muted: #636c76;
591
592
  --fgColor-onEmphasis: #ffffff;
592
593
  --fgColor-disabled: #8c959f;
593
- --fgColor-link-rest: #0969da;
594
+ --fgColor-link: #0969da;
594
595
  --fgColor-accent: #0969da;
595
596
  --fgColor-success: #0969da;
596
597
  --fgColor-attention: #9a6700;
@@ -602,6 +603,7 @@
602
603
  --fgColor-sponsors: #bf3989;
603
604
  --bgColor-default: #ffffff;
604
605
  --bgColor-muted: #f6f8fa;
606
+ --bgColor-inset: #f6f8fa;
605
607
  --bgColor-emphasis: #24292f;
606
608
  --bgColor-disabled: #f6f8fa;
607
609
  --bgColor-transparent: #ffffff00;
@@ -189,7 +189,7 @@
189
189
  --fgColor-muted: #0e1116;
190
190
  --fgColor-onEmphasis: #ffffff;
191
191
  --fgColor-disabled: #4b535d;
192
- --fgColor-link-rest: #023b95;
192
+ --fgColor-link: #023b95;
193
193
  --fgColor-accent: #023b95;
194
194
  --fgColor-success: #055d20;
195
195
  --fgColor-attention: #744500;
@@ -201,6 +201,7 @@
201
201
  --fgColor-sponsors: #971368;
202
202
  --bgColor-default: #ffffff;
203
203
  --bgColor-muted: #e7ecf0;
204
+ --bgColor-inset: #ffffff;
204
205
  --bgColor-emphasis: #0e1116;
205
206
  --bgColor-disabled: #e7ecf0;
206
207
  --bgColor-transparent: #ffffff00;
@@ -590,7 +591,7 @@
590
591
  --fgColor-muted: #0e1116;
591
592
  --fgColor-onEmphasis: #ffffff;
592
593
  --fgColor-disabled: #4b535d;
593
- --fgColor-link-rest: #023b95;
594
+ --fgColor-link: #023b95;
594
595
  --fgColor-accent: #023b95;
595
596
  --fgColor-success: #055d20;
596
597
  --fgColor-attention: #744500;
@@ -602,6 +603,7 @@
602
603
  --fgColor-sponsors: #971368;
603
604
  --bgColor-default: #ffffff;
604
605
  --bgColor-muted: #e7ecf0;
606
+ --bgColor-inset: #ffffff;
605
607
  --bgColor-emphasis: #0e1116;
606
608
  --bgColor-disabled: #e7ecf0;
607
609
  --bgColor-transparent: #ffffff00;
@@ -189,7 +189,7 @@
189
189
  --fgColor-muted: #636c76;
190
190
  --fgColor-onEmphasis: #ffffff;
191
191
  --fgColor-disabled: #8c959f;
192
- --fgColor-link-rest: #0969da;
192
+ --fgColor-link: #0969da;
193
193
  --fgColor-accent: #0969da;
194
194
  --fgColor-success: #0969da;
195
195
  --fgColor-attention: #9a6700;
@@ -201,6 +201,7 @@
201
201
  --fgColor-sponsors: #bf3989;
202
202
  --bgColor-default: #ffffff;
203
203
  --bgColor-muted: #f6f8fa;
204
+ --bgColor-inset: #f6f8fa;
204
205
  --bgColor-emphasis: #24292f;
205
206
  --bgColor-disabled: #f6f8fa;
206
207
  --bgColor-transparent: #ffffff00;
@@ -590,7 +591,7 @@
590
591
  --fgColor-muted: #636c76;
591
592
  --fgColor-onEmphasis: #ffffff;
592
593
  --fgColor-disabled: #8c959f;
593
- --fgColor-link-rest: #0969da;
594
+ --fgColor-link: #0969da;
594
595
  --fgColor-accent: #0969da;
595
596
  --fgColor-success: #0969da;
596
597
  --fgColor-attention: #9a6700;
@@ -602,6 +603,7 @@
602
603
  --fgColor-sponsors: #bf3989;
603
604
  --bgColor-default: #ffffff;
604
605
  --bgColor-muted: #f6f8fa;
606
+ --bgColor-inset: #f6f8fa;
605
607
  --bgColor-emphasis: #24292f;
606
608
  --bgColor-disabled: #f6f8fa;
607
609
  --bgColor-transparent: #ffffff00;
@@ -189,7 +189,7 @@
189
189
  --fgColor-muted: #636c76;
190
190
  --fgColor-onEmphasis: #ffffff;
191
191
  --fgColor-disabled: #8c959f;
192
- --fgColor-link-rest: #0969da;
192
+ --fgColor-link: #0969da;
193
193
  --fgColor-accent: #0969da;
194
194
  --fgColor-success: #1a7f37;
195
195
  --fgColor-attention: #9a6700;
@@ -201,6 +201,7 @@
201
201
  --fgColor-sponsors: #bf3989;
202
202
  --bgColor-default: #ffffff;
203
203
  --bgColor-muted: #f6f8fa;
204
+ --bgColor-inset: #f6f8fa;
204
205
  --bgColor-emphasis: #24292f;
205
206
  --bgColor-disabled: #f6f8fa;
206
207
  --bgColor-transparent: #ffffff00;
@@ -590,7 +591,7 @@
590
591
  --fgColor-muted: #636c76;
591
592
  --fgColor-onEmphasis: #ffffff;
592
593
  --fgColor-disabled: #8c959f;
593
- --fgColor-link-rest: #0969da;
594
+ --fgColor-link: #0969da;
594
595
  --fgColor-accent: #0969da;
595
596
  --fgColor-success: #1a7f37;
596
597
  --fgColor-attention: #9a6700;
@@ -602,6 +603,7 @@
602
603
  --fgColor-sponsors: #bf3989;
603
604
  --bgColor-default: #ffffff;
604
605
  --bgColor-muted: #f6f8fa;
606
+ --bgColor-inset: #f6f8fa;
605
607
  --bgColor-emphasis: #24292f;
606
608
  --bgColor-disabled: #f6f8fa;
607
609
  --bgColor-transparent: #ffffff00;