@primer/primitives 7.10.0 → 7.11.0-rc.ecbdb39

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 (161) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/build.js +2 -2
  3. package/dist/color-contrast-check.json +1 -1
  4. package/dist/js/colors/dark.d.ts +0 -13
  5. package/dist/js/colors/dark.js +1 -14
  6. package/dist/js/colors/dark_colorblind.d.ts +0 -13
  7. package/dist/js/colors/dark_colorblind.js +1 -14
  8. package/dist/js/colors/dark_dimmed.d.ts +0 -13
  9. package/dist/js/colors/dark_dimmed.js +1 -14
  10. package/dist/js/colors/dark_high_contrast.d.ts +0 -13
  11. package/dist/js/colors/dark_high_contrast.js +1 -14
  12. package/dist/js/colors/dark_tritanopia.d.ts +0 -13
  13. package/dist/js/colors/dark_tritanopia.js +1 -14
  14. package/dist/js/colors/index.d.ts +0 -117
  15. package/dist/js/colors/light.d.ts +0 -13
  16. package/dist/js/colors/light.js +1 -14
  17. package/dist/js/colors/light_colorblind.d.ts +0 -13
  18. package/dist/js/colors/light_colorblind.js +1 -14
  19. package/dist/js/colors/light_high_contrast.d.ts +0 -13
  20. package/dist/js/colors/light_high_contrast.js +1 -14
  21. package/dist/js/colors/light_tritanopia.d.ts +0 -13
  22. package/dist/js/colors/light_tritanopia.js +1 -14
  23. package/dist/js/index.d.ts +0 -117
  24. package/dist/json/colors/dark.json +1 -14
  25. package/dist/json/colors/dark_colorblind.json +1 -14
  26. package/dist/json/colors/dark_dimmed.json +1 -14
  27. package/dist/json/colors/dark_high_contrast.json +1 -14
  28. package/dist/json/colors/dark_tritanopia.json +1 -14
  29. package/dist/json/colors/light.json +1 -14
  30. package/dist/json/colors/light_colorblind.json +1 -14
  31. package/dist/json/colors/light_high_contrast.json +1 -14
  32. package/dist/json/colors/light_tritanopia.json +1 -14
  33. package/dist/removed/colors.json +13 -2
  34. package/dist/scss/colors/_dark.scss +0 -13
  35. package/dist/scss/colors/_dark_colorblind.scss +0 -13
  36. package/dist/scss/colors/_dark_dimmed.scss +0 -13
  37. package/dist/scss/colors/_dark_high_contrast.scss +0 -13
  38. package/dist/scss/colors/_dark_tritanopia.scss +0 -13
  39. package/dist/scss/colors/_light.scss +0 -13
  40. package/dist/scss/colors/_light_colorblind.scss +0 -13
  41. package/dist/scss/colors/_light_high_contrast.scss +0 -13
  42. package/dist/scss/colors/_light_tritanopia.scss +0 -13
  43. package/dist/ts/colors/dark.ts +1 -14
  44. package/dist/ts/colors/dark_colorblind.ts +1 -14
  45. package/dist/ts/colors/dark_dimmed.ts +1 -14
  46. package/dist/ts/colors/dark_high_contrast.ts +1 -14
  47. package/dist/ts/colors/dark_tritanopia.ts +1 -14
  48. package/dist/ts/colors/light.ts +1 -14
  49. package/dist/ts/colors/light_colorblind.ts +1 -14
  50. package/dist/ts/colors/light_high_contrast.ts +1 -14
  51. package/dist/ts/colors/light_tritanopia.ts +1 -14
  52. package/package.json +14 -4
  53. package/tokens/base/color/dark/dark.dimmed.json5 +128 -0
  54. package/tokens/base/color/dark/dark.high-contrast.json5 +128 -0
  55. package/tokens/base/color/dark/dark.json5 +133 -0
  56. package/tokens/base/color/dark/dark.protanopia-deuteranopia.json5 +48 -0
  57. package/tokens/base/color/dark/dark.tritanopia.json5 +96 -0
  58. package/tokens/base/color/light/light.high-contrast.json5 +394 -0
  59. package/tokens/base/color/light/light.json5 +403 -0
  60. package/tokens/base/color/light/light.protanopia-deuteranopia.json5 +138 -0
  61. package/tokens/base/color/light/light.tritanopia.json5 +96 -0
  62. package/tokens/functional/border/dark.json5 +12 -0
  63. package/tokens/functional/border/light.json5 +12 -0
  64. package/tokens/functional/color/{ansi-dark.json → dark/ansi-dark.json5} +0 -0
  65. package/tokens/functional/color/{checks-dark.json → dark/checks-dark.json5} +0 -0
  66. package/tokens/functional/color/{components-dark.json → dark/components-dark.json5} +0 -0
  67. package/tokens/functional/color/{diff-dark.json → dark/diff-dark.json5} +0 -0
  68. package/tokens/functional/color/{marketing-dark.json → dark/marketing-dark.json5} +0 -0
  69. package/tokens/functional/color/{misc-dark.json → dark/misc-dark.json5} +0 -0
  70. package/tokens/functional/color/dark/overrides/dark.dimmed.json5 +17 -0
  71. package/tokens/functional/color/{exceptions-dark-high-contrast.json → dark/overrides/dark.high-contrast.json5} +5 -0
  72. package/tokens/functional/color/dark/overrides/dark.protanopia-deuteranopia.json5 +50 -0
  73. package/tokens/functional/color/dark/overrides/dark.tritanopia.json5 +49 -0
  74. package/tokens/functional/color/{primitives-dark.json → dark/primitives-dark.json5} +0 -0
  75. package/tokens/functional/color/{syntax-dark.json → dark/syntax-dark.json5} +0 -0
  76. package/tokens/functional/color/{ansi-light.json → light/ansi-light.json5} +0 -0
  77. package/tokens/functional/color/{checks-light.json → light/checks-light.json5} +0 -0
  78. package/tokens/functional/color/{components-light.json → light/components-light.json5} +0 -0
  79. package/tokens/functional/color/{diff-light.json → light/diff-light.json5} +0 -0
  80. package/tokens/functional/color/{marketing-light.json → light/marketing-light.json5} +0 -0
  81. package/tokens/functional/color/{misc-light.json → light/misc-light.json5} +0 -0
  82. package/tokens/functional/color/light/overrides/light.high-contrast.json5 +332 -0
  83. package/tokens/functional/color/light/overrides/light.protanopia-deuteranopia.json5 +92 -0
  84. package/tokens/functional/color/light/overrides/light.tritanopia.json5 +92 -0
  85. package/tokens/functional/color/{primitives-light.json → light/primitives-light.json5} +0 -0
  86. package/tokens/functional/color/{syntax-light.json → light/syntax-light.json5} +0 -0
  87. package/tokens/functional/color/scales.json5 +493 -0
  88. package/tokens/functional/shadow/dark.json5 +93 -0
  89. package/tokens/functional/shadow/light.json5 +100 -0
  90. package/tokens/functional/size/border.json +8 -0
  91. package/tokens/functional/typography/typography.json +2 -2
  92. package/tokens-v2-private/css/tokens/base/size/size.css +1 -1
  93. package/tokens-v2-private/css/tokens/base/typography/typography.css +1 -1
  94. package/tokens-v2-private/css/tokens/functional/size/border.css +1 -1
  95. package/tokens-v2-private/css/tokens/functional/size/breakpoints.css +1 -1
  96. package/tokens-v2-private/css/tokens/functional/size/size-coarse.css +1 -1
  97. package/tokens-v2-private/css/tokens/functional/size/size-fine.css +1 -1
  98. package/tokens-v2-private/css/tokens/functional/size/size.css +1 -1
  99. package/tokens-v2-private/css/tokens/functional/typography/typography.css +3 -3
  100. package/tokens-v2-private/docs/docValues.json +12 -12
  101. package/tokens-v2-private/js/module/tokens/base/size/size.js +1 -1
  102. package/tokens-v2-private/js/module/tokens/base/typography/typography.js +1 -1
  103. package/tokens-v2-private/js/module/tokens/functional/size/border.js +1 -1
  104. package/tokens-v2-private/js/module/tokens/functional/size/breakpoints.js +1 -1
  105. package/tokens-v2-private/js/module/tokens/functional/size/size-coarse.js +1 -1
  106. package/tokens-v2-private/js/module/tokens/functional/size/size-fine.js +1 -1
  107. package/tokens-v2-private/js/module/tokens/functional/size/size.js +1 -1
  108. package/tokens-v2-private/js/module/tokens/functional/size/viewport.js +1 -1
  109. package/tokens-v2-private/js/module/tokens/functional/typography/typography.js +13 -13
  110. package/tokens-v2-private/js/tokens/base/size/size.js +1 -1
  111. package/tokens-v2-private/js/tokens/base/typography/typography.js +1 -1
  112. package/tokens-v2-private/js/tokens/functional/size/border.js +1 -1
  113. package/tokens-v2-private/js/tokens/functional/size/breakpoints.js +1 -1
  114. package/tokens-v2-private/js/tokens/functional/size/size-coarse.js +1 -1
  115. package/tokens-v2-private/js/tokens/functional/size/size-fine.js +1 -1
  116. package/tokens-v2-private/js/tokens/functional/size/size.js +1 -1
  117. package/tokens-v2-private/js/tokens/functional/size/viewport.js +1 -1
  118. package/tokens-v2-private/js/tokens/functional/typography/typography.js +11 -11
  119. package/tokens-v2-private/scss/tokens/base/size/size.scss +1 -1
  120. package/tokens-v2-private/scss/tokens/base/typography/typography.scss +1 -1
  121. package/tokens-v2-private/scss/tokens/functional/size/border.scss +1 -1
  122. package/tokens-v2-private/scss/tokens/functional/size/breakpoints.scss +1 -1
  123. package/tokens-v2-private/scss/tokens/functional/size/size-coarse.scss +1 -1
  124. package/tokens-v2-private/scss/tokens/functional/size/size-fine.scss +1 -1
  125. package/tokens-v2-private/scss/tokens/functional/size/size.scss +1 -1
  126. package/tokens-v2-private/scss/tokens/functional/size/viewport.scss +1 -1
  127. package/tokens-v2-private/scss/tokens/functional/typography/typography.scss +3 -3
  128. package/tokens-v2-private/ts/tokens/base/size/size.d.ts +1 -1
  129. package/tokens-v2-private/ts/tokens/base/size/size.js +1 -1
  130. package/tokens-v2-private/ts/tokens/base/typography/typography.d.ts +1 -1
  131. package/tokens-v2-private/ts/tokens/base/typography/typography.js +1 -1
  132. package/tokens-v2-private/ts/tokens/functional/size/border.d.ts +1 -1
  133. package/tokens-v2-private/ts/tokens/functional/size/border.js +1 -1
  134. package/tokens-v2-private/ts/tokens/functional/size/breakpoints.d.ts +1 -1
  135. package/tokens-v2-private/ts/tokens/functional/size/breakpoints.js +1 -1
  136. package/tokens-v2-private/ts/tokens/functional/size/size-coarse.d.ts +1 -1
  137. package/tokens-v2-private/ts/tokens/functional/size/size-coarse.js +1 -1
  138. package/tokens-v2-private/ts/tokens/functional/size/size-fine.d.ts +1 -1
  139. package/tokens-v2-private/ts/tokens/functional/size/size-fine.js +1 -1
  140. package/tokens-v2-private/ts/tokens/functional/size/size.d.ts +1 -1
  141. package/tokens-v2-private/ts/tokens/functional/size/size.js +1 -1
  142. package/tokens-v2-private/ts/tokens/functional/size/viewport.d.ts +1 -1
  143. package/tokens-v2-private/ts/tokens/functional/size/viewport.js +1 -1
  144. package/tokens-v2-private/ts/tokens/functional/typography/typography.d.ts +1 -1
  145. package/tokens-v2-private/ts/tokens/functional/typography/typography.js +11 -11
  146. package/tokens/base/color/dark-colorblind.json +0 -44
  147. package/tokens/base/color/dark-dimmed.json +0 -124
  148. package/tokens/base/color/dark-high-contrast.json +0 -124
  149. package/tokens/base/color/dark-tritanopia.json +0 -92
  150. package/tokens/base/color/dark.json +0 -129
  151. package/tokens/base/color/light-colorblind.json +0 -134
  152. package/tokens/base/color/light-high-contrast.json +0 -390
  153. package/tokens/base/color/light-tritanopia.json +0 -92
  154. package/tokens/base/color/light.json +0 -399
  155. package/tokens/functional/color/exceptions-dark-colorblind.json +0 -45
  156. package/tokens/functional/color/exceptions-dark-dimmed.json +0 -12
  157. package/tokens/functional/color/exceptions-dark-tritanopia.json +0 -44
  158. package/tokens/functional/color/exceptions-light-colorblind.json +0 -87
  159. package/tokens/functional/color/exceptions-light-high-contrast.json +0 -327
  160. package/tokens/functional/color/exceptions-light-tritanopia.json +0 -87
  161. package/tokens/functional/color/scales.json +0 -582
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @primer/primitives
2
2
 
