@primer/primitives 7.17.0-rc.132f02a7 → 7.17.0-rc.34cd1021

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 (162) 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 +223 -78
  14. package/dist/docs/functional/themes/dark-dimmed.json +218 -73
  15. package/dist/docs/functional/themes/dark-high-contrast.json +220 -75
  16. package/dist/docs/functional/themes/dark-tritanopia.json +223 -78
  17. package/dist/docs/functional/themes/dark.json +218 -73
  18. package/dist/docs/functional/themes/light-colorblind.json +221 -76
  19. package/dist/docs/functional/themes/light-high-contrast.json +215 -70
  20. package/dist/docs/functional/themes/light-tritanopia.json +221 -76
  21. package/dist/docs/functional/themes/light.json +216 -71
  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/scales/dark-dimmed.json +20 -20
  26. package/dist/figma/scales/dark-high-constrast.json +20 -20
  27. package/dist/figma/scales/dark.json +20 -20
  28. package/dist/figma/scales/light-high-constrast.json +20 -20
  29. package/dist/figma/scales/light.json +20 -20
  30. package/dist/figma/themes/dark-colorblind.json +150 -70
  31. package/dist/figma/themes/dark-dimmed.json +145 -65
  32. package/dist/figma/themes/dark-high-contrast.json +149 -69
  33. package/dist/figma/themes/dark-tritanopia.json +150 -70
  34. package/dist/figma/themes/dark.json +145 -65
  35. package/dist/figma/themes/light-colorblind.json +139 -59
  36. package/dist/figma/themes/light-high-contrast.json +135 -55
  37. package/dist/figma/themes/light-tritanopia.json +139 -59
  38. package/dist/figma/themes/light.json +134 -54
  39. package/dist/figma/typography/typography.json +370 -0
  40. package/dist/internalCss/dark-colorblind.css +30 -20
  41. package/dist/internalCss/dark-dimmed.css +30 -20
  42. package/dist/internalCss/dark-high-contrast.css +30 -20
  43. package/dist/internalCss/dark-tritanopia.css +30 -20
  44. package/dist/internalCss/dark.css +30 -20
  45. package/dist/internalCss/light-colorblind.css +30 -20
  46. package/dist/internalCss/light-high-contrast.css +30 -20
  47. package/dist/internalCss/light-tritanopia.css +30 -20
  48. package/dist/internalCss/light.css +30 -20
  49. package/dist/styleLint/base/typography/typography.json +52 -4
  50. package/dist/styleLint/functional/themes/dark-colorblind.json +223 -78
  51. package/dist/styleLint/functional/themes/dark-dimmed.json +218 -73
  52. package/dist/styleLint/functional/themes/dark-high-contrast.json +220 -75
  53. package/dist/styleLint/functional/themes/dark-tritanopia.json +223 -78
  54. package/dist/styleLint/functional/themes/dark.json +218 -73
  55. package/dist/styleLint/functional/themes/light-colorblind.json +221 -76
  56. package/dist/styleLint/functional/themes/light-high-contrast.json +215 -70
  57. package/dist/styleLint/functional/themes/light-tritanopia.json +221 -76
  58. package/dist/styleLint/functional/themes/light.json +216 -71
  59. package/dist/styleLint/functional/typography/typography.json +494 -36
  60. package/package.json +4 -11
  61. package/src/PrimerStyleDictionary.ts +12 -0
  62. package/src/filters/index.ts +1 -0
  63. package/src/filters/isNumber.ts +8 -0
  64. package/src/formats/jsonFigma.ts +1 -0
  65. package/src/platforms/figma.ts +10 -1
  66. package/src/schemas/numberToken.ts +17 -0
  67. package/src/tokens/base/color/dark/dark.dimmed.json5 +1 -1
  68. package/src/tokens/base/color/dark/dark.high-contrast.json5 +1 -1
  69. package/src/tokens/base/color/dark/dark.json5 +1 -1
  70. package/src/tokens/base/color/light/light.high-contrast.json5 +1 -1
  71. package/src/tokens/base/color/light/light.json5 +1 -1
  72. package/src/tokens/base/typography/typography.json +28 -4
  73. package/src/tokens/functional/color/dark/app-dark.json5 +5 -5
  74. package/src/tokens/functional/color/dark/display-dark.json5 +66 -0
  75. package/src/tokens/functional/color/dark/overrides/dark.high-contrast.json5 +17 -17
  76. package/src/tokens/functional/color/dark/overrides/dark.protanopia-deuteranopia.json5 +5 -5
  77. package/src/tokens/functional/color/dark/overrides/dark.tritanopia.json5 +5 -5
  78. package/src/tokens/functional/color/dark/patterns-dark.json5 +42 -42
  79. package/src/tokens/functional/color/dark/primitives-dark.json5 +16 -16
  80. package/src/tokens/functional/color/dark/syntax-dark.json5 +13 -13
  81. package/src/tokens/functional/color/light/app-light.json5 +5 -5
  82. package/src/tokens/functional/color/light/display-light.json5 +66 -0
  83. package/src/tokens/functional/color/light/overrides/light.high-contrast.json5 +25 -25
  84. package/src/tokens/functional/color/light/overrides/light.protanopia-deuteranopia.json5 +5 -5
  85. package/src/tokens/functional/color/light/overrides/light.tritanopia.json5 +5 -5
  86. package/src/tokens/functional/color/light/patterns-light.json5 +30 -30
  87. package/src/tokens/functional/color/light/primitives-light.json5 +15 -15
  88. package/src/tokens/functional/color/light/syntax-light.json5 +14 -14
  89. package/src/tokens/functional/shadow/dark.json5 +1 -1
  90. package/src/tokens/functional/shadow/light.json5 +11 -11
  91. package/src/tokens/functional/typography/typography.json +263 -34
  92. package/src/transformers/floatToPixel.ts +33 -0
  93. package/src/transformers/fontFamilyToCss.ts +3 -4
  94. package/src/transformers/fontFamilyToFigma.ts +47 -0
  95. package/src/transformers/index.ts +2 -0
  96. package/src/transformers/utilities/hasSpaceInString.ts +6 -0
  97. package/build.js +0 -578
  98. package/tokens/base/size/size.json +0 -57
  99. package/tokens/base/typography/typography.json +0 -20
  100. package/tokens/functional/size/border.json +0 -48
  101. package/tokens/functional/size/breakpoints.json +0 -24
  102. package/tokens/functional/size/size-coarse.json +0 -27
  103. package/tokens/functional/size/size-fine.json +0 -27
  104. package/tokens/functional/size/size.json +0 -189
  105. package/tokens/functional/size/viewport.json +0 -24
  106. package/tokens/functional/typography/typography.json +0 -213
  107. package/tokens/removed/color.json +0 -421
  108. package/tokens-v2-private/css/tokens/base/size/size.css +0 -24
  109. package/tokens-v2-private/css/tokens/base/typography/typography.css +0 -11
  110. package/tokens-v2-private/css/tokens/functional/size/border.css +0 -17
  111. package/tokens-v2-private/css/tokens/functional/size/breakpoints.css +0 -13
  112. package/tokens-v2-private/css/tokens/functional/size/size-coarse.css +0 -11
  113. package/tokens-v2-private/css/tokens/functional/size/size-fine.css +0 -11
  114. package/tokens-v2-private/css/tokens/functional/size/size.css +0 -54
  115. package/tokens-v2-private/css/tokens/functional/size/viewport.css +0 -6
  116. package/tokens-v2-private/css/tokens/functional/typography/typography.css +0 -47
  117. package/tokens-v2-private/docs/docValues.json +0 -2209
  118. package/tokens-v2-private/js/module/tokens/base/size/size.js +0 -266
  119. package/tokens-v2-private/js/module/tokens/base/typography/typography.js +0 -77
  120. package/tokens-v2-private/js/module/tokens/functional/size/border.js +0 -165
  121. package/tokens-v2-private/js/module/tokens/functional/size/breakpoints.js +0 -101
  122. package/tokens-v2-private/js/module/tokens/functional/size/size-coarse.js +0 -73
  123. package/tokens-v2-private/js/module/tokens/functional/size/size-fine.js +0 -73
  124. package/tokens-v2-private/js/module/tokens/functional/size/size.js +0 -824
  125. package/tokens-v2-private/js/module/tokens/functional/size/viewport.js +0 -101
  126. package/tokens-v2-private/js/module/tokens/functional/typography/typography.js +0 -809
  127. package/tokens-v2-private/js/tokens/base/size/size.js +0 -22
  128. package/tokens-v2-private/js/tokens/base/typography/typography.js +0 -9
  129. package/tokens-v2-private/js/tokens/functional/size/border.js +0 -15
  130. package/tokens-v2-private/js/tokens/functional/size/breakpoints.js +0 -11
  131. package/tokens-v2-private/js/tokens/functional/size/size-coarse.js +0 -8
  132. package/tokens-v2-private/js/tokens/functional/size/size-fine.js +0 -8
  133. package/tokens-v2-private/js/tokens/functional/size/size.js +0 -52
  134. package/tokens-v2-private/js/tokens/functional/size/viewport.js +0 -11
  135. package/tokens-v2-private/js/tokens/functional/typography/typography.js +0 -45
  136. package/tokens-v2-private/scss/tokens/base/size/size.scss +0 -21
  137. package/tokens-v2-private/scss/tokens/base/typography/typography.scss +0 -8
  138. package/tokens-v2-private/scss/tokens/functional/size/border.scss +0 -14
  139. package/tokens-v2-private/scss/tokens/functional/size/breakpoints.scss +0 -10
  140. package/tokens-v2-private/scss/tokens/functional/size/size-coarse.scss +0 -7
  141. package/tokens-v2-private/scss/tokens/functional/size/size-fine.scss +0 -7
  142. package/tokens-v2-private/scss/tokens/functional/size/size.scss +0 -51
  143. package/tokens-v2-private/scss/tokens/functional/size/viewport.scss +0 -10
  144. package/tokens-v2-private/scss/tokens/functional/typography/typography.scss +0 -44
  145. package/tokens-v2-private/ts/tokens/base/size/size.d.ts +0 -31
  146. package/tokens-v2-private/ts/tokens/base/size/size.js +0 -30
  147. package/tokens-v2-private/ts/tokens/base/typography/typography.d.ts +0 -20
  148. package/tokens-v2-private/ts/tokens/base/typography/typography.js +0 -19
  149. package/tokens-v2-private/ts/tokens/functional/size/border.d.ts +0 -28
  150. package/tokens-v2-private/ts/tokens/functional/size/border.js +0 -27
  151. package/tokens-v2-private/ts/tokens/functional/size/breakpoints.d.ts +0 -20
  152. package/tokens-v2-private/ts/tokens/functional/size/breakpoints.js +0 -19
  153. package/tokens-v2-private/ts/tokens/functional/size/size-coarse.d.ts +0 -29
  154. package/tokens-v2-private/ts/tokens/functional/size/size-coarse.js +0 -28
  155. package/tokens-v2-private/ts/tokens/functional/size/size-fine.d.ts +0 -29
  156. package/tokens-v2-private/ts/tokens/functional/size/size-fine.js +0 -28
  157. package/tokens-v2-private/ts/tokens/functional/size/size.d.ts +0 -103
  158. package/tokens-v2-private/ts/tokens/functional/size/size.js +0 -102
  159. package/tokens-v2-private/ts/tokens/functional/size/viewport.d.ts +0 -20
  160. package/tokens-v2-private/ts/tokens/functional/size/viewport.js +0 -19
  161. package/tokens-v2-private/ts/tokens/functional/typography/typography.d.ts +0 -131
  162. package/tokens-v2-private/ts/tokens/functional/typography/typography.js +0 -130
