@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.
- package/README.md +1 -1
- package/dist/css/functional/themes/dark-colorblind.css +10 -0
- package/dist/css/functional/themes/dark-dimmed.css +10 -0
- package/dist/css/functional/themes/dark-high-contrast.css +10 -0
- package/dist/css/functional/themes/dark-tritanopia.css +10 -0
- package/dist/css/functional/themes/dark.css +10 -0
- package/dist/css/functional/themes/light-colorblind.css +10 -0
- package/dist/css/functional/themes/light-high-contrast.css +10 -0
- package/dist/css/functional/themes/light-tritanopia.css +10 -0
- package/dist/css/functional/themes/light.css +10 -0
- package/dist/css/functional/typography/typography.css +1 -1
- package/dist/docs/base/typography/typography.json +52 -4
- package/dist/docs/functional/themes/dark-colorblind.json +223 -78
- package/dist/docs/functional/themes/dark-dimmed.json +218 -73
- package/dist/docs/functional/themes/dark-high-contrast.json +220 -75
- package/dist/docs/functional/themes/dark-tritanopia.json +223 -78
- package/dist/docs/functional/themes/dark.json +218 -73
- package/dist/docs/functional/themes/light-colorblind.json +221 -76
- package/dist/docs/functional/themes/light-high-contrast.json +215 -70
- package/dist/docs/functional/themes/light-tritanopia.json +221 -76
- package/dist/docs/functional/themes/light.json +216 -71
- package/dist/docs/functional/typography/typography.json +494 -36
- package/dist/fallbacks/functional/typography/typography.json +1 -1
- package/dist/figma/figma.json +18 -1
- package/dist/figma/scales/dark-dimmed.json +20 -20
- package/dist/figma/scales/dark-high-constrast.json +20 -20
- package/dist/figma/scales/dark.json +20 -20
- package/dist/figma/scales/light-high-constrast.json +20 -20
- package/dist/figma/scales/light.json +20 -20
- package/dist/figma/themes/dark-colorblind.json +150 -70
- package/dist/figma/themes/dark-dimmed.json +145 -65
- package/dist/figma/themes/dark-high-contrast.json +149 -69
- package/dist/figma/themes/dark-tritanopia.json +150 -70
- package/dist/figma/themes/dark.json +145 -65
- package/dist/figma/themes/light-colorblind.json +139 -59
- package/dist/figma/themes/light-high-contrast.json +135 -55
- package/dist/figma/themes/light-tritanopia.json +139 -59
- package/dist/figma/themes/light.json +134 -54
- package/dist/figma/typography/typography.json +370 -0
- package/dist/internalCss/dark-colorblind.css +30 -20
- package/dist/internalCss/dark-dimmed.css +30 -20
- package/dist/internalCss/dark-high-contrast.css +30 -20
- package/dist/internalCss/dark-tritanopia.css +30 -20
- package/dist/internalCss/dark.css +30 -20
- package/dist/internalCss/light-colorblind.css +30 -20
- package/dist/internalCss/light-high-contrast.css +30 -20
- package/dist/internalCss/light-tritanopia.css +30 -20
- package/dist/internalCss/light.css +30 -20
- package/dist/styleLint/base/typography/typography.json +52 -4
- package/dist/styleLint/functional/themes/dark-colorblind.json +223 -78
- package/dist/styleLint/functional/themes/dark-dimmed.json +218 -73
- package/dist/styleLint/functional/themes/dark-high-contrast.json +220 -75
- package/dist/styleLint/functional/themes/dark-tritanopia.json +223 -78
- package/dist/styleLint/functional/themes/dark.json +218 -73
- package/dist/styleLint/functional/themes/light-colorblind.json +221 -76
- package/dist/styleLint/functional/themes/light-high-contrast.json +215 -70
- package/dist/styleLint/functional/themes/light-tritanopia.json +221 -76
- package/dist/styleLint/functional/themes/light.json +216 -71
- package/dist/styleLint/functional/typography/typography.json +494 -36
- package/package.json +4 -11
- package/src/PrimerStyleDictionary.ts +12 -0
- package/src/filters/index.ts +1 -0
- package/src/filters/isNumber.ts +8 -0
- package/src/formats/jsonFigma.ts +1 -0
- package/src/platforms/figma.ts +10 -1
- package/src/schemas/numberToken.ts +17 -0
- package/src/tokens/base/color/dark/dark.dimmed.json5 +1 -1
- package/src/tokens/base/color/dark/dark.high-contrast.json5 +1 -1
- package/src/tokens/base/color/dark/dark.json5 +1 -1
- package/src/tokens/base/color/light/light.high-contrast.json5 +1 -1
- package/src/tokens/base/color/light/light.json5 +1 -1
- package/src/tokens/base/typography/typography.json +28 -4
- package/src/tokens/functional/color/dark/app-dark.json5 +5 -5
- package/src/tokens/functional/color/dark/display-dark.json5 +66 -0
- package/src/tokens/functional/color/dark/overrides/dark.high-contrast.json5 +17 -17
- package/src/tokens/functional/color/dark/overrides/dark.protanopia-deuteranopia.json5 +5 -5
- package/src/tokens/functional/color/dark/overrides/dark.tritanopia.json5 +5 -5
- package/src/tokens/functional/color/dark/patterns-dark.json5 +42 -42
- package/src/tokens/functional/color/dark/primitives-dark.json5 +16 -16
- package/src/tokens/functional/color/dark/syntax-dark.json5 +13 -13
- package/src/tokens/functional/color/light/app-light.json5 +5 -5
- package/src/tokens/functional/color/light/display-light.json5 +66 -0
- package/src/tokens/functional/color/light/overrides/light.high-contrast.json5 +25 -25
- package/src/tokens/functional/color/light/overrides/light.protanopia-deuteranopia.json5 +5 -5
- package/src/tokens/functional/color/light/overrides/light.tritanopia.json5 +5 -5
- package/src/tokens/functional/color/light/patterns-light.json5 +30 -30
- package/src/tokens/functional/color/light/primitives-light.json5 +15 -15
- package/src/tokens/functional/color/light/syntax-light.json5 +14 -14
- package/src/tokens/functional/shadow/dark.json5 +1 -1
- package/src/tokens/functional/shadow/light.json5 +11 -11
- package/src/tokens/functional/typography/typography.json +263 -34
- package/src/transformers/floatToPixel.ts +33 -0
- package/src/transformers/fontFamilyToCss.ts +3 -4
- package/src/transformers/fontFamilyToFigma.ts +47 -0
- package/src/transformers/index.ts +2 -0
- package/src/transformers/utilities/hasSpaceInString.ts +6 -0
- package/build.js +0 -578
- package/tokens/base/size/size.json +0 -57
- package/tokens/base/typography/typography.json +0 -20
- package/tokens/functional/size/border.json +0 -48
- package/tokens/functional/size/breakpoints.json +0 -24
- package/tokens/functional/size/size-coarse.json +0 -27
- package/tokens/functional/size/size-fine.json +0 -27
- package/tokens/functional/size/size.json +0 -189
- package/tokens/functional/size/viewport.json +0 -24
- package/tokens/functional/typography/typography.json +0 -213
- package/tokens/removed/color.json +0 -421
- package/tokens-v2-private/css/tokens/base/size/size.css +0 -24
- package/tokens-v2-private/css/tokens/base/typography/typography.css +0 -11
- package/tokens-v2-private/css/tokens/functional/size/border.css +0 -17
- package/tokens-v2-private/css/tokens/functional/size/breakpoints.css +0 -13
- package/tokens-v2-private/css/tokens/functional/size/size-coarse.css +0 -11
- package/tokens-v2-private/css/tokens/functional/size/size-fine.css +0 -11
- package/tokens-v2-private/css/tokens/functional/size/size.css +0 -54
- package/tokens-v2-private/css/tokens/functional/size/viewport.css +0 -6
- package/tokens-v2-private/css/tokens/functional/typography/typography.css +0 -47
- package/tokens-v2-private/docs/docValues.json +0 -2209
- package/tokens-v2-private/js/module/tokens/base/size/size.js +0 -266
- package/tokens-v2-private/js/module/tokens/base/typography/typography.js +0 -77
- package/tokens-v2-private/js/module/tokens/functional/size/border.js +0 -165
- package/tokens-v2-private/js/module/tokens/functional/size/breakpoints.js +0 -101
- package/tokens-v2-private/js/module/tokens/functional/size/size-coarse.js +0 -73
- package/tokens-v2-private/js/module/tokens/functional/size/size-fine.js +0 -73
- package/tokens-v2-private/js/module/tokens/functional/size/size.js +0 -824
- package/tokens-v2-private/js/module/tokens/functional/size/viewport.js +0 -101
- package/tokens-v2-private/js/module/tokens/functional/typography/typography.js +0 -809
- package/tokens-v2-private/js/tokens/base/size/size.js +0 -22
- package/tokens-v2-private/js/tokens/base/typography/typography.js +0 -9
- package/tokens-v2-private/js/tokens/functional/size/border.js +0 -15
- package/tokens-v2-private/js/tokens/functional/size/breakpoints.js +0 -11
- package/tokens-v2-private/js/tokens/functional/size/size-coarse.js +0 -8
- package/tokens-v2-private/js/tokens/functional/size/size-fine.js +0 -8
- package/tokens-v2-private/js/tokens/functional/size/size.js +0 -52
- package/tokens-v2-private/js/tokens/functional/size/viewport.js +0 -11
- package/tokens-v2-private/js/tokens/functional/typography/typography.js +0 -45
- package/tokens-v2-private/scss/tokens/base/size/size.scss +0 -21
- package/tokens-v2-private/scss/tokens/base/typography/typography.scss +0 -8
- package/tokens-v2-private/scss/tokens/functional/size/border.scss +0 -14
- package/tokens-v2-private/scss/tokens/functional/size/breakpoints.scss +0 -10
- package/tokens-v2-private/scss/tokens/functional/size/size-coarse.scss +0 -7
- package/tokens-v2-private/scss/tokens/functional/size/size-fine.scss +0 -7
- package/tokens-v2-private/scss/tokens/functional/size/size.scss +0 -51
- package/tokens-v2-private/scss/tokens/functional/size/viewport.scss +0 -10
- package/tokens-v2-private/scss/tokens/functional/typography/typography.scss +0 -44
- package/tokens-v2-private/ts/tokens/base/size/size.d.ts +0 -31
- package/tokens-v2-private/ts/tokens/base/size/size.js +0 -30
- package/tokens-v2-private/ts/tokens/base/typography/typography.d.ts +0 -20
- package/tokens-v2-private/ts/tokens/base/typography/typography.js +0 -19
- package/tokens-v2-private/ts/tokens/functional/size/border.d.ts +0 -28
- package/tokens-v2-private/ts/tokens/functional/size/border.js +0 -27
- package/tokens-v2-private/ts/tokens/functional/size/breakpoints.d.ts +0 -20
- package/tokens-v2-private/ts/tokens/functional/size/breakpoints.js +0 -19
- package/tokens-v2-private/ts/tokens/functional/size/size-coarse.d.ts +0 -29
- package/tokens-v2-private/ts/tokens/functional/size/size-coarse.js +0 -28
- package/tokens-v2-private/ts/tokens/functional/size/size-fine.d.ts +0 -29
- package/tokens-v2-private/ts/tokens/functional/size/size-fine.js +0 -28
- package/tokens-v2-private/ts/tokens/functional/size/size.d.ts +0 -103
- package/tokens-v2-private/ts/tokens/functional/size/size.js +0 -102
- package/tokens-v2-private/ts/tokens/functional/size/viewport.d.ts +0 -20
- package/tokens-v2-private/ts/tokens/functional/size/viewport.js +0 -19
- package/tokens-v2-private/ts/tokens/functional/typography/typography.d.ts +0 -131
- 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.
|
|
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:
|
|
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
|
package/src/filters/index.ts
CHANGED
|
@@ -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'
|
package/src/formats/jsonFigma.ts
CHANGED
package/src/platforms/figma.ts
CHANGED
|
@@ -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()
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
9
|
+
$value: '{base.color.neutral.9}',
|
|
10
10
|
$type: 'color',
|
|
11
11
|
},
|
|
12
12
|
muted: {
|
|
13
|
-
$value: '{base.color.
|
|
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.
|
|
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.
|
|
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.
|
|
37
|
+
$value: '{base.color.neutral.5}',
|
|
38
38
|
$type: 'color',
|
|
39
39
|
},
|
|
40
40
|
muted: {
|
|
41
|
-
$value: '{base.color.
|
|
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.
|
|
47
|
+
$value: '{base.color.neutral.4}',
|
|
48
48
|
$type: 'color',
|
|
49
49
|
alpha: 1,
|
|
50
50
|
},
|
|
51
51
|
emphasis: {
|
|
52
|
-
$value: '{base.color.
|
|
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.
|
|
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.
|
|
137
|
+
$value: '{base.color.neutral.8}',
|
|
138
138
|
$type: 'color',
|
|
139
139
|
alpha: 1,
|
|
140
140
|
},
|
|
141
141
|
active: {
|
|
142
|
-
$value: '{base.color.
|
|
142
|
+
$value: '{base.color.neutral.6}',
|
|
143
143
|
$type: 'color',
|
|
144
144
|
alpha: 1,
|
|
145
145
|
},
|
|
146
146
|
selected: {
|
|
147
|
-
$value: '{base.color.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
357
|
+
$value: '{base.color.neutral.3}',
|
|
358
358
|
$type: 'color',
|
|
359
359
|
},
|
|
360
360
|
},
|
|
361
361
|
iconColor: {
|
|
362
362
|
rest: {
|
|
363
|
-
$value: '{base.color.
|
|
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.
|
|
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.
|
|
69
|
+
$value: '{base.color.neutral.4}',
|
|
70
70
|
$type: 'color',
|
|
71
71
|
alpha: 0.4,
|
|
72
72
|
},
|
|
73
73
|
emphasis: {
|
|
74
|
-
$value: '{base.color.
|
|
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.
|
|
93
|
+
$value: '{base.color.neutral.4}',
|
|
94
94
|
$type: 'color',
|
|
95
95
|
alpha: 0.4,
|
|
96
96
|
},
|
|
97
97
|
emphasis: {
|
|
98
|
-
$value: '{base.color.
|
|
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.
|
|
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.
|
|
66
|
+
$value: '{base.color.neutral.4}',
|
|
67
67
|
$type: 'color',
|
|
68
68
|
},
|
|
69
69
|
emphasis: {
|
|
70
|
-
$value: '{base.color.
|
|
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.
|
|
111
|
+
$value: '{base.color.neutral.4}',
|
|
112
112
|
$type: 'color',
|
|
113
113
|
alpha: 0.4,
|
|
114
114
|
},
|
|
115
115
|
emphasis: {
|
|
116
|
-
$value: '{base.color.
|
|
116
|
+
$value: '{base.color.neutral.5}',
|
|
117
117
|
$type: 'color',
|
|
118
118
|
},
|
|
119
119
|
},
|