@primer/primitives 7.17.0-rc.8ff6ed39 → 7.17.0-rc.8fffddc7

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 (136) hide show
  1. package/README.md +1 -1
  2. package/dist/css/functional/themes/dark-colorblind.css +10 -0
  3. package/dist/css/functional/themes/dark-dimmed.css +10 -0
  4. package/dist/css/functional/themes/dark-high-contrast.css +10 -0
  5. package/dist/css/functional/themes/dark-tritanopia.css +10 -0
  6. package/dist/css/functional/themes/dark.css +10 -0
  7. package/dist/css/functional/themes/light-colorblind.css +10 -0
  8. package/dist/css/functional/themes/light-high-contrast.css +10 -0
  9. package/dist/css/functional/themes/light-tritanopia.css +10 -0
  10. package/dist/css/functional/themes/light.css +10 -0
  11. package/dist/css/functional/typography/typography.css +1 -1
  12. package/dist/docs/base/typography/typography.json +52 -4
  13. package/dist/docs/functional/themes/dark-colorblind.json +145 -0
  14. package/dist/docs/functional/themes/dark-dimmed.json +145 -0
  15. package/dist/docs/functional/themes/dark-high-contrast.json +145 -0
  16. package/dist/docs/functional/themes/dark-tritanopia.json +145 -0
  17. package/dist/docs/functional/themes/dark.json +145 -0
  18. package/dist/docs/functional/themes/light-colorblind.json +145 -0
  19. package/dist/docs/functional/themes/light-high-contrast.json +145 -0
  20. package/dist/docs/functional/themes/light-tritanopia.json +145 -0
  21. package/dist/docs/functional/themes/light.json +145 -0
  22. package/dist/docs/functional/typography/typography.json +494 -36
  23. package/dist/fallbacks/functional/typography/typography.json +1 -1
  24. package/dist/figma/figma.json +18 -1
  25. package/dist/figma/themes/dark-colorblind.json +80 -0
  26. package/dist/figma/themes/dark-dimmed.json +80 -0
  27. package/dist/figma/themes/dark-high-contrast.json +80 -0
  28. package/dist/figma/themes/dark-tritanopia.json +80 -0
  29. package/dist/figma/themes/dark.json +80 -0
  30. package/dist/figma/themes/light-colorblind.json +80 -0
  31. package/dist/figma/themes/light-high-contrast.json +80 -0
  32. package/dist/figma/themes/light-tritanopia.json +80 -0
  33. package/dist/figma/themes/light.json +80 -0
  34. package/dist/figma/typography/typography.json +370 -0
  35. package/dist/internalCss/dark-colorblind.css +10 -0
  36. package/dist/internalCss/dark-dimmed.css +10 -0
  37. package/dist/internalCss/dark-high-contrast.css +10 -0
  38. package/dist/internalCss/dark-tritanopia.css +10 -0
  39. package/dist/internalCss/dark.css +10 -0
  40. package/dist/internalCss/light-colorblind.css +10 -0
  41. package/dist/internalCss/light-high-contrast.css +10 -0
  42. package/dist/internalCss/light-tritanopia.css +10 -0
  43. package/dist/internalCss/light.css +10 -0
  44. package/dist/styleLint/base/typography/typography.json +52 -4
  45. package/dist/styleLint/functional/themes/dark-colorblind.json +145 -0
  46. package/dist/styleLint/functional/themes/dark-dimmed.json +145 -0
  47. package/dist/styleLint/functional/themes/dark-high-contrast.json +145 -0
  48. package/dist/styleLint/functional/themes/dark-tritanopia.json +145 -0
  49. package/dist/styleLint/functional/themes/dark.json +145 -0
  50. package/dist/styleLint/functional/themes/light-colorblind.json +145 -0
  51. package/dist/styleLint/functional/themes/light-high-contrast.json +145 -0
  52. package/dist/styleLint/functional/themes/light-tritanopia.json +145 -0
  53. package/dist/styleLint/functional/themes/light.json +145 -0
  54. package/dist/styleLint/functional/typography/typography.json +494 -36
  55. package/package.json +4 -11
  56. package/src/PrimerStyleDictionary.ts +12 -0
  57. package/src/filters/index.ts +1 -0
  58. package/src/filters/isNumber.ts +8 -0
  59. package/src/formats/jsonFigma.ts +1 -0
  60. package/src/platforms/figma.ts +10 -1
  61. package/src/schemas/numberToken.ts +17 -0
  62. package/src/tokens/base/typography/typography.json +28 -4
  63. package/src/tokens/functional/color/dark/display-dark.json5 +66 -0
  64. package/src/tokens/functional/color/light/display-light.json5 +66 -0
  65. package/src/tokens/functional/typography/typography.json +263 -34
  66. package/src/transformers/floatToPixel.ts +33 -0
  67. package/src/transformers/fontFamilyToCss.ts +3 -4
  68. package/src/transformers/fontFamilyToFigma.ts +47 -0
  69. package/src/transformers/index.ts +2 -0
  70. package/src/transformers/utilities/hasSpaceInString.ts +6 -0
  71. package/build.js +0 -578
  72. package/tokens/base/size/size.json +0 -57
  73. package/tokens/base/typography/typography.json +0 -20
  74. package/tokens/functional/size/border.json +0 -48
  75. package/tokens/functional/size/breakpoints.json +0 -24
  76. package/tokens/functional/size/size-coarse.json +0 -27
  77. package/tokens/functional/size/size-fine.json +0 -27
  78. package/tokens/functional/size/size.json +0 -189
  79. package/tokens/functional/size/viewport.json +0 -24
  80. package/tokens/functional/typography/typography.json +0 -213
  81. package/tokens/removed/color.json +0 -421
  82. package/tokens-v2-private/css/tokens/base/size/size.css +0 -24
  83. package/tokens-v2-private/css/tokens/base/typography/typography.css +0 -11
  84. package/tokens-v2-private/css/tokens/functional/size/border.css +0 -17
  85. package/tokens-v2-private/css/tokens/functional/size/breakpoints.css +0 -13
  86. package/tokens-v2-private/css/tokens/functional/size/size-coarse.css +0 -11
  87. package/tokens-v2-private/css/tokens/functional/size/size-fine.css +0 -11
  88. package/tokens-v2-private/css/tokens/functional/size/size.css +0 -54
  89. package/tokens-v2-private/css/tokens/functional/size/viewport.css +0 -6
  90. package/tokens-v2-private/css/tokens/functional/typography/typography.css +0 -47
  91. package/tokens-v2-private/docs/docValues.json +0 -2209
  92. package/tokens-v2-private/js/module/tokens/base/size/size.js +0 -266
  93. package/tokens-v2-private/js/module/tokens/base/typography/typography.js +0 -77
  94. package/tokens-v2-private/js/module/tokens/functional/size/border.js +0 -165
  95. package/tokens-v2-private/js/module/tokens/functional/size/breakpoints.js +0 -101
  96. package/tokens-v2-private/js/module/tokens/functional/size/size-coarse.js +0 -73
  97. package/tokens-v2-private/js/module/tokens/functional/size/size-fine.js +0 -73
  98. package/tokens-v2-private/js/module/tokens/functional/size/size.js +0 -824
  99. package/tokens-v2-private/js/module/tokens/functional/size/viewport.js +0 -101
  100. package/tokens-v2-private/js/module/tokens/functional/typography/typography.js +0 -809
  101. package/tokens-v2-private/js/tokens/base/size/size.js +0 -22
  102. package/tokens-v2-private/js/tokens/base/typography/typography.js +0 -9
  103. package/tokens-v2-private/js/tokens/functional/size/border.js +0 -15
  104. package/tokens-v2-private/js/tokens/functional/size/breakpoints.js +0 -11
  105. package/tokens-v2-private/js/tokens/functional/size/size-coarse.js +0 -8
  106. package/tokens-v2-private/js/tokens/functional/size/size-fine.js +0 -8
  107. package/tokens-v2-private/js/tokens/functional/size/size.js +0 -52
  108. package/tokens-v2-private/js/tokens/functional/size/viewport.js +0 -11
  109. package/tokens-v2-private/js/tokens/functional/typography/typography.js +0 -45
  110. package/tokens-v2-private/scss/tokens/base/size/size.scss +0 -21
  111. package/tokens-v2-private/scss/tokens/base/typography/typography.scss +0 -8
  112. package/tokens-v2-private/scss/tokens/functional/size/border.scss +0 -14
  113. package/tokens-v2-private/scss/tokens/functional/size/breakpoints.scss +0 -10
  114. package/tokens-v2-private/scss/tokens/functional/size/size-coarse.scss +0 -7
  115. package/tokens-v2-private/scss/tokens/functional/size/size-fine.scss +0 -7
  116. package/tokens-v2-private/scss/tokens/functional/size/size.scss +0 -51
  117. package/tokens-v2-private/scss/tokens/functional/size/viewport.scss +0 -10
  118. package/tokens-v2-private/scss/tokens/functional/typography/typography.scss +0 -44
  119. package/tokens-v2-private/ts/tokens/base/size/size.d.ts +0 -31
  120. package/tokens-v2-private/ts/tokens/base/size/size.js +0 -30
  121. package/tokens-v2-private/ts/tokens/base/typography/typography.d.ts +0 -20
  122. package/tokens-v2-private/ts/tokens/base/typography/typography.js +0 -19
  123. package/tokens-v2-private/ts/tokens/functional/size/border.d.ts +0 -28
  124. package/tokens-v2-private/ts/tokens/functional/size/border.js +0 -27
  125. package/tokens-v2-private/ts/tokens/functional/size/breakpoints.d.ts +0 -20
  126. package/tokens-v2-private/ts/tokens/functional/size/breakpoints.js +0 -19
  127. package/tokens-v2-private/ts/tokens/functional/size/size-coarse.d.ts +0 -29
  128. package/tokens-v2-private/ts/tokens/functional/size/size-coarse.js +0 -28
  129. package/tokens-v2-private/ts/tokens/functional/size/size-fine.d.ts +0 -29
  130. package/tokens-v2-private/ts/tokens/functional/size/size-fine.js +0 -28
  131. package/tokens-v2-private/ts/tokens/functional/size/size.d.ts +0 -103
  132. package/tokens-v2-private/ts/tokens/functional/size/size.js +0 -102
  133. package/tokens-v2-private/ts/tokens/functional/size/viewport.d.ts +0 -20
  134. package/tokens-v2-private/ts/tokens/functional/size/viewport.js +0 -19
  135. package/tokens-v2-private/ts/tokens/functional/typography/typography.d.ts +0 -131
  136. package/tokens-v2-private/ts/tokens/functional/typography/typography.js +0 -130