3
+ ## 7.11.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#385](https://github.com/primer/primitives/pull/385) [`e03c7fd`](https://github.com/primer/primitives/commit/e03c7fd8a6d902e8d7784fd889acb3779236ba51) Thanks [@simurai](https://github.com/simurai)! - Add `Noto Sans` to the font stack
8
+
9
+ * [#384](https://github.com/primer/primitives/pull/384) [`8b76794`](https://github.com/primer/primitives/commit/8b767947e35a79db17b9d7970836f03c904c8afe) Thanks [@langermank](https://github.com/langermank)! - - Remove deprecated focus color tokens in favor of "global" styles from Primer CSS
10
+
3
11
  ## 7.10.0
4
12
 
5
13
  ### Minor Changes
package/build.js CHANGED
@@ -488,7 +488,7 @@ function _init() {
488
488
  const outputPath = 'tokens-v2-private'
489
489
  //build all tokens
490
490
  buildPrimitives({
491
- source: [`tokens/**/*.json`, `!tokens/**/size-*.json`, `!tokens/**/color/*.json`],
491
+ source: [`tokens/**/*.json`, `!tokens/**/size-*.json`, `!tokens/**/color/*.json`, `!tokens/**/shadow/*.json`],
492
492
  outputPath
493
493
  })
494
494
 
@@ -547,7 +547,7 @@ function _init() {
547
547
 
548
548
  //build docs data
549
549
  buildPrimitives({
550
- source: [`tokens/**/*.json`, `!tokens/**/color/*.json`],
550
+ source: [`tokens/**/*.json`, `!tokens/**/color/*.json`, `!tokens/**/shadow/*.json`],
551
551
  outputPath,
552
552
  platforms: {
553
553
  docs: {