@primer/primitives 7.11.14 → 7.11.15-rc.06a09d3

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 (95) hide show
  1. package/package.json +7 -3
  2. package/tokens-next-private/css/functional/size/border.css +4 -4
  3. package/tokens-next-private/css/functional/size/size.css +5 -5
  4. package/tokens-next-private/css/functional/themes/dark-colorblind.css +2 -2
  5. package/tokens-next-private/css/functional/themes/dark-dimmed.css +2 -2
  6. package/tokens-next-private/css/functional/themes/dark-high-contrast.css +2 -2
  7. package/tokens-next-private/css/functional/themes/dark-tritanopia.css +2 -2
  8. package/tokens-next-private/css/functional/themes/dark.css +2 -2
  9. package/tokens-next-private/css/functional/themes/light-colorblind.css +2 -2
  10. package/tokens-next-private/css/functional/themes/light-high-contrast.css +2 -2
  11. package/tokens-next-private/css/functional/themes/light-tritanopia.css +2 -2
  12. package/tokens-next-private/css/functional/themes/light.css +2 -2
  13. package/tokens-next-private/css/functional/typography/typography.css +10 -10
  14. package/tokens-next-private/docs/base/typography/typography.json +3 -3
  15. package/tokens-next-private/docs/functional/size/border.json +34 -14
  16. package/tokens-next-private/docs/functional/size/size.json +20 -10
  17. package/tokens-next-private/docs/functional/themes/dark-colorblind.json +11 -11
  18. package/tokens-next-private/docs/functional/themes/dark-dimmed.json +11 -11
  19. package/tokens-next-private/docs/functional/themes/dark-high-contrast.json +11 -11
  20. package/tokens-next-private/docs/functional/themes/dark-tritanopia.json +11 -11
  21. package/tokens-next-private/docs/functional/themes/dark.json +11 -11
  22. package/tokens-next-private/docs/functional/themes/light-colorblind.json +3 -3
  23. package/tokens-next-private/docs/functional/themes/light-high-contrast.json +3 -3
  24. package/tokens-next-private/docs/functional/themes/light-tritanopia.json +3 -3
  25. package/tokens-next-private/docs/functional/themes/light.json +3 -3
  26. package/tokens-next-private/docs/functional/typography/typography.json +53 -31
  27. package/tokens-next-private/fallbacks/color-fallbacks.json +1 -1
  28. package/tokens-next-private/fallbacks/functional/size/border.json +4 -4
  29. package/tokens-next-private/fallbacks/functional/size/size.json +5 -5
  30. package/tokens-next-private/fallbacks/functional/typography/typography.json +20 -20
  31. package/tokens-next-private/scss/functional/size/border.scss +4 -4
  32. package/tokens-next-private/scss/functional/size/size.scss +5 -5
  33. package/tokens-next-private/scss/functional/themes/dark-colorblind.scss +1 -1
  34. package/tokens-next-private/scss/functional/themes/dark-dimmed.scss +1 -1
  35. package/tokens-next-private/scss/functional/themes/dark-high-contrast.scss +1 -1
  36. package/tokens-next-private/scss/functional/themes/dark-tritanopia.scss +1 -1
  37. package/tokens-next-private/scss/functional/themes/dark.scss +1 -1
  38. package/tokens-next-private/scss/functional/themes/light-colorblind.scss +1 -1
  39. package/tokens-next-private/scss/functional/themes/light-high-contrast.scss +1 -1
  40. package/tokens-next-private/scss/functional/themes/light-tritanopia.scss +1 -1
  41. package/tokens-next-private/scss/functional/themes/light.scss +1 -1
  42. package/tokens-next-private/scss/functional/typography/typography.scss +20 -20
  43. package/tokens-v2-private/css/tokens/base/size/size.css +1 -1
  44. package/tokens-v2-private/css/tokens/base/typography/typography.css +1 -1
  45. package/tokens-v2-private/css/tokens/functional/size/border.css +1 -1
  46. package/tokens-v2-private/css/tokens/functional/size/breakpoints.css +1 -1
  47. package/tokens-v2-private/css/tokens/functional/size/size-coarse.css +1 -1
  48. package/tokens-v2-private/css/tokens/functional/size/size-fine.css +1 -1
  49. package/tokens-v2-private/css/tokens/functional/size/size.css +1 -1
  50. package/tokens-v2-private/css/tokens/functional/typography/typography.css +1 -1
  51. package/tokens-v2-private/js/module/tokens/base/size/size.js +1 -1
  52. package/tokens-v2-private/js/module/tokens/base/typography/typography.js +1 -1
  53. package/tokens-v2-private/js/module/tokens/functional/size/border.js +1 -1
  54. package/tokens-v2-private/js/module/tokens/functional/size/breakpoints.js +1 -1
  55. package/tokens-v2-private/js/module/tokens/functional/size/size-coarse.js +1 -1
  56. package/tokens-v2-private/js/module/tokens/functional/size/size-fine.js +1 -1
  57. package/tokens-v2-private/js/module/tokens/functional/size/size.js +1 -1
  58. package/tokens-v2-private/js/module/tokens/functional/size/viewport.js +1 -1
  59. package/tokens-v2-private/js/module/tokens/functional/typography/typography.js +1 -1
  60. package/tokens-v2-private/js/tokens/base/size/size.js +1 -1
  61. package/tokens-v2-private/js/tokens/base/typography/typography.js +1 -1
  62. package/tokens-v2-private/js/tokens/functional/size/border.js +1 -1
  63. package/tokens-v2-private/js/tokens/functional/size/breakpoints.js +1 -1
  64. package/tokens-v2-private/js/tokens/functional/size/size-coarse.js +1 -1
  65. package/tokens-v2-private/js/tokens/functional/size/size-fine.js +1 -1
  66. package/tokens-v2-private/js/tokens/functional/size/size.js +1 -1
  67. package/tokens-v2-private/js/tokens/functional/size/viewport.js +1 -1
  68. package/tokens-v2-private/js/tokens/functional/typography/typography.js +1 -1
  69. package/tokens-v2-private/scss/tokens/base/size/size.scss +1 -1
  70. package/tokens-v2-private/scss/tokens/base/typography/typography.scss +1 -1
  71. package/tokens-v2-private/scss/tokens/functional/size/border.scss +1 -1
  72. package/tokens-v2-private/scss/tokens/functional/size/breakpoints.scss +1 -1
  73. package/tokens-v2-private/scss/tokens/functional/size/size-coarse.scss +1 -1
  74. package/tokens-v2-private/scss/tokens/functional/size/size-fine.scss +1 -1
  75. package/tokens-v2-private/scss/tokens/functional/size/size.scss +1 -1
  76. package/tokens-v2-private/scss/tokens/functional/size/viewport.scss +1 -1
  77. package/tokens-v2-private/scss/tokens/functional/typography/typography.scss +1 -1
  78. package/tokens-v2-private/ts/tokens/base/size/size.d.ts +1 -1
  79. package/tokens-v2-private/ts/tokens/base/size/size.js +1 -1
  80. package/tokens-v2-private/ts/tokens/base/typography/typography.d.ts +1 -1
  81. package/tokens-v2-private/ts/tokens/base/typography/typography.js +1 -1
  82. package/tokens-v2-private/ts/tokens/functional/size/border.d.ts +1 -1
  83. package/tokens-v2-private/ts/tokens/functional/size/border.js +1 -1
  84. package/tokens-v2-private/ts/tokens/functional/size/breakpoints.d.ts +1 -1
  85. package/tokens-v2-private/ts/tokens/functional/size/breakpoints.js +1 -1
  86. package/tokens-v2-private/ts/tokens/functional/size/size-coarse.d.ts +1 -1
  87. package/tokens-v2-private/ts/tokens/functional/size/size-coarse.js +1 -1
  88. package/tokens-v2-private/ts/tokens/functional/size/size-fine.d.ts +1 -1
  89. package/tokens-v2-private/ts/tokens/functional/size/size-fine.js +1 -1
  90. package/tokens-v2-private/ts/tokens/functional/size/size.d.ts +1 -1
  91. package/tokens-v2-private/ts/tokens/functional/size/size.js +1 -1
  92. package/tokens-v2-private/ts/tokens/functional/size/viewport.d.ts +1 -1
  93. package/tokens-v2-private/ts/tokens/functional/size/viewport.js +1 -1
  94. package/tokens-v2-private/ts/tokens/functional/typography/typography.d.ts +1 -1
  95. 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.14",
