@primer/primitives 7.11.7 → 7.11.8-rc.0252b5f

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 (164) hide show
  1. package/dist/js/colors/dark.d.ts +6 -0
  2. package/dist/js/colors/dark.js +12 -6
  3. package/dist/js/colors/dark_colorblind.d.ts +6 -0
  4. package/dist/js/colors/dark_colorblind.js +12 -6
  5. package/dist/js/colors/dark_dimmed.d.ts +6 -0
  6. package/dist/js/colors/dark_dimmed.js +12 -6
  7. package/dist/js/colors/dark_high_contrast.d.ts +6 -0
  8. package/dist/js/colors/dark_high_contrast.js +10 -4
  9. package/dist/js/colors/dark_tritanopia.d.ts +6 -0
  10. package/dist/js/colors/dark_tritanopia.js +12 -6
  11. package/dist/js/colors/index.d.ts +54 -0
  12. package/dist/js/colors/light.d.ts +6 -0
  13. package/dist/js/colors/light.js +9 -3
  14. package/dist/js/colors/light_colorblind.d.ts +6 -0
  15. package/dist/js/colors/light_colorblind.js +9 -3
  16. package/dist/js/colors/light_high_contrast.d.ts +6 -0
  17. package/dist/js/colors/light_high_contrast.js +9 -3
  18. package/dist/js/colors/light_tritanopia.d.ts +6 -0
  19. package/dist/js/colors/light_tritanopia.js +9 -3
  20. package/dist/js/index.d.ts +54 -0
  21. package/dist/json/colors/dark.json +12 -6
  22. package/dist/json/colors/dark_colorblind.json +12 -6
  23. package/dist/json/colors/dark_dimmed.json +12 -6
  24. package/dist/json/colors/dark_high_contrast.json +10 -4
  25. package/dist/json/colors/dark_tritanopia.json +12 -6
  26. package/dist/json/colors/light.json +9 -3
  27. package/dist/json/colors/light_colorblind.json +9 -3
  28. package/dist/json/colors/light_high_contrast.json +9 -3
  29. package/dist/json/colors/light_tritanopia.json +9 -3
  30. package/dist/scss/colors/_dark.scss +11 -5
  31. package/dist/scss/colors/_dark_colorblind.scss +11 -5
  32. package/dist/scss/colors/_dark_dimmed.scss +11 -5
  33. package/dist/scss/colors/_dark_high_contrast.scss +9 -3
  34. package/dist/scss/colors/_dark_tritanopia.scss +11 -5
  35. package/dist/scss/colors/_light.scss +8 -2
  36. package/dist/scss/colors/_light_colorblind.scss +8 -2
  37. package/dist/scss/colors/_light_high_contrast.scss +8 -2
  38. package/dist/scss/colors/_light_tritanopia.scss +8 -2
  39. package/dist/ts/colors/dark.ts +12 -6
  40. package/dist/ts/colors/dark_colorblind.ts +12 -6
  41. package/dist/ts/colors/dark_dimmed.ts +12 -6
  42. package/dist/ts/colors/dark_high_contrast.ts +10 -4
  43. package/dist/ts/colors/dark_tritanopia.ts +12 -6
  44. package/dist/ts/colors/light.ts +9 -3
  45. package/dist/ts/colors/light_colorblind.ts +9 -3
  46. package/dist/ts/colors/light_high_contrast.ts +9 -3
  47. package/dist/ts/colors/light_tritanopia.ts +9 -3
  48. package/package.json +4 -6
  49. package/tokens-next-private/css/functional/themes/dark-colorblind.css +388 -376
  50. package/tokens-next-private/css/functional/themes/dark-dimmed.css +320 -308
  51. package/tokens-next-private/css/functional/themes/dark-high-contrast.css +308 -296
  52. package/tokens-next-private/css/functional/themes/dark-tritanopia.css +340 -328
  53. package/tokens-next-private/css/functional/themes/dark.css +320 -308
  54. package/tokens-next-private/css/functional/themes/light-colorblind.css +348 -286
  55. package/tokens-next-private/css/functional/themes/light-high-contrast.css +270 -208
  56. package/tokens-next-private/css/functional/themes/light-tritanopia.css +290 -228
  57. package/tokens-next-private/css/functional/themes/light.css +270 -208
  58. package/tokens-next-private/docs/functional/size/border.json +3 -1
  59. package/tokens-next-private/docs/functional/themes/dark-colorblind.json +504 -416
  60. package/tokens-next-private/docs/functional/themes/dark-dimmed.json +321 -233
  61. package/tokens-next-private/docs/functional/themes/dark-high-contrast.json +308 -216
  62. package/tokens-next-private/docs/functional/themes/dark-tritanopia.json +447 -357
  63. package/tokens-next-private/docs/functional/themes/dark.json +321 -233
  64. package/tokens-next-private/docs/functional/themes/light-colorblind.json +663 -240
  65. package/tokens-next-private/docs/functional/themes/light-high-contrast.json +502 -77
  66. package/tokens-next-private/docs/functional/themes/light-tritanopia.json +623 -198
  67. package/tokens-next-private/docs/functional/themes/light.json +500 -77
  68. package/tokens-next-private/docs/functional/typography/typography.json +33 -11
  69. package/tokens-next-private/fallbacks/color-fallbacks.json +245 -0
  70. package/tokens-next-private/js/functional/themes/dark-colorblind.js +158 -116
  71. package/tokens-next-private/js/functional/themes/dark-dimmed.js +103 -61
  72. package/tokens-next-private/js/functional/themes/dark-high-contrast.js +97 -55
  73. package/tokens-next-private/js/functional/themes/dark-tritanopia.js +113 -71
  74. package/tokens-next-private/js/functional/themes/dark.js +103 -61
  75. package/tokens-next-private/js/functional/themes/light-colorblind.js +123 -106
  76. package/tokens-next-private/js/functional/themes/light-high-contrast.js +65 -48
  77. package/tokens-next-private/js/functional/themes/light-tritanopia.js +75 -58
  78. package/tokens-next-private/js/functional/themes/light.js +65 -48
  79. package/tokens-next-private/json/functional/themes/dark-colorblind.json +161 -119
  80. package/tokens-next-private/json/functional/themes/dark-dimmed.json +106 -64
  81. package/tokens-next-private/json/functional/themes/dark-high-contrast.json +100 -58
  82. package/tokens-next-private/json/functional/themes/dark-tritanopia.json +116 -74
  83. package/tokens-next-private/json/functional/themes/dark.json +106 -64
  84. package/tokens-next-private/json/functional/themes/light-colorblind.json +124 -107
  85. package/tokens-next-private/json/functional/themes/light-high-contrast.json +66 -49
  86. package/tokens-next-private/json/functional/themes/light-tritanopia.json +76 -59
  87. package/tokens-next-private/json/functional/themes/light.json +66 -49
  88. package/tokens-next-private/scss/functional/size/border.scss +1 -1
  89. package/tokens-next-private/scss/functional/themes/dark-colorblind.scss +121 -115
  90. package/tokens-next-private/scss/functional/themes/dark-dimmed.scss +67 -61
  91. package/tokens-next-private/scss/functional/themes/dark-high-contrast.scss +61 -55
  92. package/tokens-next-private/scss/functional/themes/dark-tritanopia.scss +77 -71
  93. package/tokens-next-private/scss/functional/themes/dark.scss +67 -61
  94. package/tokens-next-private/scss/functional/themes/light-colorblind.scss +101 -70
  95. package/tokens-next-private/scss/functional/themes/light-high-contrast.scss +42 -11
  96. package/tokens-next-private/scss/functional/themes/light-tritanopia.scss +52 -21
  97. package/tokens-next-private/scss/functional/themes/light.scss +42 -11
  98. package/tokens-next-private/scss/functional/typography/typography.scss +11 -11
  99. package/tokens-next-private/ts/functional/themes/dark-colorblind.ts +158 -116
  100. package/tokens-next-private/ts/functional/themes/dark-dimmed.ts +103 -61
  101. package/tokens-next-private/ts/functional/themes/dark-high-contrast.ts +97 -55
  102. package/tokens-next-private/ts/functional/themes/dark-tritanopia.ts +113 -71
  103. package/tokens-next-private/ts/functional/themes/dark.ts +103 -61
  104. package/tokens-next-private/ts/functional/themes/light-colorblind.ts +123 -106
  105. package/tokens-next-private/ts/functional/themes/light-high-contrast.ts +65 -48
  106. package/tokens-next-private/ts/functional/themes/light-tritanopia.ts +75 -58
  107. package/tokens-next-private/ts/functional/themes/light.ts +65 -48
  108. package/tokens-next-private/ts/types/BaseColorDesignTokens.d.ts +1 -1
  109. package/tokens-next-private/ts/types/SizeDesignTokens.d.ts +1 -1
  110. package/tokens-next-private/ts/types/ThemeDesignTokens.d.ts +59 -42
  111. package/tokens-next-private/ts/types/TypographyDesignTokens.d.ts +1 -1
  112. package/tokens-v2-private/css/tokens/base/size/size.css +1 -1
  113. package/tokens-v2-private/css/tokens/base/typography/typography.css +1 -1
  114. package/tokens-v2-private/css/tokens/functional/size/border.css +1 -1
  115. package/tokens-v2-private/css/tokens/functional/size/breakpoints.css +1 -1
  116. package/tokens-v2-private/css/tokens/functional/size/size-coarse.css +1 -1
  117. package/tokens-v2-private/css/tokens/functional/size/size-fine.css +1 -1
  118. package/tokens-v2-private/css/tokens/functional/size/size.css +1 -1
  119. package/tokens-v2-private/css/tokens/functional/typography/typography.css +1 -1
  120. package/tokens-v2-private/js/module/tokens/base/size/size.js +1 -1
  121. package/tokens-v2-private/js/module/tokens/base/typography/typography.js +1 -1
  122. package/tokens-v2-private/js/module/tokens/functional/size/border.js +1 -1
  123. package/tokens-v2-private/js/module/tokens/functional/size/breakpoints.js +1 -1
  124. package/tokens-v2-private/js/module/tokens/functional/size/size-coarse.js +1 -1
  125. package/tokens-v2-private/js/module/tokens/functional/size/size-fine.js +1 -1
  126. package/tokens-v2-private/js/module/tokens/functional/size/size.js +1 -1
  127. package/tokens-v2-private/js/module/tokens/functional/size/viewport.js +1 -1
  128. package/tokens-v2-private/js/module/tokens/functional/typography/typography.js +1 -1
  129. package/tokens-v2-private/js/tokens/base/size/size.js +1 -1
  130. package/tokens-v2-private/js/tokens/base/typography/typography.js +1 -1
  131. package/tokens-v2-private/js/tokens/functional/size/border.js +1 -1
  132. package/tokens-v2-private/js/tokens/functional/size/breakpoints.js +1 -1
  133. package/tokens-v2-private/js/tokens/functional/size/size-coarse.js +1 -1
  134. package/tokens-v2-private/js/tokens/functional/size/size-fine.js +1 -1
  135. package/tokens-v2-private/js/tokens/functional/size/size.js +1 -1
  136. package/tokens-v2-private/js/tokens/functional/size/viewport.js +1 -1
  137. package/tokens-v2-private/js/tokens/functional/typography/typography.js +1 -1
  138. package/tokens-v2-private/scss/tokens/base/size/size.scss +1 -1
  139. package/tokens-v2-private/scss/tokens/base/typography/typography.scss +1 -1
  140. package/tokens-v2-private/scss/tokens/functional/size/border.scss +1 -1
  141. package/tokens-v2-private/scss/tokens/functional/size/breakpoints.scss +1 -1
  142. package/tokens-v2-private/scss/tokens/functional/size/size-coarse.scss +1 -1
  143. package/tokens-v2-private/scss/tokens/functional/size/size-fine.scss +1 -1
  144. package/tokens-v2-private/scss/tokens/functional/size/size.scss +1 -1
  145. package/tokens-v2-private/scss/tokens/functional/size/viewport.scss +1 -1
  146. package/tokens-v2-private/scss/tokens/functional/typography/typography.scss +1 -1
  147. package/tokens-v2-private/ts/tokens/base/size/size.d.ts +1 -1
  148. package/tokens-v2-private/ts/tokens/base/size/size.js +1 -1
  149. package/tokens-v2-private/ts/tokens/base/typography/typography.d.ts +1 -1
  150. package/tokens-v2-private/ts/tokens/base/typography/typography.js +1 -1
  151. package/tokens-v2-private/ts/tokens/functional/size/border.d.ts +1 -1
  152. package/tokens-v2-private/ts/tokens/functional/size/border.js +1 -1
  153. package/tokens-v2-private/ts/tokens/functional/size/breakpoints.d.ts +1 -1
  154. package/tokens-v2-private/ts/tokens/functional/size/breakpoints.js +1 -1
  155. package/tokens-v2-private/ts/tokens/functional/size/size-coarse.d.ts +1 -1
  156. package/tokens-v2-private/ts/tokens/functional/size/size-coarse.js +1 -1
  157. package/tokens-v2-private/ts/tokens/functional/size/size-fine.d.ts +1 -1
  158. package/tokens-v2-private/ts/tokens/functional/size/size-fine.js +1 -1
  159. package/tokens-v2-private/ts/tokens/functional/size/size.d.ts +1 -1
  160. package/tokens-v2-private/ts/tokens/functional/size/size.js +1 -1
  161. package/tokens-v2-private/ts/tokens/functional/size/viewport.d.ts +1 -1
  162. package/tokens-v2-private/ts/tokens/functional/size/viewport.js +1 -1
  163. package/tokens-v2-private/ts/tokens/functional/typography/typography.d.ts +1 -1
  164. package/tokens-v2-private/ts/tokens/functional/typography/typography.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/primitives",
