@primer/primitives 10.3.0-rc.b425078b → 10.3.0
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/dist/build/transformers/colorToHex.js +3 -3
- package/dist/build/transformers/colorToRgbAlpha.js +2 -2
- package/dist/build/transformers/shadowToCss.js +2 -2
- package/dist/build/transformers/utilities/alpha.d.ts +2 -2
- package/dist/build/transformers/utilities/alpha.js +3 -3
- package/dist/build/utilities/log.d.ts +6 -0
- package/dist/build/utilities/log.js +34 -0
- package/dist/docs/functional/themes/dark-colorblind.json +174 -12
- package/dist/docs/functional/themes/dark-dimmed.json +212 -12
- package/dist/docs/functional/themes/dark-high-contrast.json +213 -13
- package/dist/docs/functional/themes/dark-tritanopia.json +174 -12
- package/dist/docs/functional/themes/dark.json +174 -12
- package/dist/docs/functional/themes/light-colorblind.json +170 -10
- package/dist/docs/functional/themes/light-high-contrast.json +211 -11
- package/dist/docs/functional/themes/light-tritanopia.json +170 -10
- package/dist/docs/functional/themes/light.json +170 -10
- package/dist/figma/themes/dark-colorblind.json +165 -164
- package/dist/figma/themes/dark-dimmed.json +165 -115
- package/dist/figma/themes/dark-high-contrast.json +165 -114
- package/dist/figma/themes/dark-tritanopia.json +165 -164
- package/dist/figma/themes/dark.json +165 -164
- package/dist/figma/themes/light-colorblind.json +164 -164
- package/dist/figma/themes/light-high-contrast.json +151 -100
- package/dist/figma/themes/light-tritanopia.json +164 -164
- package/dist/figma/themes/light.json +164 -164
- package/dist/styleLint/functional/themes/dark-colorblind.json +174 -12
- package/dist/styleLint/functional/themes/dark-dimmed.json +212 -12
- package/dist/styleLint/functional/themes/dark-high-contrast.json +213 -13
- package/dist/styleLint/functional/themes/dark-tritanopia.json +174 -12
- package/dist/styleLint/functional/themes/dark.json +174 -12
- package/dist/styleLint/functional/themes/light-colorblind.json +170 -10
- package/dist/styleLint/functional/themes/light-high-contrast.json +211 -11
- package/dist/styleLint/functional/themes/light-tritanopia.json +170 -10
- package/dist/styleLint/functional/themes/light.json +170 -10
- package/package.json +1 -1
- package/src/tokens/component/header.json5 +65 -0
- package/src/tokens/component/headerSerach.json5 +32 -0
- package/src/tokens/component/overlay.json5 +68 -0
- package/src/tokens/component/skeletonLoader.json5 +29 -0
- package/src/tokens/functional/color/dark/app-dark.json5 +0 -81
- package/src/tokens/functional/color/dark/overrides/dark.dimmed.json5 +0 -18
- package/src/tokens/functional/color/dark/overrides/dark.high-contrast.json5 +0 -21
- package/src/tokens/functional/color/dark/patterns-dark.json5 +0 -127
- package/src/tokens/functional/color/light/app-light.json5 +0 -75
- package/src/tokens/functional/color/light/overrides/light.high-contrast.json5 +0 -21
- package/src/tokens/functional/color/light/patterns-light.json5 +0 -127
- package/dist/figma/figma.json +0 -133
- package/dist/figma/shadows/dark-colorblind.json +0 -1152
- package/dist/figma/shadows/dark-dimmed.json +0 -1152
- package/dist/figma/shadows/dark-high-contrast.json +0 -1152
- package/dist/figma/shadows/dark-tritanopia.json +0 -1152
- package/dist/figma/shadows/dark.json +0 -1152
- package/dist/figma/shadows/light-colorblind.json +0 -1052
- package/dist/figma/shadows/light-high-contrast.json +0 -1052
- package/dist/figma/shadows/light-tritanopia.json +0 -1052
- package/dist/figma/shadows/light.json +0 -1052
|
@@ -13,11 +13,11 @@ export const colorToHex = {
|
|
|
13
13
|
type: 'value',
|
|
14
14
|
transitive: true,
|
|
15
15
|
filter: isColor,
|
|
16
|
-
transform: (token) => {
|
|
16
|
+
transform: (token, config) => {
|
|
17
17
|
const alphaValue = token.alpha;
|
|
18
|
-
if (alphaValue === null || alphaValue === undefined) {
|
|
18
|
+
if (alphaValue === null || alphaValue === undefined || alphaValue === 1) {
|
|
19
19
|
return toHex(getTokenValue(token));
|
|
20
20
|
}
|
|
21
|
-
return toHex(alpha(getTokenValue(token), alphaValue, token));
|
|
21
|
+
return toHex(alpha(getTokenValue(token), alphaValue, token, config));
|
|
22
22
|
},
|
|
23
23
|
};
|
|
@@ -12,9 +12,9 @@ export const colorToRgbAlpha = {
|
|
|
12
12
|
type: 'value',
|
|
13
13
|
transitive: true,
|
|
14
14
|
filter: isColorWithAlpha,
|
|
15
|
-
transform: (token) => {
|
|
15
|
+
transform: (token, config) => {
|
|
16
16
|
if (token.alpha === null)
|
|
17
17
|
return getTokenValue(token);
|
|
18
|
-
return alpha(getTokenValue(token), token.alpha, token);
|
|
18
|
+
return alpha(getTokenValue(token), token.alpha, token, config);
|
|
19
19
|
},
|
|
20
20
|
};
|
|
@@ -14,7 +14,7 @@ export const shadowToCss = {
|
|
|
14
14
|
type: 'value',
|
|
15
15
|
transitive: true,
|
|
16
16
|
filter: isShadow,
|
|
17
|
-
transform: (token) => {
|
|
17
|
+
transform: (token, config) => {
|
|
18
18
|
// extract value
|
|
19
19
|
const value = getTokenValue(token);
|
|
20
20
|
const valueProp = token.$value ? '$value' : 'value';
|
|
@@ -27,7 +27,7 @@ export const shadowToCss = {
|
|
|
27
27
|
return shadow;
|
|
28
28
|
checkRequiredTokenProperties(shadow, ['color', 'offsetX', 'offsetY', 'blur', 'spread']);
|
|
29
29
|
/*css box shadow: inset? | offset-x | offset-y | blur-radius | spread-radius | color */
|
|
30
|
-
return `${shadow.inset === true ? 'inset ' : ''}${shadow.offsetX} ${shadow.offsetY} ${shadow.blur} ${shadow.spread} ${toHex(alpha(getTokenValue(Object.assign(Object.assign({}, token), { [valueProp]: shadow }), 'color'), shadow.alpha || 1, token))}`;
|
|
30
|
+
return `${shadow.inset === true ? 'inset ' : ''}${shadow.offsetX} ${shadow.offsetY} ${shadow.blur} ${shadow.spread} ${toHex(alpha(getTokenValue(Object.assign(Object.assign({}, token), { [valueProp]: shadow }), 'color'), shadow.alpha || 1, token, config))}`;
|
|
31
31
|
})
|
|
32
32
|
.join(', ');
|
|
33
33
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TransformedToken } from 'style-dictionary/types';
|
|
1
|
+
import type { PlatformConfig, TransformedToken } from 'style-dictionary/types';
|
|
2
2
|
/**
|
|
3
3
|
* alpha
|
|
4
4
|
* @description takes a colors string like hex or rgba and returns an rgba color with the specified alpha value
|
|
@@ -6,4 +6,4 @@ import type { TransformedToken } from 'style-dictionary/types';
|
|
|
6
6
|
* @param desiredAlpha number
|
|
7
7
|
* @returns rgba value
|
|
8
8
|
*/
|
|
9
|
-
export declare const alpha: (color: string, desiredAlpha: number, token?: TransformedToken) => string;
|
|
9
|
+
export declare const alpha: (color: string, desiredAlpha: number, token?: TransformedToken, config?: PlatformConfig) => string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { rgba, parseToRgba } from 'color2k';
|
|
2
|
+
import { log } from '../../utilities/log.js';
|
|
2
3
|
/**
|
|
3
4
|
* alpha
|
|
4
5
|
* @description takes a colors string like hex or rgba and returns an rgba color with the specified alpha value
|
|
@@ -6,11 +7,10 @@ import { rgba, parseToRgba } from 'color2k';
|
|
|
6
7
|
* @param desiredAlpha number
|
|
7
8
|
* @returns rgba value
|
|
8
9
|
*/
|
|
9
|
-
export const alpha = (color, desiredAlpha, token) => {
|
|
10
|
+
export const alpha = (color, desiredAlpha, token, config) => {
|
|
10
11
|
const [r, g, b, a] = parseToRgba(color);
|
|
11
12
|
if (a < 1 && desiredAlpha < 1) {
|
|
12
|
-
|
|
13
|
-
console.warn(`🚨 You are setting an alpha value of "${desiredAlpha}" for a color with an alpha value (${color}). The previous alpha value will be disregarded as if the color would have been 100% opaque.${token !== undefined ? `\n ↳ Token: "${token.name}" in file: "${token.filePath}"` : ''}`);
|
|
13
|
+
log.info(`🚨 You are setting an alpha value of "${desiredAlpha}" for a color with an alpha value (${color}). The previous alpha value will be disregarded as if the color would have been 100% opaque.${token !== undefined ? `\n ↳ Token: "${token.name}" in file: "${token.filePath}"` : ''}`, config);
|
|
14
14
|
}
|
|
15
15
|
return rgba(r, g, b, desiredAlpha);
|
|
16
16
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { PlatformConfig } from 'style-dictionary/types';
|
|
2
|
+
export declare const log: {
|
|
3
|
+
info: (message: string, config?: PlatformConfig) => void;
|
|
4
|
+
warning: (message: string, config?: PlatformConfig) => void;
|
|
5
|
+
error: (message: string, config?: PlatformConfig) => void;
|
|
6
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const logMessage = (message, type = 'warning', config) => {
|
|
2
|
+
var _a, _b, _c, _d, _e;
|
|
3
|
+
// early return if verbosity is silent
|
|
4
|
+
if (((_a = config === null || config === void 0 ? void 0 : config.log) === null || _a === void 0 ? void 0 : _a.verbosity) === 'silent' && type !== 'error') {
|
|
5
|
+
return;
|
|
6
|
+
}
|
|
7
|
+
// early return if verbosity is default and type is info
|
|
8
|
+
if (((_b = config === null || config === void 0 ? void 0 : config.log) === null || _b === void 0 ? void 0 : _b.verbosity) === 'default' && type === 'info') {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
// early return
|
|
12
|
+
if ((((_c = config === null || config === void 0 ? void 0 : config.log) === null || _c === void 0 ? void 0 : _c.warnings) === 'disabled' || ((_d = config === null || config === void 0 ? void 0 : config.log) === null || _d === void 0 ? void 0 : _d.warnings) === 'warn') && type === 'info') {
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
// early return
|
|
16
|
+
if (((_e = config === null || config === void 0 ? void 0 : config.log) === null || _e === void 0 ? void 0 : _e.warnings) === 'disabled' && type === 'warning') {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
if (type === 'warning') {
|
|
20
|
+
// eslint-disable-next-line no-console
|
|
21
|
+
return console.warn(message);
|
|
22
|
+
}
|
|
23
|
+
if (type === 'error') {
|
|
24
|
+
// eslint-disable-next-line no-console
|
|
25
|
+
return console.error(message);
|
|
26
|
+
}
|
|
27
|
+
// eslint-disable-next-line no-console
|
|
28
|
+
console.log(message);
|
|
29
|
+
};
|
|
30
|
+
export const log = {
|
|
31
|
+
info: (message, config) => logMessage(message, 'info', config),
|
|
32
|
+
warning: (message, config) => logMessage(message, 'warning', config),
|
|
33
|
+
error: (message, config) => logMessage(message, 'error', config),
|
|
34
|
+
};
|
|
@@ -12338,11 +12338,20 @@
|
|
|
12338
12338
|
"collection": "mode",
|
|
12339
12339
|
"group": "component (internal)",
|
|
12340
12340
|
"scopes": ["bgColor"]
|
|
12341
|
+
},
|
|
12342
|
+
"org.primer.overrides": {
|
|
12343
|
+
"dark": {
|
|
12344
|
+
"$value": "#151b23",
|
|
12345
|
+
"alpha": 0.95,
|
|
12346
|
+
"filePath": "src/tokens/component/header.json5",
|
|
12347
|
+
"isSource": true,
|
|
12348
|
+
"$type": "color"
|
|
12349
|
+
}
|
|
12341
12350
|
}
|
|
12342
12351
|
},
|
|
12343
|
-
"
|
|
12344
|
-
"filePath": "src/tokens/functional/color/dark/patterns-dark.json5",
|
|
12352
|
+
"filePath": "src/tokens/component/header.json5",
|
|
12345
12353
|
"isSource": true,
|
|
12354
|
+
"alpha": 0.95,
|
|
12346
12355
|
"original": {
|
|
12347
12356
|
"$value": "{base.color.neutral.2}",
|
|
12348
12357
|
"$type": "color",
|
|
@@ -12351,6 +12360,15 @@
|
|
|
12351
12360
|
"collection": "mode",
|
|
12352
12361
|
"group": "component (internal)",
|
|
12353
12362
|
"scopes": ["bgColor"]
|
|
12363
|
+
},
|
|
12364
|
+
"org.primer.overrides": {
|
|
12365
|
+
"dark": {
|
|
12366
|
+
"$value": "{base.color.neutral.2}",
|
|
12367
|
+
"alpha": 0.95,
|
|
12368
|
+
"filePath": "src/tokens/component/header.json5",
|
|
12369
|
+
"isSource": true,
|
|
12370
|
+
"$type": "color"
|
|
12371
|
+
}
|
|
12354
12372
|
}
|
|
12355
12373
|
},
|
|
12356
12374
|
"alpha": 0.95
|
|
@@ -12370,7 +12388,7 @@
|
|
|
12370
12388
|
"scopes": ["borderColor"]
|
|
12371
12389
|
}
|
|
12372
12390
|
},
|
|
12373
|
-
"filePath": "src/tokens/
|
|
12391
|
+
"filePath": "src/tokens/component/header.json5",
|
|
12374
12392
|
"isSource": true,
|
|
12375
12393
|
"original": {
|
|
12376
12394
|
"$value": "{base.color.neutral.8}",
|
|
@@ -12396,10 +12414,13 @@
|
|
|
12396
12414
|
"collection": "mode",
|
|
12397
12415
|
"group": "component (internal)",
|
|
12398
12416
|
"scopes": ["fgColor"]
|
|
12417
|
+
},
|
|
12418
|
+
"org.primer.overrides": {
|
|
12419
|
+
"dark": "#ffffff"
|
|
12399
12420
|
}
|
|
12400
12421
|
},
|
|
12401
12422
|
"alpha": 0.7,
|
|
12402
|
-
"filePath": "src/tokens/
|
|
12423
|
+
"filePath": "src/tokens/component/header.json5",
|
|
12403
12424
|
"isSource": true,
|
|
12404
12425
|
"original": {
|
|
12405
12426
|
"$value": "{base.color.neutral.13}",
|
|
@@ -12409,6 +12430,9 @@
|
|
|
12409
12430
|
"collection": "mode",
|
|
12410
12431
|
"group": "component (internal)",
|
|
12411
12432
|
"scopes": ["fgColor"]
|
|
12433
|
+
},
|
|
12434
|
+
"org.primer.overrides": {
|
|
12435
|
+
"dark": "{base.color.neutral.13}"
|
|
12412
12436
|
}
|
|
12413
12437
|
},
|
|
12414
12438
|
"alpha": 0.7
|
|
@@ -12426,9 +12450,12 @@
|
|
|
12426
12450
|
"collection": "mode",
|
|
12427
12451
|
"group": "component (internal)",
|
|
12428
12452
|
"scopes": ["fgColor"]
|
|
12453
|
+
},
|
|
12454
|
+
"org.primer.overrides": {
|
|
12455
|
+
"dark": "#f0f6fc"
|
|
12429
12456
|
}
|
|
12430
12457
|
},
|
|
12431
|
-
"filePath": "src/tokens/
|
|
12458
|
+
"filePath": "src/tokens/component/header.json5",
|
|
12432
12459
|
"isSource": true,
|
|
12433
12460
|
"original": {
|
|
12434
12461
|
"$value": "{base.color.neutral.12}",
|
|
@@ -12438,6 +12465,9 @@
|
|
|
12438
12465
|
"collection": "mode",
|
|
12439
12466
|
"group": "component (internal)",
|
|
12440
12467
|
"scopes": ["fgColor"]
|
|
12468
|
+
},
|
|
12469
|
+
"org.primer.overrides": {
|
|
12470
|
+
"dark": "{base.color.neutral.12}"
|
|
12441
12471
|
}
|
|
12442
12472
|
}
|
|
12443
12473
|
},
|
|
@@ -12454,9 +12484,12 @@
|
|
|
12454
12484
|
"collection": "mode",
|
|
12455
12485
|
"group": "component (internal)",
|
|
12456
12486
|
"scopes": ["bgColor"]
|
|
12487
|
+
},
|
|
12488
|
+
"org.primer.overrides": {
|
|
12489
|
+
"dark": "#0d1117"
|
|
12457
12490
|
}
|
|
12458
12491
|
},
|
|
12459
|
-
"filePath": "src/tokens/
|
|
12492
|
+
"filePath": "src/tokens/component/headerSerach.json5",
|
|
12460
12493
|
"isSource": true,
|
|
12461
12494
|
"original": {
|
|
12462
12495
|
"$value": "{base.color.neutral.1}",
|
|
@@ -12466,6 +12499,9 @@
|
|
|
12466
12499
|
"collection": "mode",
|
|
12467
12500
|
"group": "component (internal)",
|
|
12468
12501
|
"scopes": ["bgColor"]
|
|
12502
|
+
},
|
|
12503
|
+
"org.primer.overrides": {
|
|
12504
|
+
"dark": "{base.color.neutral.1}"
|
|
12469
12505
|
}
|
|
12470
12506
|
}
|
|
12471
12507
|
},
|
|
@@ -12482,9 +12518,12 @@
|
|
|
12482
12518
|
"collection": "mode",
|
|
12483
12519
|
"group": "component (internal)",
|
|
12484
12520
|
"scopes": ["borderColor"]
|
|
12521
|
+
},
|
|
12522
|
+
"org.primer.overrides": {
|
|
12523
|
+
"dark": "#2a313c"
|
|
12485
12524
|
}
|
|
12486
12525
|
},
|
|
12487
|
-
"filePath": "src/tokens/
|
|
12526
|
+
"filePath": "src/tokens/component/headerSerach.json5",
|
|
12488
12527
|
"isSource": true,
|
|
12489
12528
|
"original": {
|
|
12490
12529
|
"$value": "{base.color.neutral.5}",
|
|
@@ -12494,6 +12533,9 @@
|
|
|
12494
12533
|
"collection": "mode",
|
|
12495
12534
|
"group": "component (internal)",
|
|
12496
12535
|
"scopes": ["borderColor"]
|
|
12536
|
+
},
|
|
12537
|
+
"org.primer.overrides": {
|
|
12538
|
+
"dark": "{base.color.neutral.5}"
|
|
12497
12539
|
}
|
|
12498
12540
|
}
|
|
12499
12541
|
},
|
|
@@ -15778,10 +15820,16 @@
|
|
|
15778
15820
|
"collection": "mode",
|
|
15779
15821
|
"group": "component (internal)",
|
|
15780
15822
|
"scopes": ["bgColor"]
|
|
15823
|
+
},
|
|
15824
|
+
"org.primer.overrides": {
|
|
15825
|
+
"dark": "#212830",
|
|
15826
|
+
"dark-dimmed": "#262c36",
|
|
15827
|
+
"light-high-contrast": "#d1d7e0",
|
|
15828
|
+
"dark-high-contrast": "#d1d7e0"
|
|
15781
15829
|
}
|
|
15782
15830
|
},
|
|
15783
15831
|
"alpha": 0.4,
|
|
15784
|
-
"filePath": "src/tokens/
|
|
15832
|
+
"filePath": "src/tokens/component/overlay.json5",
|
|
15785
15833
|
"isSource": true,
|
|
15786
15834
|
"original": {
|
|
15787
15835
|
"$value": "{base.color.neutral.3}",
|
|
@@ -15791,6 +15839,12 @@
|
|
|
15791
15839
|
"collection": "mode",
|
|
15792
15840
|
"group": "component (internal)",
|
|
15793
15841
|
"scopes": ["bgColor"]
|
|
15842
|
+
},
|
|
15843
|
+
"org.primer.overrides": {
|
|
15844
|
+
"dark": "{base.color.neutral.3}",
|
|
15845
|
+
"dark-dimmed": "{base.color.neutral.4}",
|
|
15846
|
+
"light-high-contrast": "{base.color.neutral.11}",
|
|
15847
|
+
"dark-high-contrast": "{base.color.neutral.11}"
|
|
15794
15848
|
}
|
|
15795
15849
|
},
|
|
15796
15850
|
"alpha": 0.4
|
|
@@ -15808,9 +15862,13 @@
|
|
|
15808
15862
|
"collection": "mode",
|
|
15809
15863
|
"group": "component (internal)",
|
|
15810
15864
|
"scopes": ["bgColor"]
|
|
15865
|
+
},
|
|
15866
|
+
"org.primer.overrides": {
|
|
15867
|
+
"dark": "#151b23",
|
|
15868
|
+
"dark-dimmed": "#2a313c"
|
|
15811
15869
|
}
|
|
15812
15870
|
},
|
|
15813
|
-
"filePath": "src/tokens/
|
|
15871
|
+
"filePath": "src/tokens/component/overlay.json5",
|
|
15814
15872
|
"isSource": true,
|
|
15815
15873
|
"original": {
|
|
15816
15874
|
"$value": "{bgColor.muted}",
|
|
@@ -15820,6 +15878,10 @@
|
|
|
15820
15878
|
"collection": "mode",
|
|
15821
15879
|
"group": "component (internal)",
|
|
15822
15880
|
"scopes": ["bgColor"]
|
|
15881
|
+
},
|
|
15882
|
+
"org.primer.overrides": {
|
|
15883
|
+
"dark": "{bgColor.muted}",
|
|
15884
|
+
"dark-dimmed": "{base.color.neutral.5}"
|
|
15823
15885
|
}
|
|
15824
15886
|
}
|
|
15825
15887
|
},
|
|
@@ -15835,9 +15897,40 @@
|
|
|
15835
15897
|
"org.primer.figma": {
|
|
15836
15898
|
"collection": "mode",
|
|
15837
15899
|
"group": "component (internal)"
|
|
15900
|
+
},
|
|
15901
|
+
"org.primer.overrides": {
|
|
15902
|
+
"dark": {
|
|
15903
|
+
"alpha": 1,
|
|
15904
|
+
"$value": "#3d444db3",
|
|
15905
|
+
"filePath": "src/tokens/component/overlay.json5",
|
|
15906
|
+
"isSource": true,
|
|
15907
|
+
"$type": "color"
|
|
15908
|
+
},
|
|
15909
|
+
"dark-dimmed": {
|
|
15910
|
+
"$value": "#3d444d",
|
|
15911
|
+
"alpha": 0.7,
|
|
15912
|
+
"filePath": "src/tokens/component/overlay.json5",
|
|
15913
|
+
"isSource": true,
|
|
15914
|
+
"$type": "color"
|
|
15915
|
+
},
|
|
15916
|
+
"light-high-contrast": {
|
|
15917
|
+
"alpha": 1,
|
|
15918
|
+
"$value": "#3d444d",
|
|
15919
|
+
"filePath": "src/tokens/component/overlay.json5",
|
|
15920
|
+
"isSource": true,
|
|
15921
|
+
"$type": "color"
|
|
15922
|
+
},
|
|
15923
|
+
"dark-high-contrast": {
|
|
15924
|
+
"$value": "#3d444d",
|
|
15925
|
+
"alpha": 1,
|
|
15926
|
+
"filePath": "src/tokens/component/overlay.json5",
|
|
15927
|
+
"isSource": true,
|
|
15928
|
+
"$type": "color"
|
|
15929
|
+
}
|
|
15838
15930
|
}
|
|
15839
15931
|
},
|
|
15840
|
-
"
|
|
15932
|
+
"alpha": 1,
|
|
15933
|
+
"filePath": "src/tokens/component/overlay.json5",
|
|
15841
15934
|
"isSource": true,
|
|
15842
15935
|
"original": {
|
|
15843
15936
|
"$value": "{borderColor.muted}",
|
|
@@ -15846,8 +15939,39 @@
|
|
|
15846
15939
|
"org.primer.figma": {
|
|
15847
15940
|
"collection": "mode",
|
|
15848
15941
|
"group": "component (internal)"
|
|
15942
|
+
},
|
|
15943
|
+
"org.primer.overrides": {
|
|
15944
|
+
"dark": {
|
|
15945
|
+
"alpha": 1,
|
|
15946
|
+
"$value": "{borderColor.muted}",
|
|
15947
|
+
"filePath": "src/tokens/component/overlay.json5",
|
|
15948
|
+
"isSource": true,
|
|
15949
|
+
"$type": "color"
|
|
15950
|
+
},
|
|
15951
|
+
"dark-dimmed": {
|
|
15952
|
+
"$value": "{base.color.neutral.7}",
|
|
15953
|
+
"alpha": 0.7,
|
|
15954
|
+
"filePath": "src/tokens/component/overlay.json5",
|
|
15955
|
+
"isSource": true,
|
|
15956
|
+
"$type": "color"
|
|
15957
|
+
},
|
|
15958
|
+
"light-high-contrast": {
|
|
15959
|
+
"alpha": 1,
|
|
15960
|
+
"$value": "{borderColor.default}",
|
|
15961
|
+
"filePath": "src/tokens/component/overlay.json5",
|
|
15962
|
+
"isSource": true,
|
|
15963
|
+
"$type": "color"
|
|
15964
|
+
},
|
|
15965
|
+
"dark-high-contrast": {
|
|
15966
|
+
"$value": "{borderColor.default}",
|
|
15967
|
+
"alpha": 1,
|
|
15968
|
+
"filePath": "src/tokens/component/overlay.json5",
|
|
15969
|
+
"isSource": true,
|
|
15970
|
+
"$type": "color"
|
|
15971
|
+
}
|
|
15849
15972
|
}
|
|
15850
|
-
}
|
|
15973
|
+
},
|
|
15974
|
+
"alpha": 1
|
|
15851
15975
|
},
|
|
15852
15976
|
"name": "overlay-borderColor",
|
|
15853
15977
|
"attributes": {},
|
|
@@ -16584,10 +16708,29 @@
|
|
|
16584
16708
|
"collection": "mode",
|
|
16585
16709
|
"group": "component",
|
|
16586
16710
|
"scopes": ["bgColor"]
|
|
16711
|
+
},
|
|
16712
|
+
"org.primer.overrides": {
|
|
16713
|
+
"dark": {
|
|
16714
|
+
"alpha": 0.2
|
|
16715
|
+
},
|
|
16716
|
+
"light-high-contrast": {
|
|
16717
|
+
"$value": "#2a313c",
|
|
16718
|
+
"alpha": 1,
|
|
16719
|
+
"filePath": "src/tokens/component/skeletonLoader.json5",
|
|
16720
|
+
"isSource": true,
|
|
16721
|
+
"$type": "color"
|
|
16722
|
+
},
|
|
16723
|
+
"dark-high-contrast": {
|
|
16724
|
+
"$value": "#2a313c",
|
|
16725
|
+
"alpha": 1,
|
|
16726
|
+
"filePath": "src/tokens/component/skeletonLoader.json5",
|
|
16727
|
+
"isSource": true,
|
|
16728
|
+
"$type": "color"
|
|
16729
|
+
}
|
|
16587
16730
|
}
|
|
16588
16731
|
},
|
|
16589
16732
|
"alpha": 0.2,
|
|
16590
|
-
"filePath": "src/tokens/
|
|
16733
|
+
"filePath": "src/tokens/component/skeletonLoader.json5",
|
|
16591
16734
|
"isSource": true,
|
|
16592
16735
|
"original": {
|
|
16593
16736
|
"$value": "{base.color.neutral.8}",
|
|
@@ -16597,6 +16740,25 @@
|
|
|
16597
16740
|
"collection": "mode",
|
|
16598
16741
|
"group": "component",
|
|
16599
16742
|
"scopes": ["bgColor"]
|
|
16743
|
+
},
|
|
16744
|
+
"org.primer.overrides": {
|
|
16745
|
+
"dark": {
|
|
16746
|
+
"alpha": 0.2
|
|
16747
|
+
},
|
|
16748
|
+
"light-high-contrast": {
|
|
16749
|
+
"$value": "{base.color.neutral.5}",
|
|
16750
|
+
"alpha": 1,
|
|
16751
|
+
"filePath": "src/tokens/component/skeletonLoader.json5",
|
|
16752
|
+
"isSource": true,
|
|
16753
|
+
"$type": "color"
|
|
16754
|
+
},
|
|
16755
|
+
"dark-high-contrast": {
|
|
16756
|
+
"$value": "{base.color.neutral.5}",
|
|
16757
|
+
"alpha": 1,
|
|
16758
|
+
"filePath": "src/tokens/component/skeletonLoader.json5",
|
|
16759
|
+
"isSource": true,
|
|
16760
|
+
"$type": "color"
|
|
16761
|
+
}
|
|
16600
16762
|
}
|
|
16601
16763
|
},
|
|
16602
16764
|
"alpha": 0.2
|