package/package.json CHANGED
@@ -1,12 +1,9 @@
1
1
  {
2
2
  "name": "@primer/primitives",
3
- "version": "7.17.0-rc.132f02a7",
3
+ "version": "7.17.0-rc.34cd1021",
4
4
  "description": "Typography, spacing, and color primitives for Primer design system",
5
5
  "files": [
6
6
  "dist",
7
- "tokens-v2-private",
8
- "build.js",
9
- "tokens/",
10
7
  "src/**/*",
11
8
  "!src/**/*.test.ts"
12
9
  ],
@@ -33,8 +30,6 @@
33
30
  "build:v8": "ts-node ./scripts/buildTokens.ts",
34
31
  "build:fallbacks": "ts-node ./scripts/buildFallbacks.ts",
35
32
  "build:figma": "ts-node scripts/buildFigma.ts",
36
- "build:tokens": "node -e \"require('./build')._init()\"",
37
- "build:new-tokens": "npm run build:tokens && npm run build:next && npm run build:figma",
38
33
  "tokenJson:check": "ts-node scripts/diffThemes.ts && ts-node scripts/diffTokenProps.ts",
39
34
  "contrast:check": "ts-node scripts/color-contrast.ts",
40
35
  "format": "prettier --write '**/*.{js,jsx,ts,tsx,md,mdx,css}'",
@@ -44,14 +39,12 @@
44
39
  "lint:fix": "eslint '**/*.{js,ts,tsx,md,mdx}' --fix --max-warnings=0 --config .eslintrc.js",
45
40
  "lint:tokens": "ts-node ./scripts/validateTokenJson.ts",
46
41
  "prebuild": "rm -rf dist",
47
- "prebuild:tokens": "rm -rf tokens-v2-private",
48
42
  "prebuild:next": "rm -rf dist",
49
- "prepack": "npm run build && npm run build:tokens && npm run build:next",
43
+ "prepack": "npm run build && npm run build:next",
50
44
  "prepare": "husky",
51
45
  "release": "changeset publish",
52
- "start:storybook": "npm run build:next && cd docs/storybook && npm run storybook",
53
- "test": "jest --verbose --coverage",
54
- "watch": "ls data/**/*.scss scripts/**/*.ts | entr -s 'npm run build'"
46
+ "start:storybook": "npm run build && npm run build:next && cd docs/storybook && npm run storybook",
47
+ "test": "jest --verbose --coverage"
55
48
  },