@@ -1,101 +0,0 @@
1
- /**
2
- * Do not edit directly
3
- * Generated on Thu, 18 Apr 2024 08:11:38 GMT
4
- */
5
-
6
- module.exports = {
7
- "primer": {
8
- "viewportRange": {
9
- "narrow": {
10
- "value": "(max-width: calc(48rem - 0.02px))",
11
- "filePath": "tokens/functional/size/viewport.json",
12
- "isSource": true,
13
- "original": {
14
- "value": "(max-width: calc({primer.breakpoint.medium} - 0.02px))"
15
- },
16
- "name": "narrow",
17
- "attributes": {},
18
- "path": [
19
- "primer",
20
- "viewportRange",
21
- "narrow"
22
- ]
23
- },
24
- "narrowLandscape": {
25
- "value": "(max-width: calc(63.25rem - 0.02px) and (max-height: calc(34rem - 0.02px)) and (orientation: landscape))",
26
- "filePath": "tokens/functional/size/viewport.json",
27
- "isSource": true,
28
- "original": {
29
- "value": "(max-width: calc({primer.breakpoint.large} - 0.02px) and (max-height: calc({primer.breakpoint.small} - 0.02px)) and (orientation: landscape))"
30
- },
31
- "name": "narrowLandscape",
32
- "attributes": {},
33
- "path": [
34
- "primer",
35
- "viewportRange",
36
- "narrowLandscape"
37
- ]
38
- },
39
- "regular": {
40
- "value": "(min-width: 48rem)",
41
- "filePath": "tokens/functional/size/viewport.json",
42
- "isSource": true,
43
- "original": {
44
- "value": "(min-width: {primer.breakpoint.medium})"
45
- },
46
- "name": "regular",
47
- "attributes": {},
48
- "path": [
49
- "primer",
50
- "viewportRange",
51
- "regular"
52
- ]
53
- },
54
- "wide": {
55
- "value": "(min-width: 90rem)",
56
- "filePath": "tokens/functional/size/viewport.json",
57
- "isSource": true,
58
- "original": {
59
- "value": "(min-width: {primer.breakpoint.xxlarge})"
60
- },
61
- "name": "wide",
62
- "attributes": {},
63
- "path": [
64
- "primer",
65
- "viewportRange",
66
- "wide"
67
- ]
68
- },
69
- "portrait": {
70
- "value": "(orientation: portrait)",
71
- "filePath": "tokens/functional/size/viewport.json",
72
- "isSource": true,
73
- "original": {
74
- "value": "(orientation: portrait)"
75
- },
76
- "name": "portrait",
77
- "attributes": {},
78
- "path": [
79
- "primer",
80
- "viewportRange",
81
- "portrait"
82
- ]
83
- },
84
- "landscape": {
85
- "value": "(orientation: landscape)",
86
- "filePath": "tokens/functional/size/viewport.json",
87
- "isSource": true,
88
- "original": {
89
- "value": "(orientation: landscape)"
90
- },
91
- "name": "landscape",
92
- "attributes": {},
93
- "path": [
94
- "primer",
95
- "viewportRange",
96
- "landscape"
97
- ]
98
- }
99
- }
100
- }
101
- };