3
+ "version": "7.11.15-rc.06a09d3",
4
4
  "description": "Typography, spacing, and color primitives for Primer design system",
5
5
  "files": [
6
6
  "dist",
@@ -36,8 +36,9 @@
36
36
  "format": "prettier --write '**/*.{js,jsx,ts,tsx,md,mdx,css}'",
37
37
  "format:check": "prettier --check '**/*.{js,jsx,ts,tsx,md,mdx,css}'",
38
38
  "install:storybook": "cd docs/storybook && npm ci --legacy-peer-deps --no-audit --no-fund",
39
- "lint": "eslint '**/*.{js,ts,tsx,md,mdx}' --max-warnings=0 --config .eslintrc.js",
39
+ "lint": "eslint '**/*.{js,ts,tsx,md,mdx}' --max-warnings=0 --config .eslintrc.js && npm run lint:tokens",
40
40
  "lint:fix": "eslint '**/*.{js,ts,tsx,md,mdx}' --fix --max-warnings=0 --config .eslintrc.js",
41
+ "lint:tokens": "ts-node ./scripts/validateTokenJson.ts",
41
42
  "prebuild": "rm -rf dist",
42
43
  "prebuild:tokens": "rm -rf tokens-v2-private",
43
44
  "prebuild:next": "rm -rf tokens-next-private",
@@ -54,6 +55,7 @@
54
55
  "@changesets/changelog-github": "^0.4.8",
55
56
  "@changesets/cli": "^2.22.0",
56
57
  "@github/prettier-config": "^0.0.6",
58
+ "@playwright/test": "^1.35.1",
57
59
  "@types/flat": "^5.0.1",
58
60
  "@types/jest": "^29.5.2",
59
61
  "@types/lodash": "^4.14.195",
@@ -87,6 +89,8 @@
87
89
  "ts-jest": "^29.1.1",
88
90
  "ts-node": "^10.9.1",
89
91
  "tsconfig-paths": "^4.2.0",
90
- "typescript": "^5.1.6"
92
+ "typescript": "^5.1.6",
93
+ "zod": "^3.21.4",
94
+ "zod-validation-error": "^1.3.1"
91
95
  }