3
- "version": "7.11.7",
3
+ "version": "7.11.8-rc.0252b5f",
4
4
  "description": "Typography, spacing, and color primitives for Primer design system",
5
5
  "files": [
6
6
  "dist",
@@ -28,7 +28,7 @@
28
28
  "homepage": "https://github.com/primer/primitives#readme",
29
29
  "scripts": {
30
30
  "build": "ts-node ./scripts/build.ts && tsc --project tsconfig.build.json",
31
- "build:next": "ts-node -r tsconfig-paths/register ./scripts/buildTokens.ts",
31
+ "build:next": "ts-node -r tsconfig-paths/register ./scripts/buildTokens.ts && ts-node ./scripts/buildFallbacks.ts",
32
32
  "build:tokens": "node -e \"require('./build')._init()\"",
33
33
  "build:new-tokens": "npm run build:tokens && npm run build:next",
34
34
  "tokenJson:check": "ts-node scripts/diffThemes.ts && ts-node scripts/diffTokenProps.ts",
@@ -43,7 +43,7 @@
43
43
  "prebuild:tokens": "rm -rf tokens-v2-private",
44
44
  "prebuild:next": "rm -rf tokens-next-private",
45
45
  "prepack": "npm run build && npm run build:tokens && npm run build:next",
46
- "prepare": "husky install && npm run install:docs && npm run install:storybook",
46
+ "prepare": "husky install",
47
47
  "release": "changeset publish",
48
48
  "start:storybook": "npm run build:next && cd docs/storybook && npm run storybook",
49
49
  "test": "jest --verbose --coverage",
@@ -87,9 +87,7 @@
87
87
  "ts-jest": "^29.0.3",
88
88
  "ts-node": "^10.9.1",
89
89
  "tsconfig-paths": "^4.1.0",
90
- "typescript": "^4.9.3"
91
- },
92
- "dependencies": {
90
+ "typescript": "^4.9.3",
93
91
  "markdown-table-ts": "^1.0.3"
94
92
  }
95
93
  }