@primer/primitives 10.3.0-rc.416d4297 → 10.3.0-rc.8d184d75

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 (39) hide show
  1. package/dist/build/platforms/figma.js +40 -36
  2. package/dist/css/functional/themes/dark-colorblind.css +10 -10
  3. package/dist/css/functional/themes/dark-high-contrast.css +2 -2
  4. package/dist/css/functional/themes/light-colorblind.css +10 -10
  5. package/dist/css/functional/themes/light-high-contrast.css +2 -2
  6. package/dist/docs/functional/themes/dark-colorblind.json +467 -29
  7. package/dist/docs/functional/themes/dark-dimmed.json +258 -4
  8. package/dist/docs/functional/themes/dark-high-contrast.json +450 -22
  9. package/dist/docs/functional/themes/dark-tritanopia.json +375 -15
  10. package/dist/docs/functional/themes/dark.json +258 -4
  11. package/dist/docs/functional/themes/light-colorblind.json +446 -24
  12. package/dist/docs/functional/themes/light-high-contrast.json +391 -17
  13. package/dist/docs/functional/themes/light-tritanopia.json +415 -13
  14. package/dist/docs/functional/themes/light.json +258 -4
  15. package/dist/figma/themes/dark-colorblind.json +133 -0
  16. package/dist/figma/themes/dark-high-contrast.json +148 -0
  17. package/dist/figma/themes/dark-tritanopia.json +82 -0
  18. package/dist/figma/themes/light-colorblind.json +100 -1
  19. package/dist/figma/themes/light-high-contrast.json +96 -0
  20. package/dist/figma/themes/light-tritanopia.json +80 -0
  21. package/dist/internalCss/dark-colorblind.css +10 -10
  22. package/dist/internalCss/light-colorblind.css +10 -10
  23. package/dist/styleLint/functional/themes/dark-colorblind.json +467 -29
  24. package/dist/styleLint/functional/themes/dark-dimmed.json +258 -4
  25. package/dist/styleLint/functional/themes/dark-high-contrast.json +448 -20
  26. package/dist/styleLint/functional/themes/dark-tritanopia.json +375 -15
  27. package/dist/styleLint/functional/themes/dark.json +258 -4
  28. package/dist/styleLint/functional/themes/light-colorblind.json +446 -24
  29. package/dist/styleLint/functional/themes/light-high-contrast.json +389 -15
  30. package/dist/styleLint/functional/themes/light-tritanopia.json +415 -13
  31. package/dist/styleLint/functional/themes/light.json +258 -4
  32. package/package.json +1 -1
  33. package/src/tokens/component/diffBlob.json5 +94 -0
  34. package/src/tokens/functional/color/dark/overrides/dark.high-contrast.json5 +0 -60
  35. package/src/tokens/functional/color/dark/overrides/dark.protanopia-deuteranopia.json5 +5 -63
  36. package/src/tokens/functional/color/dark/overrides/dark.tritanopia.json5 +0 -37
  37. package/src/tokens/functional/color/light/overrides/light.high-contrast.json5 +0 -39
  38. package/src/tokens/functional/color/light/overrides/light.protanopia-deuteranopia.json5 +15 -76
  39. package/src/tokens/functional/color/light/overrides/light.tritanopia.json5 +0 -71
@@ -24,40 +24,44 @@ const validFigmaToken = (token, options) => __awaiter(void 0, void 0, void 0, fu
24
24
  // is a color or dimension type
25
25
  return validTypes.includes(token.$type);
26
26
  });