92
96
  }
@@ -5,10 +5,10 @@
5
5
  --borderWidth-thin: max(1px, 0.0625rem);
6
6
  --borderWidth-thick: max(2px, 0.125rem);
7
7
  --borderWidth-thicker: max(4px, 0.25rem);
8
- --borderRadius-small: 3px;
9
- --borderRadius-medium: 6px;
10
- --borderRadius-large: 12px;
11
- --borderRadius-full: 9999px;
8
+ --borderRadius-small: 0.1875rem;
9
+ --borderRadius-medium: 0.375rem;
10
+ --borderRadius-large: 0.75rem;
11
+ --borderRadius-full: 624.9375rem;
12
12
  --outline-focus-offset: -0.125rem;
13
13
  --outline-focus-width: 0.125rem;
14
14
  }
@@ -3,33 +3,33 @@
3
3
  --control-minTarget-coarse: 2.75rem;
4
4
  --control-xsmall-size: 1.5rem;
5
5
  --control-xsmall-lineBoxHeight: 1.25rem;
6
- --control-xsmall-paddingBlock: calc((1.5rem - 1.25rem) / 2);
6
+ --control-xsmall-paddingBlock: 0.125rem;
7
7
  --control-xsmall-paddingInline-condensed: 0.25rem;
8
8
  --control-xsmall-paddingInline-normal: 0.5rem;
9
9
  --control-xsmall-paddingInline-spacious: 0.75rem;
10
10
  --control-xsmall-gap: 0.25rem;
11
11
  --control-small-size: 1.75rem;
12
12
  --control-small-lineBoxHeight: 1.25rem;
13
- --control-small-paddingBlock: calc((1.75rem - 1.25rem) / 2);
13
+ --control-small-paddingBlock: 0.25rem;
14
14
  --control-small-paddingInline-condensed: 0.5rem;
15
15
  --control-small-paddingInline-normal: 0.75rem;
16
16
  --control-small-gap: 0.25rem;
17
17
  --control-medium-size: 2rem;
18
18
  --control-medium-lineBoxHeight: 1.25rem;
19
- --control-medium-paddingBlock: calc((2rem - 1.25rem) / 2);
19
+ --control-medium-paddingBlock: 0.375rem;
20
20
  --control-medium-paddingInline-condensed: 0.5rem;
21
21
  --control-medium-paddingInline-normal: 0.75rem;
22
22
  --control-medium-paddingInline-spacious: 1rem;
23
23
  --control-medium-gap: 0.5rem;
24
24
  --control-large-size: 2.5rem;
25
25
  --control-large-lineBoxHeight: 1.25rem;
26
- --control-large-paddingBlock: calc((2.5rem - 1.25rem) / 2);
26
+ --control-large-paddingBlock: 0.625rem;
27
27
  --control-large-paddingInline-normal: 0.75rem;
28
28
  --control-large-paddingInline-spacious: 1rem;
29
29
  --control-large-gap: 0.5rem;
30
30
  --control-xlarge-size: 3rem;
31
31
  --control-xlarge-lineBoxHeight: 1.25rem;
32
- --control-xlarge-paddingBlock: calc((3rem - 1.25rem) / 2);
32
+ --control-xlarge-paddingBlock: 0.875rem;
33
33
  --control-xlarge-paddingInline-normal: 0.75rem;
34
34
  --control-xlarge-paddingInline-spacious: 1rem;
35
35
  --control-xlarge-gap: 0.5rem;
@@ -180,7 +180,7 @@
180
180
  --selectMenu-bgColor-active: #0c2d6b;
181
181
  --sideNav-bgColor-selected: #21262d;
182
182
  --timelineBadge-bgColor: #21262d;
183
- --treeViewItem-leadingVisual-bgColor-rest: #7d8590;
183
+ --treeViewItem-leadingVisual-iconColor-rest: #7d8590;
184
184
  --underlineNav-borderColor-active: #f78166;
185
185
  --underlineNav-borderColor-hover: #6e768166;
186
186
  --underlineNav-iconColor-rest: #7d8590;
@@ -581,7 +581,7 @@
581
581
  --selectMenu-bgColor-active: #0c2d6b;
582
582
  --sideNav-bgColor-selected: #21262d;
583
583
  --timelineBadge-bgColor: #21262d;
584
- --treeViewItem-leadingVisual-bgColor-rest: #7d8590;
584
+ --treeViewItem-leadingVisual-iconColor-rest: #7d8590;
585
585
  --underlineNav-borderColor-active: #f78166;
586
586
  --underlineNav-borderColor-hover: #6e768166;