56
49
  "prettier": "@github/prettier-config",
57
50
  "devDependencies": {
@@ -12,6 +12,7 @@ import {
12
12
  durationToCss,
13
13
  figmaAttributes,
14
14
  fontFamilyToCss,
15
+ fontFamilyToFigma,
15
16
  fontWeightToNumber,
16
17
  jsonDeprecated,
17
18
  namePathToDotNotation,
@@ -22,6 +23,7 @@ import {
22
23
  shadowToCss,
23
24
  typographyToCss,
24
25
  dimensionToRemPxArray,
26
+ floatToPixel,
25
27
  } from './transformers'
26
28
  import {
27
29
  javascriptCommonJs,
@@ -131,6 +133,11 @@ StyleDictionary.registerTransform({
131
133
  ...colorToHex,
132
134
  })
133
135
 
136
+ StyleDictionary.registerTransform({
137
+ name: 'float/pixel',
138
+ ...floatToPixel,
139
+ })
140
+
134
141
  StyleDictionary.registerTransform({
135
142
  name: 'dimension/rem',
136
143
  ...dimensionToRem,
@@ -216,6 +223,11 @@ StyleDictionary.registerTransform({
216
223
  ...fontFamilyToCss,
217
224
  })
218
225
 
226
+ StyleDictionary.registerTransform({
227
+ name: 'fontFamily/figma',
228
+ ...fontFamilyToFigma,
229
+ })
230
+
219
231
  /**
220
232
  * @name {@link PrimerStyleDictionary}
221
233
  * @description Returns style dictionary object with primer preset that includes parsers, formats and transformers
@@ -7,6 +7,7 @@ export {isDeprecated} from './isDeprecated'
7
7
  export {isFromFile} from './isFromFile'
8
8
  export {isFontFamily} from './isFontFamily'
9
9
  export {isFontWeight} from './isFontWeight'
10
+ export {isNumber} from './isNumber'
10
11
  export {isShadow} from './isShadow'
11
12
  export {isSource} from './isSource'
12
13
  export {isTypography} from './isTypography'
@@ -0,0 +1,8 @@
1
+ import type StyleDictionary from 'style-dictionary'
2
+
3
+ /**
4
+ * @description Checks if token type is a number
5
+ * @param token [StyleDictionary.TransformedToken](https://github.com/amzn/style-dictionary/blob/main/types/TransformedToken.d.ts)
6
+ * @returns boolean
7
+ */
8
+ export const isNumber = (token: StyleDictionary.TransformedToken): boolean => token.$type === 'number'
@@ -28,6 +28,7 @@ const getFigmaType = (type: string): string => {
28
28
  color: 'COLOR',
29
29
  dimension: 'FLOAT',
30
30
  fontWeight: 'FLOAT',
31
+ number: 'FLOAT',
31
32
  fontFamily: 'STRING',
32
33
  }
33
34
  if (type in validTypes) return validTypes[type as keyof typeof validTypes]
@@ -3,9 +3,11 @@ import type {PlatformInitializer} from '../types/PlatformInitializer'
3
3
  import {isSource} from '../filters'
4
4
 
5
5
  const validFigmaToken = (token: StyleDictionary.TransformedToken) => {
6
- const validTypes = ['color', 'dimension', 'shadow', 'fontWeight', 'fontFamily']
6
+ const validTypes = ['color', 'dimension', 'shadow', 'fontWeight', 'fontFamily', 'number']
7
7
  // is a siource token, not an included one
8
8
  if (!isSource(token)) return false
9
+
10
+ if (`${token.value}`.substring(token.value.length - 2) === 'em') return false
9
11
  // has a collection attribute
10
12
  if (
11
13
  !('$extensions' in token) ||
@@ -25,6 +27,8 @@ export const figma: PlatformInitializer = (outputFile, prefix, buildPath, option
25
27
  'name/pathToFigma',
26
28
  // 'name/pathToSlashNotation',
27
29
  'figma/attributes',
30
+ 'fontFamily/figma',
31
+ 'float/pixel',
28
32
  'dimension/pixelUnitless',
29
33
  // 'border/figma',
30
34
  // 'typography/figma',
@@ -32,6 +36,11 @@ export const figma: PlatformInitializer = (outputFile, prefix, buildPath, option
32
36
  ],
33
37
  options: {
34
38
  basePxFontSize: 16,
39
+ fontFamilies: {
40
+ 'fontStack/system': 'SF Pro Text',
41
+ 'fontStack/sansSerif': 'SF Pro Text',
42
+ 'fontStack/monospace': 'SF Mono',
43
+ },
35
44
  ...options,
36
45
  },
37
46
  files: [
@@ -2,10 +2,27 @@ import {z} from 'zod'
2
2
  import {baseToken} from './baseToken'
3
3
  import {referenceValue} from './referenceValue'
4
4
  import {tokenType} from './tokenType'
5
+ import {scopes} from './scopes'
6
+ import {collection} from './collections'
5
7
 
6
8
  export const numberToken = baseToken
7
9
  .extend({
8
10
  $value: z.union([z.number(), referenceValue]),
9
11
  $type: tokenType('number'),
12
+ $extensions: z
13
+ .object({
14
+ 'org.primer.data': z
15
+ .object({
16
+ fontSize: z.number().optional(),
17
+ })
18
+ .optional(),
19
+ 'org.primer.figma': z
20
+ .object({
21
+ collection: collection(['typography']).optional(),
22
+ scopes: scopes(['all']).optional(),
23
+ })
24
+ .optional(),
25
+ })
26
+ .optional(),
10
27
  })
11
28
  .strict()
@@ -43,7 +43,7 @@
43
43
  },
44
44
  },
45
45
  },
46
- gray: {
46
+ neutral: {
47
47
  '0': {
48
48
  $value: '#cdd9e5',
49
49
  $type: 'color',
@@ -23,7 +23,7 @@
23
23
  },
24
24
  },
25
25
  },
26
- gray: {
26
+ neutral: {
27
27
  '0': {
28
28
  $value: '#ffffff',
29
29
  $type: 'color',
@@ -33,7 +33,7 @@
33
33
  },
34
34
  alpha: 0,
35
35
  },
36
- gray: {
36
+ neutral: {
37
37
  '0': {
38
38
  $value: '#f0f6fc',
39
39
  $type: 'color',
@@ -14,7 +14,7 @@
14
14
  },
15
15
  },
16
16
  },
17
- gray: {
17
+ neutral: {
18
18
  '0': {
19
19
  $value: '#ffffff',
20
20
  $type: 'color',
@@ -33,7 +33,7 @@
33
33
  },
34
34
  },
35
35
  },
36
- gray: {
36
+ neutral: {
37
37
  '0': {
38
38
  $value: '#f6f8fa',
39
39
  $type: 'color',
@@ -4,19 +4,43 @@
4
4
  "weight": {
5
5
  "light": {
6
6
  "$type": "fontWeight",
7
- "$value": 300
7
+ "$value": 300,
8
+ "$extensions": {
9
+ "org.primer.figma": {
10
+ "collection": "base/typography",
11
+ "scopes": ["all"]
12
+ }
13
+ }
8
14
  },
9
15
  "normal": {
10
16
  "$value": 400,
11
- "$type": "fontWeight"
17
+ "$type": "fontWeight",
18
+ "$extensions": {
19
+ "org.primer.figma": {
20
+ "collection": "base/typography",
21
+ "scopes": ["all"]
22
+ }
23
+ }
12
24
  },
13
25
  "medium": {
14
26
  "$value": 500,
15
- "$type": "fontWeight"
27
+ "$type": "fontWeight",
28
+ "$extensions": {
29
+ "org.primer.figma": {
30
+ "collection": "base/typography",
31
+ "scopes": ["all"]
32
+ }
33
+ }
16
34
  },
17
35
  "semibold": {
18
36
  "$value": 600,
19
- "$type": "fontWeight"
37
+ "$type": "fontWeight",
38
+ "$extensions": {
39
+ "org.primer.figma": {
40
+ "collection": "base/typography",
41
+ "scopes": ["all"]
42
+ }
43
+ }
20
44
  }
21
45
  }
22
46
  }
@@ -372,7 +372,7 @@
372
372
  syntax: {
373
373
  fgColor: {
374
374
  comment: {
375
- $value: '{base.color.gray.3}',
375
+ $value: '{base.color.neutral.3}',
376
376
  $type: 'color',
377
377
  $extensions: {
378
378
  'org.primer.figma': {
@@ -499,7 +499,7 @@
499
499
  },
500
500
  },
501
501
  bgColor: {
502
- $value: '{base.color.gray.9}',
502
+ $value: '{base.color.neutral.9}',
503
503
  $type: 'color',
504
504
  $extensions: {
505
505
  'org.primer.figma': {
@@ -512,7 +512,7 @@
512
512
  },
513
513
  borderColor: {
514
514
  divider: {
515
- $value: '{base.color.gray.3}',
515
+ $value: '{base.color.neutral.3}',
516
516
  $type: 'color',
517
517
  $extensions: {
518
518
  'org.primer.figma': {
@@ -527,7 +527,7 @@
527
527
  },
528
528
  headerSearch: {
529
529
  bgColor: {
530
- $value: '{base.color.gray.9}',
530
+ $value: '{base.color.neutral.9}',
531
531
  $type: 'color',
532
532
  $extensions: {
533
533
  'org.primer.figma': {
@@ -539,7 +539,7 @@
539
539
  },
540
540
  },
541
541
  borderColor: {
542
- $value: '{base.color.gray.6}',
542
+ $value: '{base.color.neutral.6}',
543
543
  $type: 'color',
544
544
  $extensions: {
545
545
  'org.primer.figma': {
@@ -1056,5 +1056,71 @@
1056
1056
  },
1057
1057
  },
1058
1058
  },
1059
+ pink: {
1060
+ bgColor: {
1061
+ muted: {
1062
+ $value: '{base.display.color.pink.0}',
1063
+ $type: 'color',
1064
+ $extensions: {
1065
+ 'org.primer.figma': {
1066
+ collection: 'mode',
1067
+ mode: 'light',
1068
+ group: 'component (internal)',
1069
+ scopes: ['bgColor'],
1070
+ },
1071
+ },
1072
+ },
1073
+ emphasis: {
1074
+ $value: '{base.display.color.pink.5}',
1075
+ $type: 'color',
1076
+ $extensions: {
1077
+ 'org.primer.figma': {
1078
+ collection: 'mode',
1079
+ mode: 'light',
1080
+ group: 'component (internal)',
1081
+ scopes: ['bgColor'],
1082
+ },
1083
+ },
1084
+ },
1085
+ },
1086
+ fgColor: {
1087
+ $value: '{base.display.color.pink.6}',
1088
+ $type: 'color',
1089
+ $extensions: {
1090
+ 'org.primer.figma': {
1091
+ collection: 'mode',
1092
+ mode: 'light',
1093
+ group: 'component (internal)',
1094
+ scopes: ['fgColor'],
1095
+ },
1096
+ },
1097
+ },
1098
+ borderColor: {
1099
+ muted: {
1100
+ $value: '{base.display.color.pink.1}',
1101
+ $type: 'color',
1102
+ $extensions: {
1103
+ 'org.primer.figma': {
1104
+ collection: 'mode',
1105
+ mode: 'light',
1106
+ group: 'component (internal)',
1107
+ scopes: ['borderColor'],
1108
+ },
1109
+ },
1110
+ },
1111
+ emphasis: {
1112
+ $value: '{base.display.color.pink.5}',
1113
+ $type: 'color',
1114
+ $extensions: {
1115
+ 'org.primer.figma': {
1116
+ collection: 'mode',
1117
+ mode: 'light',
1118
+ group: 'component (internal)',
1119
+ scopes: ['borderColor'],
1120
+ },
1121
+ },
1122
+ },
1123
+ },
1124
+ },
1059
1125
  },
1060
1126
  }
@@ -6,17 +6,17 @@
6
6
  {
7
7
  fgColor: {
8
8
  onEmphasis: {
9
- $value: '{base.color.gray.9}',
9
+ $value: '{base.color.neutral.9}',
10
10
  $type: 'color',
11
11
  },
12
12
  muted: {
13
- $value: '{base.color.gray.1}',
13
+ $value: '{base.color.neutral.1}',
14
14
  $type: 'color',
15
15
  mix: null,
16
16
  alpha: 1,
17
17
  },
18
18
  disabled: {
19
- $value: '{base.color.gray.4}',
19
+ $value: '{base.color.neutral.4}',
20
20
  $type: 'color',
21
21
  },
22
22
  },
@@ -27,29 +27,29 @@
27
27
  },
28
28
  neutral: {
29
29
  emphasis: {
30
- $value: '{base.color.gray.4}',
30
+ $value: '{base.color.neutral.4}',
31
31
  $type: 'color',
32
32
  },
33
33
  },
34
34
  },
35
35
  borderColor: {
36
36
  default: {
37
- $value: '{base.color.gray.5}',
37
+ $value: '{base.color.neutral.5}',
38
38
  $type: 'color',
39
39
  },
40
40
  muted: {
41
- $value: '{base.color.gray.5}',
41
+ $value: '{base.color.neutral.5}',
42
42
  $type: 'color',
43
43
  alpha: 1,
44
44
  },
45
45
  neutral: {
46
46
  muted: {
47
- $value: '{base.color.gray.4}',
47
+ $value: '{base.color.neutral.4}',
48
48
  $type: 'color',
49
49
  alpha: 1,
50
50
  },
51
51
  emphasis: {
52
- $value: '{base.color.gray.4}',
52
+ $value: '{base.color.neutral.4}',
53
53
  $type: 'color',
54
54
  },
55
55
  },
@@ -120,7 +120,7 @@
120
120
  control: {
121
121
  bgColor: {
122
122
  selected: {
123
- $value: '{base.color.gray.6}',
123
+ $value: '{base.color.neutral.6}',
124
124
  $type: 'color',
125
125
  },
126
126
  },
@@ -134,17 +134,17 @@
134
134
  transparent: {
135
135
  bgColor: {
136
136
  hover: {
137
- $value: '{base.color.gray.8}',
137
+ $value: '{base.color.neutral.8}',
138
138
  $type: 'color',
139
139
  alpha: 1,
140
140
  },
141
141
  active: {
142
- $value: '{base.color.gray.6}',
142
+ $value: '{base.color.neutral.6}',
143
143
  $type: 'color',
144
144
  alpha: 1,
145
145
  },
146
146
  selected: {
147
- $value: '{base.color.gray.6}',
147
+ $value: '{base.color.neutral.6}',
148
148
  $type: 'color',
149
149
  alpha: 1,
150
150
  },
@@ -155,7 +155,7 @@
155
155
  $type: 'color',
156
156
  },
157
157
  active: {
158
- $value: '{base.color.gray.4}',
158
+ $value: '{base.color.neutral.4}',
159
159
  $type: 'color',
160
160
  },
161
161
  },
@@ -249,13 +249,13 @@
249
249
  },
250
250
  bgColor: {
251
251
  hover: {
252
- $value: '{base.color.gray.1}',
252
+ $value: '{base.color.neutral.1}',
253
253
  $type: 'color',
254
254
  alpha: null,
255
255
  mix: null,
256
256
  },
257
257
  active: {
258
- $value: '{base.color.gray.2}',
258
+ $value: '{base.color.neutral.2}',
259
259
  $type: 'color',
260
260
  alpha: null,
261
261
  mix: null,
@@ -354,13 +354,13 @@
354
354
  underlineNav: {
355
355
  borderColor: {
356
356
  hover: {
357
- $value: '{base.color.gray.3}',
357
+ $value: '{base.color.neutral.3}',
358
358
  $type: 'color',
359
359
  },
360
360
  },
361
361
  iconColor: {
362
362
  rest: {
363
- $value: '{base.color.gray.1}',
363
+ $value: '{base.color.neutral.1}',
364
364
  $type: 'color',
365
365
  },
366
366
  },
@@ -25,7 +25,7 @@
25
25
  },
26
26
  closed: {
27
27
  '@': {
28
- $value: '{base.color.gray.3}',
28
+ $value: '{base.color.neutral.3}',
29
29
  $type: 'color',
30
30
  },
31
31
  },
@@ -66,12 +66,12 @@
66
66
  },
67
67
  closed: {
68
68
  muted: {
69
- $value: '{base.color.gray.4}',
69
+ $value: '{base.color.neutral.4}',
70
70
  $type: 'color',
71
71
  alpha: 0.4,
72
72
  },
73
73
  emphasis: {
74
- $value: '{base.color.gray.4}',
74
+ $value: '{base.color.neutral.4}',
75
75
  $type: 'color',
76
76
  },
77
77
  },
@@ -90,12 +90,12 @@
90
90
  },
91
91
  closed: {
92
92
  muted: {
93
- $value: '{base.color.gray.4}',
93
+ $value: '{base.color.neutral.4}',
94
94
  $type: 'color',
95
95
  alpha: 0.4,
96
96
  },
97
97
  emphasis: {
98
- $value: '{base.color.gray.4}',
98
+ $value: '{base.color.neutral.4}',
99
99
  $type: 'color',
100
100
  },
101
101
  },
@@ -25,7 +25,7 @@
25
25
  },
26
26
  closed: {
27
27
  '@': {
28
- $value: '{base.color.gray.4}',
28
+ $value: '{base.color.neutral.4}',
29
29
  $type: 'color',
30
30
  },
31
31
  },
@@ -63,11 +63,11 @@
63
63
  },
64
64
  closed: {
65
65
  muted: {
66
- $value: '{base.color.gray.4}',
66
+ $value: '{base.color.neutral.4}',
67
67
  $type: 'color',
68
68
  },
69
69
  emphasis: {
70
- $value: '{base.color.gray.5}',
70
+ $value: '{base.color.neutral.5}',
71
71
  $type: 'color',
72
72
  },
73
73
  },
@@ -108,12 +108,12 @@
108
108
  },
109
109
  closed: {
110
110
  muted: {
111
- $value: '{base.color.gray.4}',
111
+ $value: '{base.color.neutral.4}',
112
112
  $type: 'color',
113
113
  alpha: 0.4,
114
114
  },
115
115
  emphasis: {
116
- $value: '{base.color.gray.5}',
116
+ $value: '{base.color.neutral.5}',
117
117
  $type: 'color',
118
118
  },
119
119
  },