27
- export const figma = (outputFile, prefix, buildPath, options) => ({
28
- prefix,
29
- buildPath,
30
- preprocessors: ['themeOverrides'],
31
- transforms: [
32
- 'color/rgbaFloat',
33
- 'fontFamily/figma',
34
- 'float/pixelUnitless',
35
- 'dimension/pixelUnitless',
36
- // 'border/figma',
37
- // 'typography/figma',
38
- 'fontWeight/number',
39
- 'figma/attributes',
40
- 'name/pathToFigma',
41
- ],
42
- options: Object.assign(Object.assign({ basePxFontSize: 16, fontFamilies: {
43
- 'fontStack/system': 'SF Pro Text',
44
- 'fontStack/sansSerif': 'SF Pro Text',
45
- 'fontStack/sansSerifDisplay': 'SF Pro Display',
46
- 'fontStack/monospace': 'SF Mono',
47
- } }, options), { theme: options === null || options === void 0 ? void 0 : options.theme[0].replaceAll('-', ' '), themeOverrides: {
48
- theme: options === null || options === void 0 ? void 0 : options.theme,
49
- } }),
50
- files: [
51
- {
52
- destination: outputFile,
53
- filter: (token, config) => {
54
- return validFigmaToken(token, config);
27
+ export const figma = (outputFile, prefix, buildPath, options = {}) => {
28
+ const { theme } = options;
29
+ const figmaTheme = ((theme === null || theme === void 0 ? void 0 : theme[0]) || '').replaceAll('-', ' ');
30
+ return {
31
+ prefix,
32
+ buildPath,
33
+ preprocessors: ['themeOverrides'],
34
+ transforms: [
35
+ 'color/rgbaFloat',
36
+ 'fontFamily/figma',
37
+ 'float/pixelUnitless',
38
+ 'dimension/pixelUnitless',
39
+ // 'border/figma',
40
+ // 'typography/figma',
41
+ 'fontWeight/number',
42
+ 'figma/attributes',
43
+ 'name/pathToFigma',
44
+ ],
45
+ options: Object.assign(Object.assign({ basePxFontSize: 16, fontFamilies: {
46
+ 'fontStack/system': 'SF Pro Text',
47
+ 'fontStack/sansSerif': 'SF Pro Text',
48
+ 'fontStack/sansSerifDisplay': 'SF Pro Display',
49
+ 'fontStack/monospace': 'SF Mono',
50
+ } }, options), { theme: figmaTheme, themeOverrides: {
51
+ theme: options.theme,
52
+ } }),
53
+ files: [
54
+ {
55
+ destination: outputFile,
56
+ filter: (token, config) => {
57
+ return validFigmaToken(token, config);
58
+ },
59
+ format: `json/figma`,
60
+ options: {
61
+ outputReferences: true,
62
+ theme: figmaTheme,
63
+ },
55
64
  },
56
- format: `json/figma`,
57
- options: {
58
- outputReferences: true,
59
- theme: options === null || options === void 0 ? void 0 : options.theme[0].replaceAll('-', ' '),
60
- },
61
- },
62
- ],
63
- });
65
+ ],
66
+ };
67
+ };
@@ -30,8 +30,8 @@
30
30
  --bgColor-muted: #151b23;
31
31
  --bgColor-neutral-emphasis: #656c76;
32
32
  --bgColor-neutral-muted: #656c7633;
33
- --bgColor-open-emphasis: #bd561d;
34
- --bgColor-open-muted: #db6d2833;
33
+ --bgColor-open-emphasis: #1f6feb;
34
+ --bgColor-open-muted: #388bfd33;
35
35
  --bgColor-severe-emphasis: #bd561d;
36
36
  --bgColor-severe-muted: #db6d281a;
37
37
  --bgColor-sponsors-emphasis: #bf4b8a;
@@ -50,8 +50,8 @@
50
50
  --borderColor-done-emphasis: #8957e5;
51
51
  --borderColor-done-muted: #ab7df866;
52
52
  --borderColor-emphasis: #656c76;
53
- --borderColor-open-emphasis: #db6d28;
54
- --borderColor-open-muted: #db6d2866;
53
+ --borderColor-open-emphasis: #388bfd;
54
+ --borderColor-open-muted: #388bfd66;
55
55
  --borderColor-severe-emphasis: #bd561d;
56
56
  --borderColor-severe-muted: #db6d2866;
57
57
  --borderColor-sponsors-emphasis: #bf4b8a;
@@ -284,7 +284,7 @@
284
284
  --fgColor-link: var(--fgColor-accent);
285
285
  --fgColor-muted: #9198a1;
286
286
  --fgColor-neutral: #9198a1;
287
- --fgColor-open: #f0883e;
287
+ --fgColor-open: #58a6ff;
288
288
  --fgColor-severe: #db6d28;
289
289
  --fgColor-sponsors: #db61a2;
290
290
  --fgColor-success: #58a6ff;
@@ -636,8 +636,8 @@
636
636
  --bgColor-muted: #151b23;
637
637
  --bgColor-neutral-emphasis: #656c76;
638
638
  --bgColor-neutral-muted: #656c7633;
639
- --bgColor-open-emphasis: #bd561d;
640
- --bgColor-open-muted: #db6d2833;
639
+ --bgColor-open-emphasis: #1f6feb;
640
+ --bgColor-open-muted: #388bfd33;
641
641
  --bgColor-severe-emphasis: #bd561d;
642
642
  --bgColor-severe-muted: #db6d281a;
643
643
  --bgColor-sponsors-emphasis: #bf4b8a;
@@ -656,8 +656,8 @@
656
656
  --borderColor-done-emphasis: #8957e5;
657
657
  --borderColor-done-muted: #ab7df866;
658
658
  --borderColor-emphasis: #656c76;
659
- --borderColor-open-emphasis: #db6d28;
660
- --borderColor-open-muted: #db6d2866;
659
+ --borderColor-open-emphasis: #388bfd;
660
+ --borderColor-open-muted: #388bfd66;
661
661
  --borderColor-severe-emphasis: #bd561d;
662
662
  --borderColor-severe-muted: #db6d2866;
663
663
  --borderColor-sponsors-emphasis: #bf4b8a;
@@ -890,7 +890,7 @@
890
890
  --fgColor-link: var(--fgColor-accent);
891
891
  --fgColor-muted: #9198a1;
892
892
  --fgColor-neutral: #9198a1;
893
- --fgColor-open: #f0883e;
893
+ --fgColor-open: #58a6ff;
894
894
  --fgColor-severe: #db6d28;
895
895
  --fgColor-sponsors: #db61a2;
896
896
  --fgColor-success: #58a6ff;
@@ -412,7 +412,6 @@
412
412
  --sideNav-bgColor-selected: #212830;
413
413
  --skeletonLoader-bgColor: #2a313c;
414
414
  --timelineBadge-bgColor: #212830;
415
- --topicTag-borderColor: #00000000;
416
415
  --underlineNav-borderColor-active: #ff967d;
417
416
  --avatar-bgColor: #ffffff1a;
418
417
  --avatar-borderColor: #ffffffe6;
@@ -534,6 +533,7 @@
534
533
  --shadow-resting-medium: 0px 3px 6px 0px #010409cc;
535
534
  --shadow-resting-small: 0px 1px 0px 0px #01040966;
536
535
  --shadow-resting-xsmall: 0px 1px 0px 0px #010409cc;
536
+ --topicTag-borderColor: var(--borderColor-accent-emphasis);
537
537
  --treeViewItem-leadingVisual-iconColor-rest: var(--fgColor-muted);
538
538
  --underlineNav-iconColor-rest: var(--fgColor-muted);
539
539
  --border-closed-emphasis: var(--border-danger-emphasis);
@@ -1018,7 +1018,6 @@
1018
1018
  --sideNav-bgColor-selected: #212830;
1019
1019
  --skeletonLoader-bgColor: #2a313c;
1020
1020
  --timelineBadge-bgColor: #212830;
1021
- --topicTag-borderColor: #00000000;
1022
1021
  --underlineNav-borderColor-active: #ff967d;
1023
1022
  --avatar-bgColor: #ffffff1a;
1024
1023
  --avatar-borderColor: #ffffffe6;
@@ -1140,6 +1139,7 @@
1140
1139
  --shadow-resting-medium: 0px 3px 6px 0px #010409cc;
1141
1140
  --shadow-resting-small: 0px 1px 0px 0px #01040966;
1142
1141
  --shadow-resting-xsmall: 0px 1px 0px 0px #010409cc;
1142
+ --topicTag-borderColor: var(--borderColor-accent-emphasis);
1143
1143
  --treeViewItem-leadingVisual-iconColor-rest: var(--fgColor-muted);
1144
1144
  --underlineNav-iconColor-rest: var(--fgColor-muted);
1145
1145
  --border-closed-emphasis: var(--border-danger-emphasis);
@@ -29,8 +29,8 @@
29
29
  --bgColor-muted: #f6f8fa;
30
30
  --bgColor-neutral-emphasis: #59636e;
31
31
  --bgColor-neutral-muted: #818b981f;
32
- --bgColor-open-emphasis: #bc4c00;
33
- --bgColor-open-muted: #fff1e5;
32
+ --bgColor-open-emphasis: #0969da;
33
+ --bgColor-open-muted: #ddf4ff;
34
34
  --bgColor-severe-emphasis: #bc4c00;
35
35
  --bgColor-severe-muted: #fff1e5;
36
36
  --bgColor-sponsors-emphasis: #bf3989;
@@ -50,8 +50,8 @@
50
50
  --borderColor-done-muted: #c297ff66;
51
51
  --borderColor-emphasis: #818b98;
52
52
  --borderColor-neutral-emphasis: #59636e;
53
- --borderColor-open-emphasis: #e16f24;
54
- --borderColor-open-muted: #fb8f4466;
53
+ --borderColor-open-emphasis: #218bff;
54
+ --borderColor-open-muted: #54aeff66;
55
55
  --borderColor-severe-emphasis: #bc4c00;
56
56
  --borderColor-severe-muted: #fb8f4466;
57
57
  --borderColor-sponsors-emphasis: #bf3989;
@@ -266,7 +266,7 @@
266
266
  --fgColor-done: #8250df;
267
267
  --fgColor-muted: #59636e;
268
268
  --fgColor-neutral: #59636e;
269
- --fgColor-open: #bc4c00;
269
+ --fgColor-open: #0969da;
270
270
  --fgColor-severe: #bc4c00;
271
271
  --fgColor-sponsors: #bf3989;
272
272
  --fgColor-success: #0969da;
@@ -635,8 +635,8 @@
635
635
  --bgColor-muted: #f6f8fa;
636
636
  --bgColor-neutral-emphasis: #59636e;
637
637
  --bgColor-neutral-muted: #818b981f;
638
- --bgColor-open-emphasis: #bc4c00;
639
- --bgColor-open-muted: #fff1e5;
638
+ --bgColor-open-emphasis: #0969da;
639
+ --bgColor-open-muted: #ddf4ff;
640
640
  --bgColor-severe-emphasis: #bc4c00;
641
641
  --bgColor-severe-muted: #fff1e5;
642
642
  --bgColor-sponsors-emphasis: #bf3989;
@@ -656,8 +656,8 @@
656
656
  --borderColor-done-muted: #c297ff66;
657
657
  --borderColor-emphasis: #818b98;
658
658
  --borderColor-neutral-emphasis: #59636e;
659
- --borderColor-open-emphasis: #e16f24;
660
- --borderColor-open-muted: #fb8f4466;
659
+ --borderColor-open-emphasis: #218bff;
660
+ --borderColor-open-muted: #54aeff66;
661
661
  --borderColor-severe-emphasis: #bc4c00;
662
662
  --borderColor-severe-muted: #fb8f4466;
663
663
  --borderColor-sponsors-emphasis: #bf3989;
@@ -872,7 +872,7 @@
872
872
  --fgColor-done: #8250df;
873
873
  --fgColor-muted: #59636e;
874
874
  --fgColor-neutral: #59636e;
875
- --fgColor-open: #bc4c00;
875
+ --fgColor-open: #0969da;
876
876
  --fgColor-severe: #bc4c00;
877
877
  --fgColor-sponsors: #bf3989;
878
878
  --fgColor-success: #0969da;
@@ -398,7 +398,6 @@
398
398
  --shadow-floating-legacy: 0px 6px 12px -3px #25292e0a, 0px 6px 18px 0px #25292e1f;
399
399
  --shadow-resting-medium: 0px 3px 6px 0px #25292e1f;
400
400
  --skeletonLoader-bgColor: #dae0e7;
401
- --topicTag-borderColor: #ffffff00;
402
401
  --treeViewItem-leadingVisual-iconColor-rest: #368cf9;
403
402
  --underlineNav-borderColor-active: #cd3425;
404
403
  --avatar-bgColor: #ffffff;
@@ -540,6 +539,7 @@
540
539
  --sideNav-bgColor-selected: #ffffff;
541
540
  --timelineBadge-bgColor: var(--bgColor-muted);
542
541
  --tooltip-bgColor: var(--bgColor-emphasis);
542
+ --topicTag-borderColor: var(--borderColor-accent-emphasis);
543
543
  --underlineNav-iconColor-rest: var(--fgColor-muted);
544
544
  --border-closed-emphasis: var(--border-danger-emphasis);
545
545
  --border-closed-muted: var(--border-danger-muted);
@@ -1004,7 +1004,6 @@
1004
1004
  --shadow-floating-legacy: 0px 6px 12px -3px #25292e0a, 0px 6px 18px 0px #25292e1f;
1005
1005
  --shadow-resting-medium: 0px 3px 6px 0px #25292e1f;
1006
1006
  --skeletonLoader-bgColor: #dae0e7;
1007
- --topicTag-borderColor: #ffffff00;
1008
1007
  --treeViewItem-leadingVisual-iconColor-rest: #368cf9;
1009
1008
  --underlineNav-borderColor-active: #cd3425;
1010
1009
  --avatar-bgColor: #ffffff;
@@ -1146,6 +1145,7 @@
1146
1145
  --sideNav-bgColor-selected: #ffffff;
1147
1146
  --timelineBadge-bgColor: var(--bgColor-muted);
1148
1147
  --tooltip-bgColor: var(--bgColor-emphasis);
1148
+ --topicTag-borderColor: var(--borderColor-accent-emphasis);
1149
1149
  --underlineNav-iconColor-rest: var(--fgColor-muted);
1150
1150
  --border-closed-emphasis: var(--border-danger-emphasis);
1151
1151
  --border-closed-muted: var(--border-danger-muted);