587
587
  --underlineNav-iconColor-rest: #7d8590;
@@ -180,7 +180,7 @@
180
180
  --selectMenu-bgColor-active: #143d79;
181
181
  --sideNav-bgColor-selected: #373e47;
182
182
  --timelineBadge-bgColor: #373e47;
183
- --treeViewItem-leadingVisual-bgColor-rest: #6d7986;
183
+ --treeViewItem-leadingVisual-iconColor-rest: #6d7986;
184
184
  --underlineNav-borderColor-active: #ec775c;
185
185
  --underlineNav-borderColor-hover: #636e7b66;
186
186
  --underlineNav-iconColor-rest: #6d7986;
@@ -581,7 +581,7 @@
581
581
  --selectMenu-bgColor-active: #143d79;
582
582
  --sideNav-bgColor-selected: #373e47;
583
583
  --timelineBadge-bgColor: #373e47;
584
- --treeViewItem-leadingVisual-bgColor-rest: #6d7986;
584
+ --treeViewItem-leadingVisual-iconColor-rest: #6d7986;
585
585
  --underlineNav-borderColor-active: #ec775c;
586
586
  --underlineNav-borderColor-hover: #636e7b66;
587
587
  --underlineNav-iconColor-rest: #6d7986;
@@ -180,7 +180,7 @@
180
180
  --selectMenu-bgColor-active: #1e60d5;
181
181
  --sideNav-bgColor-selected: #272b33;
182
182
  --timelineBadge-bgColor: #272b33;
183
- --treeViewItem-leadingVisual-bgColor-rest: #f0f3f6;
183
+ --treeViewItem-leadingVisual-iconColor-rest: #f0f3f6;
184
184
  --underlineNav-borderColor-active: #ff967d;
185
185
  --underlineNav-borderColor-hover: #bdc4cc;
186
186
  --underlineNav-iconColor-rest: #f0f3f6;
@@ -581,7 +581,7 @@
581
581
  --selectMenu-bgColor-active: #1e60d5;
582
582
  --sideNav-bgColor-selected: #272b33;
583
583
  --timelineBadge-bgColor: #272b33;
584
- --treeViewItem-leadingVisual-bgColor-rest: #f0f3f6;
584
+ --treeViewItem-leadingVisual-iconColor-rest: #f0f3f6;
585
585
  --underlineNav-borderColor-active: #ff967d;
586
586
  --underlineNav-borderColor-hover: #bdc4cc;
587
587
  --underlineNav-iconColor-rest: #f0f3f6;
@@ -180,7 +180,7 @@
180
180
  --selectMenu-bgColor-active: #0c2d6b;
181
181
  --sideNav-bgColor-selected: #21262d;
182
182
  --timelineBadge-bgColor: #21262d;
183
- --treeViewItem-leadingVisual-bgColor-rest: #7d8590;
183
+ --treeViewItem-leadingVisual-iconColor-rest: #7d8590;
184
184
  --underlineNav-borderColor-active: #f78166;
185
185
  --underlineNav-borderColor-hover: #6e768166;
186
186
  --underlineNav-iconColor-rest: #7d8590;
@@ -581,7 +581,7 @@
581
581
  --selectMenu-bgColor-active: #0c2d6b;
582
582
  --sideNav-bgColor-selected: #21262d;
583
583
  --timelineBadge-bgColor: #21262d;
584
- --treeViewItem-leadingVisual-bgColor-rest: #7d8590;
584
+ --treeViewItem-leadingVisual-iconColor-rest: #7d8590;
585
585
  --underlineNav-borderColor-active: #f78166;
586
586
  --underlineNav-borderColor-hover: #6e768166;
587
587
  --underlineNav-iconColor-rest: #7d8590;
@@ -180,7 +180,7 @@
180
180
  --selectMenu-bgColor-active: #0c2d6b;
181
181
  --sideNav-bgColor-selected: #21262d;
182
182
  --timelineBadge-bgColor: #21262d;
183
- --treeViewItem-leadingVisual-bgColor-rest: #7d8590;
183
+ --treeViewItem-leadingVisual-iconColor-rest: #7d8590;
184
184
  --underlineNav-borderColor-active: #f78166;
185
185
  --underlineNav-borderColor-hover: #6e768166;
186
186
  --underlineNav-iconColor-rest: #7d8590;
@@ -581,7 +581,7 @@
581
581
  --selectMenu-bgColor-active: #0c2d6b;
582
582
  --sideNav-bgColor-selected: #21262d;
583
583
  --timelineBadge-bgColor: #21262d;
584
- --treeViewItem-leadingVisual-bgColor-rest: #7d8590;
584
+ --treeViewItem-leadingVisual-iconColor-rest: #7d8590;
585
585
  --underlineNav-borderColor-active: #f78166;
586
586
  --underlineNav-borderColor-hover: #6e768166;
587
587
  --underlineNav-iconColor-rest: #7d8590;
@@ -181,7 +181,7 @@
181
181
  --selectMenu-bgColor-active: #b6e3ff;
182
182
  --sideNav-bgColor-selected: #ffffff;
183
183
  --timelineBadge-bgColor: #eaeef2;
184
- --treeViewItem-leadingVisual-bgColor-rest: #54aeff;
184
+ --treeViewItem-leadingVisual-iconColor-rest: #54aeff;
185
185
  --underlineNav-borderColor-active: #fd8c73;
186
186
  --underlineNav-borderColor-hover: #afb8c133;
187
187
  --underlineNav-iconColor-rest: #636c76;
@@ -582,7 +582,7 @@
582
582
  --selectMenu-bgColor-active: #b6e3ff;
583
583
  --sideNav-bgColor-selected: #ffffff;
584
584
  --timelineBadge-bgColor: #eaeef2;
585
- --treeViewItem-leadingVisual-bgColor-rest: #54aeff;
585
+ --treeViewItem-leadingVisual-iconColor-rest: #54aeff;
586
586
  --underlineNav-borderColor-active: #fd8c73;
587
587
  --underlineNav-borderColor-hover: #afb8c133;
588
588
  --underlineNav-iconColor-rest: #636c76;
@@ -181,7 +181,7 @@
181
181
  --selectMenu-bgColor-active: #9cd7ff;
182
182
  --sideNav-bgColor-selected: #ffffff;
183
183
  --timelineBadge-bgColor: #e7ecf0;
184
- --treeViewItem-leadingVisual-bgColor-rest: #368cf9;
184
+ --treeViewItem-leadingVisual-iconColor-rest: #368cf9;
185
185
  --underlineNav-borderColor-active: #cd3425;
186
186
  --underlineNav-borderColor-hover: #88929d;
187
187
  --underlineNav-iconColor-rest: #0e1116;
@@ -582,7 +582,7 @@
582
582
  --selectMenu-bgColor-active: #9cd7ff;
583
583
  --sideNav-bgColor-selected: #ffffff;
584
584
  --timelineBadge-bgColor: #e7ecf0;
585
- --treeViewItem-leadingVisual-bgColor-rest: #368cf9;
585
+ --treeViewItem-leadingVisual-iconColor-rest: #368cf9;
586
586
  --underlineNav-borderColor-active: #cd3425;
587
587
  --underlineNav-borderColor-hover: #88929d;
588
588
  --underlineNav-iconColor-rest: #0e1116;
@@ -181,7 +181,7 @@
181
181
  --selectMenu-bgColor-active: #b6e3ff;
182
182
  --sideNav-bgColor-selected: #ffffff;
183
183
  --timelineBadge-bgColor: #eaeef2;
184
- --treeViewItem-leadingVisual-bgColor-rest: #54aeff;
184
+ --treeViewItem-leadingVisual-iconColor-rest: #54aeff;
185
185
  --underlineNav-borderColor-active: #fd8c73;
186
186
  --underlineNav-borderColor-hover: #afb8c133;
187
187
  --underlineNav-iconColor-rest: #636c76;
@@ -582,7 +582,7 @@
582
582
  --selectMenu-bgColor-active: #b6e3ff;
583
583
  --sideNav-bgColor-selected: #ffffff;
584
584
  --timelineBadge-bgColor: #eaeef2;
585
- --treeViewItem-leadingVisual-bgColor-rest: #54aeff;
585
+ --treeViewItem-leadingVisual-iconColor-rest: #54aeff;
586
586
  --underlineNav-borderColor-active: #fd8c73;
587
587
  --underlineNav-borderColor-hover: #afb8c133;
588
588
  --underlineNav-iconColor-rest: #636c76;
@@ -181,7 +181,7 @@
181
181
  --selectMenu-bgColor-active: #b6e3ff;
182
182
  --sideNav-bgColor-selected: #ffffff;
183
183
  --timelineBadge-bgColor: #eaeef2;
184
- --treeViewItem-leadingVisual-bgColor-rest: #54aeff;
184
+ --treeViewItem-leadingVisual-iconColor-rest: #54aeff;
185
185
  --underlineNav-borderColor-active: #fd8c73;
186
186
  --underlineNav-borderColor-hover: #afb8c133;
187
187
  --underlineNav-iconColor-rest: #636c76;
@@ -582,7 +582,7 @@
582
582
  --selectMenu-bgColor-active: #b6e3ff;
583
583
  --sideNav-bgColor-selected: #ffffff;
584
584
  --timelineBadge-bgColor: #eaeef2;
585
- --treeViewItem-leadingVisual-bgColor-rest: #54aeff;
585
+ --treeViewItem-leadingVisual-iconColor-rest: #54aeff;
586
586
  --underlineNav-borderColor-active: #fd8c73;
587
587
  --underlineNav-borderColor-hover: #afb8c133;
588
588
  --underlineNav-iconColor-rest: #636c76;
@@ -1,24 +1,24 @@
1
1
  :root {
2
2
  --text-codeInline-size: 0.9285em;
3
- --text-codeBlock-lineHeight: calc(20/13);
3
+ --text-codeBlock-lineHeight: 1.5385;
4
4
  --text-codeBlock-size: 0.8125rem;
5
- --text-caption-lineHeight: calc(16/12);
5
+ --text-caption-lineHeight: 1.3333;
6
6
  --text-caption-size: 0.75rem;
7
- --text-body-lineHeight-small: calc(20/12);
8
- --text-body-lineHeight-medium: calc(20/14);
9
- --text-body-lineHeight-large: calc(24/16);
7
+ --text-body-lineHeight-small: 1.6666;
8
+ --text-body-lineHeight-medium: 1.4285;
9
+ --text-body-lineHeight-large: 1.5;
10
10
  --text-body-size-small: 0.75rem;
11
11
  --text-body-size-medium: 0.875rem;
12
12
  --text-body-size-large: 1rem;
13
- --text-subtitle-lineHeight: calc(32/20);
13
+ --text-subtitle-lineHeight: 1.6;
14
14
  --text-subtitle-size: 1.25rem;
15
- --text-title-lineHeight-small: calc(24/16);
16
- --text-title-lineHeight-medium: calc(32/20);
17
- --text-title-lineHeight-large: calc(48/32);
15
+ --text-title-lineHeight-small: 1.5;
16
+ --text-title-lineHeight-medium: 1.6;
17
+ --text-title-lineHeight-large: 1.5;
18
18
  --text-title-size-small: 1rem;
19
19
  --text-title-size-medium: 1.25rem;
20
20
  --text-title-size-large: 2rem;
21
- --text-display-lineHeight: calc(56/40);
21
+ --text-display-lineHeight: 1.4;
22
22
  --text-display-size: 2.5rem;
23
23
  --text-display-lineBoxHeight: 3.5rem;
24
24
  --fontStack-monospace: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "base-text-weight-light": {
3
- "value": 300,
4
3
  "$type": "fontWeight",
4
+ "value": 300,
5
5
  "filePath": "src/tokens/base/typography/typography.json",
6
6
  "isSource": true,
7
7
  "original": {
8
- "value": 300,
9
- "$type": "fontWeight"
8
+ "$type": "fontWeight",
9
+ "value": 300
10
10
  },
11
11
  "name": "base-text-weight-light",
12
12
  "attributes": {},
@@ -2,11 +2,13 @@
2
2
  "boxShadow-thin": {
3
3
  "value": "inset 0 0 0 max(1px, 0.0625rem)",
4
4
  "comment": "Thin shadow for borders",
5
+ "$type": "string",
5
6
  "filePath": "src/tokens/functional/size/border.json",
6
7
  "isSource": true,
7
8
  "original": {
8
9
  "value": "inset 0 0 0 {borderWidth.thin}",
9
- "comment": "Thin shadow for borders"
10
+ "comment": "Thin shadow for borders",
11
+ "$type": "string"
10
12
  },
11
13
  "name": "boxShadow-thin",
12
14
  "attributes": {},
@@ -14,10 +16,12 @@
14
16
  },
15
17
  "boxShadow-thick": {
16
18
  "value": "inset 0 0 0 max(2px, 0.125rem)",
19
+ "$type": "string",
17
20
  "filePath": "src/tokens/functional/size/border.json",
18
21
  "isSource": true,
19
22
  "original": {
20
- "value": "inset 0 0 0 {borderWidth.thick}"
23
+ "value": "inset 0 0 0 {borderWidth.thick}",
24
+ "$type": "string"
21
25
  },
22
26
  "name": "boxShadow-thick",
23
27
  "attributes": {},
@@ -25,10 +29,12 @@
25
29
  },
26
30
  "boxShadow-thicker": {
27
31
  "value": "inset 0 0 0 max(4px, 0.25rem)",
32
+ "$type": "string",
28
33
  "filePath": "src/tokens/functional/size/border.json",
29
34
  "isSource": true,
30
35
  "original": {
31
- "value": "inset 0 0 0 {borderWidth.thicker}"
36
+ "value": "inset 0 0 0 {borderWidth.thicker}",
37
+ "$type": "string"
32
38
  },
33
39
  "name": "boxShadow-thicker",
34
40
  "attributes": {},
@@ -36,10 +42,12 @@
36
42
  },
37
43
  "borderWidth-thin": {
38
44
  "value": "max(1px, 0.0625rem)",
45
+ "$type": "string",
39
46
  "filePath": "src/tokens/functional/size/border.json",
40
47
  "isSource": true,
41
48
  "original": {
42
- "value": "max(1px, 0.0625rem)"
49
+ "value": "max(1px, 0.0625rem)",
50
+ "$type": "string"
43
51
  },
44
52
  "name": "borderWidth-thin",
45
53
  "attributes": {},
@@ -47,10 +55,12 @@
47
55
  },
48
56
  "borderWidth-thick": {
49
57
  "value": "max(2px, 0.125rem)",
58
+ "$type": "string",
50
59
  "filePath": "src/tokens/functional/size/border.json",
51
60
  "isSource": true,
52
61
  "original": {
53
- "value": "max(2px, 0.125rem)"
62
+ "value": "max(2px, 0.125rem)",
63
+ "$type": "string"
54
64
  },
55
65
  "name": "borderWidth-thick",
56
66
  "attributes": {},
@@ -58,54 +68,64 @@
58
68
  },
59
69
  "borderWidth-thicker": {
60
70
  "value": "max(4px, 0.25rem)",
71
+ "$type": "string",
61
72
  "filePath": "src/tokens/functional/size/border.json",
62
73
  "isSource": true,
63
74
  "original": {
64
- "value": "max(4px, 0.25rem)"
75
+ "value": "max(4px, 0.25rem)",
76
+ "$type": "string"
65
77
  },
66
78
  "name": "borderWidth-thicker",
67
79
  "attributes": {},
68
80
  "path": ["borderWidth", "thicker"]
69
81
  },
70
82
  "borderRadius-small": {
71
- "value": "3px",
83
+ "value": "0.1875rem",
84
+ "$type": "dimension",
72
85
  "filePath": "src/tokens/functional/size/border.json",
73
86
  "isSource": true,
74
87
  "original": {
75
- "value": "3px"
88
+ "value": "3px",
89
+ "$type": "dimension"
76
90
  },
77
91
  "name": "borderRadius-small",
78
92
  "attributes": {},
79
93
  "path": ["borderRadius", "small"]
80
94
  },
81
95
  "borderRadius-medium": {
82
- "value": "6px",
96
+ "value": "0.375rem",
97
+ "$type": "dimension",
83
98
  "filePath": "src/tokens/functional/size/border.json",
84
99
  "isSource": true,
85
100
  "original": {
86
- "value": "6px"
101
+ "value": "6px",
102
+ "$type": "dimension"
87
103
  },
88
104
  "name": "borderRadius-medium",
89
105
  "attributes": {},
90
106
  "path": ["borderRadius", "medium"]
91
107
  },
92
108
  "borderRadius-large": {
93
- "value": "12px",
109
+ "value": "0.75rem",
110
+ "$type": "dimension",
94
111
  "filePath": "src/tokens/functional/size/border.json",
95
112
  "isSource": true,
96
113
  "original": {
97
- "value": "12px"
114
+ "value": "12px",
115
+ "$type": "dimension"
98
116
  },
99
117
  "name": "borderRadius-large",
100
118
  "attributes": {},
101
119
  "path": ["borderRadius", "large"]
102
120
  },
103
121
  "borderRadius-full": {
104
- "value": "9999px",
122
+ "value": "624.9375rem",
123
+ "$type": "dimension",
105
124
  "filePath": "src/tokens/functional/size/border.json",
106
125
  "isSource": true,
107
126
  "original": {
108
- "value": "9999px"
127
+ "value": "9999px",
128
+ "$type": "dimension"
109
129
  },
110
130
  "name": "borderRadius-full",
111
131
  "attributes": {},
@@ -52,11 +52,13 @@
52
52
  "path": ["control", "xsmall", "lineBoxHeight"]
53
53
  },
54
54
  "control-xsmall-paddingBlock": {
55
- "value": "calc((1.5rem - 1.25rem) / 2)",
55
+ "value": "0.125rem",
56
+ "$type": "dimension",
56
57
  "filePath": "src/tokens/functional/size/size.json",
57
58
  "isSource": true,
58
59
  "original": {
59
- "value": "calc(({control.xsmall.size} - {control.xsmall.lineBoxHeight}) / 2)"
60
+ "value": "2px",
61
+ "$type": "dimension"
60
62
  },
61
63
  "name": "control-xsmall-paddingBlock",
62
64
  "attributes": {},
@@ -141,11 +143,13 @@
141
143
  "path": ["control", "small", "lineBoxHeight"]
142
144
  },
143
145
  "control-small-paddingBlock": {
144
- "value": "calc((1.75rem - 1.25rem) / 2)",
146
+ "value": "0.25rem",
147
+ "$type": "dimension",
145
148
  "filePath": "src/tokens/functional/size/size.json",
146
149
  "isSource": true,
147
150
  "original": {
148
- "value": "calc(({control.small.size} - {control.small.lineBoxHeight}) / 2)"
151
+ "value": "{base.size.4}",
152
+ "$type": "dimension"
149
153
  },
150
154
  "name": "control-small-paddingBlock",
151
155
  "attributes": {},
@@ -217,11 +221,13 @@
217
221
  "path": ["control", "medium", "lineBoxHeight"]
218
222
  },
219
223
  "control-medium-paddingBlock": {
220
- "value": "calc((2rem - 1.25rem) / 2)",
224
+ "value": "0.375rem",
225
+ "$type": "dimension",
221
226
  "filePath": "src/tokens/functional/size/size.json",
222
227
  "isSource": true,
223
228
  "original": {
224
- "value": "calc(({control.medium.size} - {control.medium.lineBoxHeight}) / 2)"
229
+ "value": "6px",
230
+ "$type": "dimension"
225
231
  },
226
232
  "name": "control-medium-paddingBlock",
227
233
  "attributes": {},
@@ -306,11 +312,13 @@
306
312
  "path": ["control", "large", "lineBoxHeight"]
307
313
  },
308
314
  "control-large-paddingBlock": {
309
- "value": "calc((2.5rem - 1.25rem) / 2)",
315
+ "value": "0.625rem",
316
+ "$type": "dimension",
310
317
  "filePath": "src/tokens/functional/size/size.json",
311
318
  "isSource": true,
312
319
  "original": {
313
- "value": "calc(({control.large.size} - {control.large.lineBoxHeight}) / 2)"
320
+ "value": "10px",
321
+ "$type": "dimension"
314
322
  },
315
323
  "name": "control-large-paddingBlock",
316
324
  "attributes": {},
@@ -382,11 +390,13 @@
382
390
  "path": ["control", "xlarge", "lineBoxHeight"]
383
391
  },
384
392
  "control-xlarge-paddingBlock": {
385
- "value": "calc((3rem - 1.25rem) / 2)",
393
+ "value": "0.875rem",
394
+ "$type": "dimension",
386
395
  "filePath": "src/tokens/functional/size/size.json",
387
396
  "isSource": true,
388
397
  "original": {
389
- "value": "calc(({control.xlarge.size} - {control.xlarge.lineBoxHeight}) / 2)"
398
+ "value": "14px",
399
+ "$type": "dimension"
390
400
  },
391
401
  "name": "control-xlarge-paddingBlock",
392
402
  "attributes": {},
@@ -1537,7 +1537,7 @@
1537
1537
  "original": {
1538
1538
  "value": [
1539
1539
  {
1540
- "color": "transparent",
1540
+ "color": "{base.color.transparent}",
1541
1541
  "alpha": 0,
1542
1542
  "offsetX": "0px",
1543
1543
  "offsetY": "0px",
@@ -1559,7 +1559,7 @@
1559
1559
  "isSource": true,
1560
1560
  "original": {
1561
1561
  "value": {
1562
- "color": "transparent",
1562
+ "color": "{base.color.transparent}",
1563
1563
  "alpha": 0,
1564
1564
  "offsetX": "0px",
1565
1565
  "offsetY": "0px",
@@ -1733,7 +1733,7 @@
1733
1733
  "original": {
1734
1734
  "value": [
1735
1735
  {
1736
- "color": "transparent",
1736
+ "color": "{base.color.transparent}",
1737
1737
  "alpha": 0,
1738
1738
  "offsetX": "0px",
1739
1739
  "offsetY": "0px",
@@ -2018,7 +2018,7 @@
2018
2018
  "original": {
2019
2019
  "value": [
2020
2020
  {
2021
- "color": "transparent",
2021
+ "color": "{base.color.transparent}",
2022
2022
  "alpha": 0,
2023
2023
  "offsetX": "0px",
2024
2024
  "offsetY": "0px",
@@ -2220,7 +2220,7 @@
2220
2220
  "original": {
2221
2221
  "value": [
2222
2222
  {
2223
- "color": "transparent",
2223
+ "color": "{base.color.transparent}",
2224
2224
  "alpha": 0,
2225
2225
  "offsetX": "0px",
2226
2226
  "offsetY": "0px",
@@ -2556,7 +2556,7 @@
2556
2556
  "attributes": {},
2557
2557
  "path": ["timelineBadge", "bgColor"]
2558
2558
  },
2559
- "treeViewItem-leadingVisual-bgColor-rest": {
2559
+ "treeViewItem-leadingVisual-iconColor-rest": {
2560
2560
  "value": "#7d8590",
2561
2561
  "$type": "color",
2562
2562
  "filePath": "src/tokens/functional/color/dark/patterns-dark.json5",
@@ -2565,9 +2565,9 @@
2565
2565
  "value": "{fgColor.muted}",
2566
2566
  "$type": "color"
2567
2567
  },
2568
- "name": "treeViewItem-leadingVisual-bgColor-rest",
2568
+ "name": "treeViewItem-leadingVisual-iconColor-rest",
2569
2569
  "attributes": {},
2570
- "path": ["treeViewItem", "leadingVisual", "bgColor", "rest"]
2570
+ "path": ["treeViewItem", "leadingVisual", "iconColor", "rest"]
2571
2571
  },
2572
2572
  "underlineNav-borderColor-active": {
2573
2573
  "value": "#f78166",
@@ -5520,7 +5520,7 @@
5520
5520
  "original": {
5521
5521
  "value": [
5522
5522
  {
5523
- "color": "transparent",
5523
+ "color": "{base.color.transparent}",
5524
5524
  "alpha": 0,
5525
5525
  "offsetX": "0px",
5526
5526
  "offsetY": "0px",
@@ -5542,7 +5542,7 @@
5542
5542
  "isSource": true,
5543
5543
  "original": {
5544
5544
  "value": {
5545
- "color": "transparent",
5545
+ "color": "{base.color.transparent}",
5546
5546
  "alpha": 0,
5547
5547
  "offsetX": "0px",
5548
5548
  "offsetY": "0px",
@@ -5587,7 +5587,7 @@
5587
5587
  "original": {
5588
5588
  "value": [
5589
5589
  {
5590
- "color": "transparent",
5590
+ "color": "{base.color.transparent}",
5591
5591
  "alpha": 0,
5592
5592
  "offsetX": "0px",
5593
5593
  "offsetY": "0px",