@primer/primitives 11.4.0-rc.f798df25 → 11.4.1-rc.4e2d1de5

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 (198) hide show
  1. package/DESIGN_TOKENS_GUIDE.md +185 -0
  2. package/DESIGN_TOKENS_SPEC.md +565 -0
  3. package/dist/build/filters/hasLlmExtensions.d.ts +7 -0
  4. package/dist/build/filters/hasLlmExtensions.js +11 -0
  5. package/dist/build/filters/index.d.ts +1 -0
  6. package/dist/build/filters/index.js +1 -0
  7. package/dist/build/formats/index.d.ts +1 -0
  8. package/dist/build/formats/index.js +1 -0
  9. package/dist/build/formats/markdownLlmGuidelines.d.ts +11 -0
  10. package/dist/build/formats/markdownLlmGuidelines.js +1168 -0
  11. package/dist/build/platforms/index.d.ts +1 -0
  12. package/dist/build/platforms/index.js +1 -0
  13. package/dist/build/platforms/llmGuidelines.d.ts +2 -0
  14. package/dist/build/platforms/llmGuidelines.js +17 -0
  15. package/dist/build/preprocessors/inheritGroupProperties.d.ts +7 -0
  16. package/dist/build/preprocessors/inheritGroupProperties.js +70 -0
  17. package/dist/build/primerStyleDictionary.js +7 -1
  18. package/dist/build/schemas/borderToken.d.ts +22 -2
  19. package/dist/build/schemas/borderToken.js +6 -0
  20. package/dist/build/schemas/colorToken.d.ts +4 -0
  21. package/dist/build/schemas/colorToken.js +2 -0
  22. package/dist/build/schemas/cubicBezierToken.d.ts +6 -0
  23. package/dist/build/schemas/cubicBezierToken.js +10 -2
  24. package/dist/build/schemas/designToken.d.ts +1 -1
  25. package/dist/build/schemas/designToken.js +113 -21
  26. package/dist/build/schemas/dimensionToken.d.ts +14 -3
  27. package/dist/build/schemas/dimensionToken.js +6 -2
  28. package/dist/build/schemas/dimensionValue.d.ts +24 -1
  29. package/dist/build/schemas/dimensionValue.js +20 -1
  30. package/dist/build/schemas/durationToken.d.ts +13 -1
  31. package/dist/build/schemas/durationToken.js +6 -0
  32. package/dist/build/schemas/durationValue.d.ts +11 -1
  33. package/dist/build/schemas/durationValue.js +13 -3
  34. package/dist/build/schemas/fontFamilyToken.d.ts +4 -0
  35. package/dist/build/schemas/fontFamilyToken.js +2 -0
  36. package/dist/build/schemas/fontWeightToken.d.ts +4 -0
  37. package/dist/build/schemas/fontWeightToken.js +2 -0
  38. package/dist/build/schemas/gradientToken.d.ts +4 -0
  39. package/dist/build/schemas/gradientToken.js +2 -0
  40. package/dist/build/schemas/llmExtension.d.ts +9 -0
  41. package/dist/build/schemas/llmExtension.js +11 -0
  42. package/dist/build/schemas/numberToken.d.ts +4 -0
  43. package/dist/build/schemas/numberToken.js +2 -0
  44. package/dist/build/schemas/shadowToken.d.ts +676 -84
  45. package/dist/build/schemas/shadowToken.js +2 -0
  46. package/dist/build/schemas/stringToken.d.ts +6 -0
  47. package/dist/build/schemas/stringToken.js +6 -0
  48. package/dist/build/schemas/transitionToken.d.ts +20 -2
  49. package/dist/build/schemas/transitionToken.js +6 -0
  50. package/dist/build/schemas/typographyToken.d.ts +38 -4
  51. package/dist/build/schemas/typographyToken.js +6 -0
  52. package/dist/build/schemas/validTokenType.d.ts +5 -1
  53. package/dist/build/schemas/validTokenType.js +71 -17
  54. package/dist/build/schemas/viewportRangeToken.d.ts +6 -0
  55. package/dist/build/schemas/viewportRangeToken.js +6 -0
  56. package/dist/build/transformers/dimensionToPixelUnitless.d.ts +3 -2
  57. package/dist/build/transformers/dimensionToPixelUnitless.js +22 -26
  58. package/dist/build/transformers/dimensionToRem.d.ts +2 -1
  59. package/dist/build/transformers/dimensionToRem.js +21 -22
  60. package/dist/build/transformers/dimensionToRemPxArray.d.ts +2 -1
  61. package/dist/build/transformers/dimensionToRemPxArray.js +21 -22
  62. package/dist/build/transformers/durationToCss.d.ts +2 -1
  63. package/dist/build/transformers/durationToCss.js +18 -11
  64. package/dist/build/transformers/utilities/parseDimension.d.ts +12 -0
  65. package/dist/build/transformers/utilities/parseDimension.js +31 -0
  66. package/dist/build/types/dimensionTokenValue.d.ts +9 -0
  67. package/dist/css/base/motion/motion.css +5 -4
  68. package/dist/css/functional/size/border.css +9 -14
  69. package/dist/css/functional/size/radius.css +7 -0
  70. package/dist/css/functional/size/size-coarse.css +3 -3
  71. package/dist/css/functional/size/size-fine.css +3 -3
  72. package/dist/css/functional/size/viewport.css +1 -1
  73. package/dist/css/functional/themes/dark-colorblind-high-contrast.css +194 -190
  74. package/dist/css/functional/themes/dark-colorblind.css +194 -190
  75. package/dist/css/functional/themes/dark-dimmed-high-contrast.css +194 -190
  76. package/dist/css/functional/themes/dark-dimmed.css +194 -190
  77. package/dist/css/functional/themes/dark-high-contrast.css +194 -190
  78. package/dist/css/functional/themes/dark-tritanopia-high-contrast.css +194 -190
  79. package/dist/css/functional/themes/dark-tritanopia.css +194 -190
  80. package/dist/css/functional/themes/dark.css +194 -190
  81. package/dist/css/functional/themes/light-colorblind-high-contrast.css +194 -190
  82. package/dist/css/functional/themes/light-colorblind.css +194 -190
  83. package/dist/css/functional/themes/light-high-contrast.css +194 -190
  84. package/dist/css/functional/themes/light-tritanopia-high-contrast.css +194 -190
  85. package/dist/css/functional/themes/light-tritanopia.css +194 -190
  86. package/dist/css/functional/themes/light.css +194 -190
  87. package/dist/css/functional/typography/typography.css +4 -4
  88. package/dist/css/primitives.css +5 -0
  89. package/dist/docs/base/motion/motion.json +181 -32
  90. package/dist/docs/base/size/size.json +76 -19
  91. package/dist/docs/base/typography/typography.json +24 -6
  92. package/dist/docs/functional/size/border.json +62 -182
  93. package/dist/docs/functional/size/breakpoints.json +24 -6
  94. package/dist/docs/functional/size/radius.json +221 -0
  95. package/dist/docs/functional/size/size-coarse.json +45 -3
  96. package/dist/docs/functional/size/size-fine.json +45 -3
  97. package/dist/docs/functional/size/size.json +60 -15
  98. package/dist/docs/functional/size/viewport.json +2 -2
  99. package/dist/docs/functional/themes/dark-colorblind-high-contrast.json +1043 -97
  100. package/dist/docs/functional/themes/dark-colorblind.json +1043 -97
  101. package/dist/docs/functional/themes/dark-dimmed-high-contrast.json +1043 -97
  102. package/dist/docs/functional/themes/dark-dimmed.json +1081 -135
  103. package/dist/docs/functional/themes/dark-high-contrast.json +1043 -97
  104. package/dist/docs/functional/themes/dark-tritanopia-high-contrast.json +1043 -97
  105. package/dist/docs/functional/themes/dark-tritanopia.json +1043 -97
  106. package/dist/docs/functional/themes/dark.json +1043 -97
  107. package/dist/docs/functional/themes/light-colorblind-high-contrast.json +1049 -103
  108. package/dist/docs/functional/themes/light-colorblind.json +1049 -103
  109. package/dist/docs/functional/themes/light-high-contrast.json +1049 -103
  110. package/dist/docs/functional/themes/light-tritanopia-high-contrast.json +1049 -103
  111. package/dist/docs/functional/themes/light-tritanopia.json +1049 -103
  112. package/dist/docs/functional/themes/light.json +1049 -103
  113. package/dist/docs/functional/typography/typography.json +180 -10
  114. package/dist/fallbacks/base/motion/motion.json +49 -12
  115. package/dist/fallbacks/functional/size/border.json +0 -5
  116. package/dist/fallbacks/functional/size/radius.json +7 -0
  117. package/dist/fallbacks/functional/size/viewport.json +1 -1
  118. package/dist/figma/dimension/dimension.json +30 -20
  119. package/dist/figma/themes/dark-colorblind.json +85 -0
  120. package/dist/figma/themes/dark-dimmed.json +134 -49
  121. package/dist/figma/themes/dark-high-contrast.json +85 -0
  122. package/dist/figma/themes/dark-tritanopia.json +85 -0
  123. package/dist/figma/themes/dark.json +85 -0
  124. package/dist/figma/themes/light-colorblind.json +89 -4
  125. package/dist/figma/themes/light-high-contrast.json +89 -4
  126. package/dist/figma/themes/light-tritanopia.json +89 -4
  127. package/dist/figma/themes/light.json +89 -4
  128. package/dist/figma/typography/typography.json +44 -40
  129. package/dist/internalCss/dark-colorblind-high-contrast.css +208 -218
  130. package/dist/internalCss/dark-colorblind.css +208 -218
  131. package/dist/internalCss/dark-dimmed-high-contrast.css +208 -218
  132. package/dist/internalCss/dark-dimmed.css +208 -218
  133. package/dist/internalCss/dark-high-contrast.css +208 -218
  134. package/dist/internalCss/dark-tritanopia-high-contrast.css +208 -218
  135. package/dist/internalCss/dark-tritanopia.css +208 -218
  136. package/dist/internalCss/dark.css +208 -218
  137. package/dist/internalCss/light-colorblind-high-contrast.css +208 -218
  138. package/dist/internalCss/light-colorblind.css +208 -218
  139. package/dist/internalCss/light-high-contrast.css +208 -218
  140. package/dist/internalCss/light-tritanopia-high-contrast.css +208 -218
  141. package/dist/internalCss/light-tritanopia.css +208 -218
  142. package/dist/internalCss/light.css +208 -218
  143. package/dist/styleLint/base/motion/motion.json +181 -32
  144. package/dist/styleLint/base/size/size.json +76 -19
  145. package/dist/styleLint/base/typography/typography.json +30 -12
  146. package/dist/styleLint/functional/size/border.json +55 -175
  147. package/dist/styleLint/functional/size/breakpoints.json +24 -6
  148. package/dist/styleLint/functional/size/radius.json +221 -0
  149. package/dist/styleLint/functional/size/size-coarse.json +45 -3
  150. package/dist/styleLint/functional/size/size-fine.json +45 -3
  151. package/dist/styleLint/functional/size/size.json +111 -66
  152. package/dist/styleLint/functional/size/viewport.json +2 -2
  153. package/dist/styleLint/functional/themes/dark-colorblind-high-contrast.json +975 -29
  154. package/dist/styleLint/functional/themes/dark-colorblind.json +975 -29
  155. package/dist/styleLint/functional/themes/dark-dimmed-high-contrast.json +975 -29
  156. package/dist/styleLint/functional/themes/dark-dimmed.json +1013 -67
  157. package/dist/styleLint/functional/themes/dark-high-contrast.json +975 -29
  158. package/dist/styleLint/functional/themes/dark-tritanopia-high-contrast.json +975 -29
  159. package/dist/styleLint/functional/themes/dark-tritanopia.json +975 -29
  160. package/dist/styleLint/functional/themes/dark.json +975 -29
  161. package/dist/styleLint/functional/themes/light-colorblind-high-contrast.json +981 -35
  162. package/dist/styleLint/functional/themes/light-colorblind.json +981 -35
  163. package/dist/styleLint/functional/themes/light-high-contrast.json +981 -35
  164. package/dist/styleLint/functional/themes/light-tritanopia-high-contrast.json +981 -35
  165. package/dist/styleLint/functional/themes/light-tritanopia.json +981 -35
  166. package/dist/styleLint/functional/themes/light.json +981 -35
  167. package/dist/styleLint/functional/typography/typography.json +196 -26
  168. package/package.json +6 -3
  169. package/src/tokens/base/motion/easing.json5 +39 -4
  170. package/src/tokens/base/motion/timing.json5 +12 -12
  171. package/src/tokens/base/size/size.json5 +19 -19
  172. package/src/tokens/base/typography/typography.json5 +6 -6
  173. package/src/tokens/functional/border/border.json5 +25 -0
  174. package/src/tokens/functional/color/bgColor.json5 +165 -0
  175. package/src/tokens/functional/color/borderColor.json5 +146 -0
  176. package/src/tokens/functional/color/control.json5 +24 -0
  177. package/src/tokens/functional/color/data-vis.json5 +7 -0
  178. package/src/tokens/functional/color/display.json5 +7 -0
  179. package/src/tokens/functional/color/fgColor.json5 +101 -1
  180. package/src/tokens/functional/color/focus.json5 +5 -0
  181. package/src/tokens/functional/color/selection.json5 +5 -0
  182. package/src/tokens/functional/color/syntax.json5 +14 -0
  183. package/src/tokens/functional/shadow/shadow.json5 +49 -4
  184. package/src/tokens/functional/size/border.json5 +22 -74
  185. package/src/tokens/functional/size/breakpoints.json5 +6 -6
  186. package/src/tokens/functional/size/radius.json5 +90 -0
  187. package/src/tokens/functional/size/size-coarse.json5 +24 -3
  188. package/src/tokens/functional/size/size-fine.json5 +45 -24
  189. package/src/tokens/functional/size/size.json5 +50 -15
  190. package/src/tokens/functional/size/viewport.json5 +1 -1
  191. package/src/tokens/functional/typography/font-stack.json5 +60 -0
  192. package/src/tokens/functional/typography/typography.json5 +71 -44
  193. package/dist/build/parsers/index.d.ts +0 -1
  194. package/dist/build/parsers/index.js +0 -1
  195. package/dist/build/parsers/w3cJsonParser.d.ts +0 -6
  196. package/dist/build/parsers/w3cJsonParser.js +0 -25
  197. package/dist/removed/testing.json5 +0 -4
  198. package/src/tokens/removed/testing.json5 +0 -4
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @spec See /DESIGN_TOKENS_SPEC.md for naming logic and semantic pairings.
3
+ * @rule Never use raw values (hex/px). Use semantic tokens ONLY.
4
+ */
1
5
  [data-color-mode="light"][data-light-theme="light_colorblind"],
2
6
  [data-color-mode="auto"][data-light-theme="light_colorblind"] {
3
7
  --button-outline-bgColor-active: #0757ba;
@@ -11,50 +15,50 @@
11
15
  --reactionButton-selected-bgColor-hover: #caecff;
12
16
  --avatarStack-fade-bgColor-default: #c8d1da;
13
17
  --avatarStack-fade-bgColor-muted: #dae0e7;
14
- --bgColor-accent-emphasis: #0969da;
15
- --bgColor-accent-muted: #ddf4ff;
16
- --bgColor-attention-emphasis: #9a6700;
17
- --bgColor-attention-muted: #fff8c5;
18
- --bgColor-danger-emphasis: #bc4c00;
19
- --bgColor-danger-muted: #fff1e5;
20
- --bgColor-disabled: #eff2f5;
21
- --bgColor-done-emphasis: #8250df;
22
- --bgColor-done-muted: #fbefff;
23
- --bgColor-emphasis: #25292e;
24
- --bgColor-inverse: #25292e;
25
- --bgColor-muted: #f6f8fa;
26
- --bgColor-neutral-emphasis: #59636e;
27
- --bgColor-neutral-muted: #818b981f;
28
- --bgColor-open-emphasis: #bc4c00;
29
- --bgColor-open-muted: #fff1e5;
30
- --bgColor-severe-emphasis: #bc4c00;
31
- --bgColor-severe-muted: #fff1e5;
32
- --bgColor-sponsors-emphasis: #bf3989;
33
- --bgColor-sponsors-muted: #ffeff7;
34
- --bgColor-success-emphasis: #0969da;
35
- --bgColor-success-muted: #ddf4ff;
36
- --bgColor-transparent: #ffffff00;
37
- --borderColor-accent-emphasis: #0969da;
38
- --borderColor-accent-muted: #54aeff66;
39
- --borderColor-attention-emphasis: #9a6700;
40
- --borderColor-attention-muted: #d4a72c66;
41
- --borderColor-danger-emphasis: #bc4c00;
42
- --borderColor-danger-muted: #fff1e5;
43
- --borderColor-default: #d1d9e0;
44
- --borderColor-disabled: #818b981a;
45
- --borderColor-done-emphasis: #8250df;
46
- --borderColor-done-muted: #c297ff66;
47
- --borderColor-emphasis: #818b98;
48
- --borderColor-neutral-emphasis: #59636e;
49
- --borderColor-open-emphasis: #bc4c00;
50
- --borderColor-open-muted: #fb8f4466;
51
- --borderColor-severe-emphasis: #bc4c00;
52
- --borderColor-severe-muted: #fb8f4466;
53
- --borderColor-sponsors-emphasis: #bf3989;
54
- --borderColor-sponsors-muted: #ff80c866;
55
- --borderColor-success-emphasis: #0969da;
56
- --borderColor-success-muted: #ddf4ff;
57
- --borderColor-transparent: #ffffff00;
18
+ --bgColor-accent-emphasis: #0969da; /** Strong accent background for active states and focused states */
19
+ --bgColor-accent-muted: #ddf4ff; /** Subtle accent background for informational or selected elements */
20
+ --bgColor-attention-emphasis: #9a6700; /** Strong attention background for prominent warnings */
21
+ --bgColor-attention-muted: #fff8c5; /** Subtle attention background for warnings and caution states */
22
+ --bgColor-danger-emphasis: #bc4c00; /** Emphasized danger background for critical errors and delete confirmations */
23
+ --bgColor-danger-muted: #fff1e5; /** Muted danger background for error states and destructive action contexts */
24
+ --bgColor-disabled: #eff2f5; /** Background for disabled interactive elements */
25
+ --bgColor-done-emphasis: #8250df; /** Strong background for completed/done state badges and labels */
26
+ --bgColor-done-muted: #fbefff; /** Subtle background for completed/done state indicators */
27
+ --bgColor-emphasis: #25292e; /** High-emphasis dark background for strong visual contrast */
28
+ --bgColor-inverse: #25292e; /** Inverse background that flips between light and dark modes */
29
+ --bgColor-muted: #f6f8fa; /** Muted background for secondary content areas and subtle grouping */
30
+ --bgColor-neutral-emphasis: #59636e; /** Strong neutral background for prominent neutral elements */
31
+ --bgColor-neutral-muted: #818b981f; /** Subtle neutral background for tags, labels, and secondary UI elements */
32
+ --bgColor-open-emphasis: #bc4c00; /** Strong background for open state badges and labels */
33
+ --bgColor-open-muted: #fff1e5; /** Subtle background for open state indicators (issues, PRs) */
34
+ --bgColor-severe-emphasis: #bc4c00; /** Strong severe background for prominent high-priority warnings */
35
+ --bgColor-severe-muted: #fff1e5; /** Subtle severe background for high-priority warnings */
36
+ --bgColor-sponsors-emphasis: #bf3989; /** Strong background for prominent GitHub Sponsors elements */
37
+ --bgColor-sponsors-muted: #ffeff7; /** Subtle background for GitHub Sponsors content */
38
+ --bgColor-success-emphasis: #0969da; /** Strong success background for prominent positive actions */
39
+ --bgColor-success-muted: #ddf4ff; /** Subtle success background for positive feedback and completed states */
40
+ --bgColor-transparent: #ffffff00; /** Fully transparent background */
41
+ --borderColor-accent-emphasis: #0969da; /** Strong accent border for selected or focused elements */
42
+ --borderColor-accent-muted: #54aeff66; /** Subtle accent border for selected or focused elements */
43
+ --borderColor-attention-emphasis: #9a6700; /** Strong attention border for prominent warnings */
44
+ --borderColor-attention-muted: #d4a72c66; /** Subtle attention border for warnings and caution states */
45
+ --borderColor-danger-emphasis: #bc4c00; /** Strong danger border for destructive actions and errors */
46
+ --borderColor-danger-muted: #fff1e5; /** Subtle danger border for errors and destructive contexts */
47
+ --borderColor-default: #d1d9e0; /** Default border color for most UI elements */
48
+ --borderColor-disabled: #818b981a; /** Border color for disabled interactive elements */
49
+ --borderColor-done-emphasis: #8250df; /** Strong border for completed/done state badges */
50
+ --borderColor-done-muted: #c297ff66; /** Subtle border for completed/done state indicators */
51
+ --borderColor-emphasis: #818b98; /** Strong border for emphasis and visual weight */
52
+ --borderColor-neutral-emphasis: #59636e; /** Strong neutral semantic border */
53
+ --borderColor-open-emphasis: #bc4c00; /** Strong border for open state badges */
54
+ --borderColor-open-muted: #fb8f4466; /** Subtle border for open state indicators */
55
+ --borderColor-severe-emphasis: #bc4c00; /** Strong severe border for prominent high-priority warnings */
56
+ --borderColor-severe-muted: #fb8f4466; /** Subtle severe border for high-priority warnings */
57
+ --borderColor-sponsors-emphasis: #bf3989; /** Strong border for prominent GitHub Sponsors elements */
58
+ --borderColor-sponsors-muted: #ff80c866; /** Subtle border for GitHub Sponsors content */
59
+ --borderColor-success-emphasis: #0969da; /** Strong success border for prominent positive elements */
60
+ --borderColor-success-muted: #ddf4ff; /** Subtle success border for positive feedback elements */
61
+ --borderColor-transparent: #ffffff00; /** Fully transparent border */
58
62
  --button-danger-bgColor-active: #953800;
59
63
  --button-danger-shadow-selected: inset 0px 1px 0px 0px #47170033;
60
64
  --button-inactive-bgColor: #e6eaef;
@@ -477,17 +481,17 @@
477
481
  --display-yellow-scale-7: #704d00;
478
482
  --display-yellow-scale-8: #5c3d00;
479
483
  --display-yellow-scale-9: #422b00;
480
- --fgColor-accent: #0969da;
481
- --fgColor-attention: #9a6700;
482
- --fgColor-danger: #bc4c00;
483
- --fgColor-disabled: #818b98;
484
- --fgColor-done: #8250df;
485
- --fgColor-muted: #59636e;
486
- --fgColor-neutral: #59636e;
487
- --fgColor-open: #bc4c00;
488
- --fgColor-severe: #bc4c00;
489
- --fgColor-sponsors: #bf3989;
490
- --fgColor-success: #0969da;
484
+ --fgColor-accent: #0969da; /** Accent text for links and interactive elements */
485
+ --fgColor-attention: #9a6700; /** Attention text for warnings and caution states */
486
+ --fgColor-danger: #bc4c00; /** Danger text for errors and destructive actions */
487
+ --fgColor-disabled: #818b98; /** Text color for disabled interactive elements */
488
+ --fgColor-done: #8250df; /** Text color for completed/done state indicators */
489
+ --fgColor-muted: #59636e; /** Muted text for secondary content and less important information */
490
+ --fgColor-neutral: #59636e; /** Neutral semantic text for icons and secondary elements */
491
+ --fgColor-open: #bc4c00; /** Text color for open state indicators (issues, PRs) */
492
+ --fgColor-severe: #bc4c00; /** Severe text for high-priority warnings */
493
+ --fgColor-sponsors: #bf3989; /** Text color for GitHub Sponsors content */
494
+ --fgColor-success: #0969da; /** Success text for positive feedback and completed states */
491
495
  --header-bgColor: #25292e;
492
496
  --header-borderColor-divider: #818b98;
493
497
  --headerSearch-bgColor: #25292e;
@@ -633,24 +637,24 @@
633
637
  --reactionButton-selected-fgColor-hover: #0550ae;
634
638
  --selectMenu-bgColor-active: #b6e3ff;
635
639
  --selectMenu-borderColor: #ffffff00;
636
- --shadow-floating-legacy: 0px 6px 12px -3px #25292e0a, 0px 6px 18px 0px #25292e1f;
637
- --shadow-resting-medium: 0px 1px 1px 0px #25292e1a, 0px 3px 6px 0px #25292e1f;
640
+ --shadow-floating-legacy: 0px 6px 12px -3px #25292e0a, 0px 6px 18px 0px #25292e1f; /** Legacy floating shadow for backward compatibility */
641
+ --shadow-resting-medium: 0px 1px 1px 0px #25292e1a, 0px 3px 6px 0px #25292e1f; /** Medium resting shadow for cards and elevated surfaces */
638
642
  --skeletonLoader-bgColor: #818b981a;
639
643
  --topicTag-borderColor: #ffffff00;
640
644
  --treeViewItem-leadingVisual-iconColor-rest: #54aeff;
641
645
  --underlineNav-borderColor-active: #fd8c73;
642
646
  --avatar-bgColor: #ffffff;
643
647
  --avatar-shadow: 0px 0px 0px 2px #ffffffcc;
644
- --bgColor-black: #1f2328;
645
- --bgColor-closed-emphasis: var(--bgColor-neutral-emphasis);
646
- --bgColor-closed-muted: var(--bgColor-neutral-muted);
647
- --bgColor-default: #ffffff;
648
- --bgColor-draft-emphasis: var(--bgColor-neutral-emphasis);
649
- --bgColor-draft-muted: var(--bgColor-neutral-muted);
650
- --bgColor-inset: var(--bgColor-muted);
651
- --bgColor-upsell-emphasis: var(--bgColor-done-emphasis);
652
- --bgColor-upsell-muted: var(--bgColor-done-muted);
653
- --bgColor-white: #ffffff;
648
+ --bgColor-black: #1f2328; /** Pure black background */
649
+ --bgColor-closed-emphasis: var(--bgColor-neutral-emphasis); /** Strong background for closed state badges and labels */
650
+ --bgColor-closed-muted: var(--bgColor-neutral-muted); /** Subtle background for closed state indicators (issues, PRs) */
651
+ --bgColor-default: #ffffff; /** Default background color for pages and main content areas */
652
+ --bgColor-draft-emphasis: var(--bgColor-neutral-emphasis); /** Strong background for draft state badges and labels */
653
+ --bgColor-draft-muted: var(--bgColor-neutral-muted); /** Subtle background for draft state indicators */
654
+ --bgColor-inset: var(--bgColor-muted); /** Inset background for recessed content areas like wells or sunken panels */
655
+ --bgColor-upsell-emphasis: var(--bgColor-done-emphasis); /** Strong background for prominent upsell elements */
656
+ --bgColor-upsell-muted: var(--bgColor-done-muted); /** Subtle background for upsell and promotional content */
657
+ --bgColor-white: #ffffff; /** Pure white background */
654
658
  --border-accent-emphasis: 0.0625rem solid #0969da;
655
659
  --border-accent-muted: 0.0625rem solid #54aeff66;
656
660
  --border-attention-emphasis: 0.0625rem solid #9a6700;
@@ -670,14 +674,14 @@
670
674
  --border-success-emphasis: 0.0625rem solid #0969da;
671
675
  --border-success-muted: 0.0625rem solid #ddf4ff;
672
676
  --border-transparent: 0.0625rem solid #ffffff00;
673
- --borderColor-closed-emphasis: var(--borderColor-emphasis);
674
- --borderColor-closed-muted: #d1d9e066;
675
- --borderColor-draft-emphasis: var(--borderColor-neutral-emphasis);
676
- --borderColor-draft-muted: #d1d9e066;
677
- --borderColor-muted: #d1d9e0b3;
678
- --borderColor-translucent: #1f232826;
679
- --borderColor-upsell-emphasis: var(--borderColor-done-emphasis);
680
- --borderColor-upsell-muted: var(--borderColor-done-muted);
677
+ --borderColor-closed-emphasis: var(--borderColor-emphasis); /** Strong border for closed state badges */
678
+ --borderColor-closed-muted: #d1d9e066; /** Subtle border for closed state indicators */
679
+ --borderColor-draft-emphasis: var(--borderColor-neutral-emphasis); /** Strong border for draft state badges */
680
+ --borderColor-draft-muted: #d1d9e066; /** Subtle border for draft state indicators */
681
+ --borderColor-muted: #d1d9e0b3; /** Subtle border for secondary elements and light separators */
682
+ --borderColor-translucent: #1f232826; /** Semi-transparent border for overlays and layered elements */
683
+ --borderColor-upsell-emphasis: var(--borderColor-done-emphasis); /** Strong border for prominent upsell elements */
684
+ --borderColor-upsell-muted: var(--borderColor-done-muted); /** Subtle border for upsell and promotional content */
681
685
  --button-danger-bgColor-hover: var(--bgColor-danger-emphasis);
682
686
  --button-danger-bgColor-rest: var(--control-bgColor-rest);
683
687
  --button-danger-fgColor-active: #ffffff;
@@ -778,16 +782,16 @@
778
782
  --diffBlob-emptyNum-bgColor: var(--bgColor-muted);
779
783
  --diffBlob-expander-iconColor: var(--fgColor-muted);
780
784
  --diffBlob-hunkLine-fgColor: var(--fgColor-muted);
781
- --fgColor-black: #1f2328;
782
- --fgColor-closed: var(--fgColor-muted);
783
- --fgColor-default: #1f2328;
784
- --fgColor-draft: var(--fgColor-neutral);
785
- --fgColor-link: var(--fgColor-accent);
786
- --fgColor-onEmphasis: #ffffff;
787
- --fgColor-onInverse: #ffffff;
788
- --fgColor-upsell: var(--fgColor-done);
789
- --fgColor-white: #ffffff;
790
- --focus-outlineColor: var(--borderColor-accent-emphasis);
785
+ --fgColor-black: #1f2328; /** Pure black text */
786
+ --fgColor-closed: var(--fgColor-muted); /** Text color for closed state indicators (issues, PRs) */
787
+ --fgColor-default: #1f2328; /** Default text color for primary content and headings */
788
+ --fgColor-draft: var(--fgColor-neutral); /** Text color for draft state indicators */
789
+ --fgColor-link: var(--fgColor-accent); /** Text color for hyperlinks */
790
+ --fgColor-onEmphasis: #ffffff; /** Text color for use on emphasis backgrounds */
791
+ --fgColor-onInverse: #ffffff; /** Text color for use on inverse backgrounds */
792
+ --fgColor-upsell: var(--fgColor-done); /** Text color for upsell and promotional content */
793
+ --fgColor-white: #ffffff; /** Pure white text */
794
+ --focus-outlineColor: var(--borderColor-accent-emphasis); /** Outline color for focus states on interactive elements */
791
795
  --header-fgColor-default: #ffffffb3;
792
796
  --header-fgColor-logo: #ffffff;
793
797
  --overlay-bgColor: #ffffff;
@@ -801,10 +805,10 @@
801
805
  --progressBar-bgColor-sponsors: var(--bgColor-sponsors-emphasis);
802
806
  --progressBar-bgColor-success: var(--bgColor-success-emphasis);
803
807
  --progressBar-track-bgColor: var(--borderColor-default);
804
- --selection-bgColor: #0969da33;
805
- --shadow-inset: inset 0px 1px 0px 0px #1f23280a;
806
- --shadow-resting-small: 0px 1px 1px 0px #1f23280f, 0px 1px 3px 0px #1f23280f;
807
- --shadow-resting-xsmall: 0px 1px 1px 0px #1f23280f;
808
+ --selection-bgColor: #0969da33; /** Background color for text selection highlights */
809
+ --shadow-inset: inset 0px 1px 0px 0px #1f23280a; /** Inset shadow for recessed elements */
810
+ --shadow-resting-small: 0px 1px 1px 0px #1f23280a, 0px 1px 2px 0px #1f232808; /** Small resting shadow for buttons and interactive elements */
811
+ --shadow-resting-xsmall: 0px 1px 1px 0px #1f23280d; /** Extra small resting shadow for minimal elevation */
808
812
  --sideNav-bgColor-selected: #ffffff;
809
813
  --timelineBadge-bgColor: var(--bgColor-muted);
810
814
  --tooltip-bgColor: var(--bgColor-emphasis);
@@ -817,7 +821,7 @@
817
821
  --border-open-muted: var(--border-success-muted);
818
822
  --border-upsell-emphasis: 0.0625rem solid #8250df;
819
823
  --border-upsell-muted: 0.0625rem solid #c297ff66;
820
- --borderColor-neutral-muted: var(--borderColor-muted);
824
+ --borderColor-neutral-muted: var(--borderColor-muted); /** Subtle neutral semantic border */
821
825
  --button-danger-bgColor-disabled: var(--control-bgColor-disabled);
822
826
  --button-danger-borderColor-rest: var(--control-borderColor-rest);
823
827
  --button-danger-iconColor-rest: var(--button-danger-fgColor-rest);
@@ -873,7 +877,7 @@
873
877
  --diffBlob-deletionWord-fgColor: var(--fgColor-default);
874
878
  --diffBlob-hunkNum-fgColor-hover: var(--fgColor-default);
875
879
  --diffBlob-hunkNum-fgColor-rest: var(--fgColor-default);
876
- --focus-outline: 2px solid #0969da;
880
+ --focus-outline: 2px solid #0969da; /** Focus ring outline for keyboard navigation and accessibility. */
877
881
  --overlay-borderColor: #d1d9e080;
878
882
  --reactionButton-selected-fgColor-rest: var(--fgColor-link);
879
883
  --tooltip-fgColor: var(--fgColor-onEmphasis);
@@ -887,10 +891,10 @@
887
891
  --buttonKeybindingHint-danger-borderColor-disabled: var(--buttonKeybindingHint-default-borderColor-disabled);
888
892
  --buttonKeybindingHint-danger-borderColor-rest: var(--buttonKeybindingHint-default-borderColor-rest);
889
893
  --buttonKeybindingHint-danger-fgColor-disabled: var(--buttonKeybindingHint-default-fgColor-disabled);
890
- --shadow-floating-large: 0px 0px 0px 1px #d1d9e0, 0px 40px 80px 0px #25292e3d;
891
- --shadow-floating-medium: 0px 0px 0px 1px #d1d9e0, 0px 8px 16px -4px #25292e14, 0px 4px 32px -4px #25292e14, 0px 24px 48px -12px #25292e14, 0px 48px 96px -24px #25292e14;
892
- --shadow-floating-small: 0px 0px 0px 1px #d1d9e080, 0px 6px 12px -3px #25292e0a, 0px 6px 18px 0px #25292e1f;
893
- --shadow-floating-xlarge: 0px 0px 0px 1px #d1d9e0, 0px 56px 112px 0px #25292e52;
894
+ --shadow-floating-large: 0px 0px 0px 1px #d1d9e0, 0px 40px 80px 0px #25292e3d; /** Large floating shadow for modals and dialogs */
895
+ --shadow-floating-medium: 0px 0px 0px 1px #d1d9e0, 0px 8px 16px -4px #25292e14, 0px 4px 32px -4px #25292e14, 0px 24px 48px -12px #25292e14, 0px 48px 96px -24px #25292e14; /** Medium floating shadow for popovers and action menus */
896
+ --shadow-floating-small: 0px 0px 0px 1px #d1d9e080, 0px 6px 12px -3px #25292e0a, 0px 6px 18px 0px #25292e1f; /** Small floating shadow for dropdowns, tooltips, and small overlays */
897
+ --shadow-floating-xlarge: 0px 0px 0px 1px #d1d9e0, 0px 56px 112px 0px #25292e52; /** Extra large floating shadow for full-screen overlays and sheets */
894
898
  --button-danger-borderColor-active: var(--button-danger-borderColor-hover);
895
899
  --button-outline-borderColor-hover: var(--button-primary-borderColor-hover);
896
900
  --button-outline-borderColor-active: var(--button-outline-borderColor-hover);
@@ -908,50 +912,50 @@
908
912
  --reactionButton-selected-bgColor-hover: #caecff;
909
913
  --avatarStack-fade-bgColor-default: #c8d1da;
910
914
  --avatarStack-fade-bgColor-muted: #dae0e7;
911
- --bgColor-accent-emphasis: #0969da;
912
- --bgColor-accent-muted: #ddf4ff;
913
- --bgColor-attention-emphasis: #9a6700;
914
- --bgColor-attention-muted: #fff8c5;
915
- --bgColor-danger-emphasis: #bc4c00;
916
- --bgColor-danger-muted: #fff1e5;
917
- --bgColor-disabled: #eff2f5;
918
- --bgColor-done-emphasis: #8250df;
919
- --bgColor-done-muted: #fbefff;
920
- --bgColor-emphasis: #25292e;
921
- --bgColor-inverse: #25292e;
922
- --bgColor-muted: #f6f8fa;
923
- --bgColor-neutral-emphasis: #59636e;
924
- --bgColor-neutral-muted: #818b981f;
925
- --bgColor-open-emphasis: #bc4c00;
926
- --bgColor-open-muted: #fff1e5;
927
- --bgColor-severe-emphasis: #bc4c00;
928
- --bgColor-severe-muted: #fff1e5;
929
- --bgColor-sponsors-emphasis: #bf3989;
930
- --bgColor-sponsors-muted: #ffeff7;
931
- --bgColor-success-emphasis: #0969da;
932
- --bgColor-success-muted: #ddf4ff;
933
- --bgColor-transparent: #ffffff00;
934
- --borderColor-accent-emphasis: #0969da;
935
- --borderColor-accent-muted: #54aeff66;
936
- --borderColor-attention-emphasis: #9a6700;
937
- --borderColor-attention-muted: #d4a72c66;
938
- --borderColor-danger-emphasis: #bc4c00;
939
- --borderColor-danger-muted: #fff1e5;
940
- --borderColor-default: #d1d9e0;
941
- --borderColor-disabled: #818b981a;
942
- --borderColor-done-emphasis: #8250df;
943
- --borderColor-done-muted: #c297ff66;
944
- --borderColor-emphasis: #818b98;
945
- --borderColor-neutral-emphasis: #59636e;
946
- --borderColor-open-emphasis: #bc4c00;
947
- --borderColor-open-muted: #fb8f4466;
948
- --borderColor-severe-emphasis: #bc4c00;
949
- --borderColor-severe-muted: #fb8f4466;
950
- --borderColor-sponsors-emphasis: #bf3989;
951
- --borderColor-sponsors-muted: #ff80c866;
952
- --borderColor-success-emphasis: #0969da;
953
- --borderColor-success-muted: #ddf4ff;
954
- --borderColor-transparent: #ffffff00;
915
+ --bgColor-accent-emphasis: #0969da; /** Strong accent background for active states and focused states */
916
+ --bgColor-accent-muted: #ddf4ff; /** Subtle accent background for informational or selected elements */
917
+ --bgColor-attention-emphasis: #9a6700; /** Strong attention background for prominent warnings */
918
+ --bgColor-attention-muted: #fff8c5; /** Subtle attention background for warnings and caution states */
919
+ --bgColor-danger-emphasis: #bc4c00; /** Emphasized danger background for critical errors and delete confirmations */
920
+ --bgColor-danger-muted: #fff1e5; /** Muted danger background for error states and destructive action contexts */
921
+ --bgColor-disabled: #eff2f5; /** Background for disabled interactive elements */
922
+ --bgColor-done-emphasis: #8250df; /** Strong background for completed/done state badges and labels */
923
+ --bgColor-done-muted: #fbefff; /** Subtle background for completed/done state indicators */
924
+ --bgColor-emphasis: #25292e; /** High-emphasis dark background for strong visual contrast */
925
+ --bgColor-inverse: #25292e; /** Inverse background that flips between light and dark modes */
926
+ --bgColor-muted: #f6f8fa; /** Muted background for secondary content areas and subtle grouping */
927
+ --bgColor-neutral-emphasis: #59636e; /** Strong neutral background for prominent neutral elements */
928
+ --bgColor-neutral-muted: #818b981f; /** Subtle neutral background for tags, labels, and secondary UI elements */
929
+ --bgColor-open-emphasis: #bc4c00; /** Strong background for open state badges and labels */
930
+ --bgColor-open-muted: #fff1e5; /** Subtle background for open state indicators (issues, PRs) */
931
+ --bgColor-severe-emphasis: #bc4c00; /** Strong severe background for prominent high-priority warnings */
932
+ --bgColor-severe-muted: #fff1e5; /** Subtle severe background for high-priority warnings */
933
+ --bgColor-sponsors-emphasis: #bf3989; /** Strong background for prominent GitHub Sponsors elements */
934
+ --bgColor-sponsors-muted: #ffeff7; /** Subtle background for GitHub Sponsors content */
935
+ --bgColor-success-emphasis: #0969da; /** Strong success background for prominent positive actions */
936
+ --bgColor-success-muted: #ddf4ff; /** Subtle success background for positive feedback and completed states */
937
+ --bgColor-transparent: #ffffff00; /** Fully transparent background */
938
+ --borderColor-accent-emphasis: #0969da; /** Strong accent border for selected or focused elements */
939
+ --borderColor-accent-muted: #54aeff66; /** Subtle accent border for selected or focused elements */
940
+ --borderColor-attention-emphasis: #9a6700; /** Strong attention border for prominent warnings */
941
+ --borderColor-attention-muted: #d4a72c66; /** Subtle attention border for warnings and caution states */
942
+ --borderColor-danger-emphasis: #bc4c00; /** Strong danger border for destructive actions and errors */
943
+ --borderColor-danger-muted: #fff1e5; /** Subtle danger border for errors and destructive contexts */
944
+ --borderColor-default: #d1d9e0; /** Default border color for most UI elements */
945
+ --borderColor-disabled: #818b981a; /** Border color for disabled interactive elements */
946
+ --borderColor-done-emphasis: #8250df; /** Strong border for completed/done state badges */
947
+ --borderColor-done-muted: #c297ff66; /** Subtle border for completed/done state indicators */
948
+ --borderColor-emphasis: #818b98; /** Strong border for emphasis and visual weight */
949
+ --borderColor-neutral-emphasis: #59636e; /** Strong neutral semantic border */
950
+ --borderColor-open-emphasis: #bc4c00; /** Strong border for open state badges */
951
+ --borderColor-open-muted: #fb8f4466; /** Subtle border for open state indicators */
952
+ --borderColor-severe-emphasis: #bc4c00; /** Strong severe border for prominent high-priority warnings */
953
+ --borderColor-severe-muted: #fb8f4466; /** Subtle severe border for high-priority warnings */
954
+ --borderColor-sponsors-emphasis: #bf3989; /** Strong border for prominent GitHub Sponsors elements */
955
+ --borderColor-sponsors-muted: #ff80c866; /** Subtle border for GitHub Sponsors content */
956
+ --borderColor-success-emphasis: #0969da; /** Strong success border for prominent positive elements */
957
+ --borderColor-success-muted: #ddf4ff; /** Subtle success border for positive feedback elements */
958
+ --borderColor-transparent: #ffffff00; /** Fully transparent border */
955
959
  --button-danger-bgColor-active: #953800;
956
960
  --button-danger-shadow-selected: inset 0px 1px 0px 0px #47170033;
957
961
  --button-inactive-bgColor: #e6eaef;
@@ -1374,17 +1378,17 @@
1374
1378
  --display-yellow-scale-7: #704d00;
1375
1379
  --display-yellow-scale-8: #5c3d00;
1376
1380
  --display-yellow-scale-9: #422b00;
1377
- --fgColor-accent: #0969da;
1378
- --fgColor-attention: #9a6700;
1379
- --fgColor-danger: #bc4c00;
1380
- --fgColor-disabled: #818b98;
1381
- --fgColor-done: #8250df;
1382
- --fgColor-muted: #59636e;
1383
- --fgColor-neutral: #59636e;
1384
- --fgColor-open: #bc4c00;
1385
- --fgColor-severe: #bc4c00;
1386
- --fgColor-sponsors: #bf3989;
1387
- --fgColor-success: #0969da;
1381
+ --fgColor-accent: #0969da; /** Accent text for links and interactive elements */
1382
+ --fgColor-attention: #9a6700; /** Attention text for warnings and caution states */
1383
+ --fgColor-danger: #bc4c00; /** Danger text for errors and destructive actions */
1384
+ --fgColor-disabled: #818b98; /** Text color for disabled interactive elements */
1385
+ --fgColor-done: #8250df; /** Text color for completed/done state indicators */
1386
+ --fgColor-muted: #59636e; /** Muted text for secondary content and less important information */
1387
+ --fgColor-neutral: #59636e; /** Neutral semantic text for icons and secondary elements */
1388
+ --fgColor-open: #bc4c00; /** Text color for open state indicators (issues, PRs) */
1389
+ --fgColor-severe: #bc4c00; /** Severe text for high-priority warnings */
1390
+ --fgColor-sponsors: #bf3989; /** Text color for GitHub Sponsors content */
1391
+ --fgColor-success: #0969da; /** Success text for positive feedback and completed states */
1388
1392
  --header-bgColor: #25292e;
1389
1393
  --header-borderColor-divider: #818b98;
1390
1394
  --headerSearch-bgColor: #25292e;
@@ -1530,24 +1534,24 @@
1530
1534
  --reactionButton-selected-fgColor-hover: #0550ae;
1531
1535
  --selectMenu-bgColor-active: #b6e3ff;
1532
1536
  --selectMenu-borderColor: #ffffff00;
1533
- --shadow-floating-legacy: 0px 6px 12px -3px #25292e0a, 0px 6px 18px 0px #25292e1f;
1534
- --shadow-resting-medium: 0px 1px 1px 0px #25292e1a, 0px 3px 6px 0px #25292e1f;
1537
+ --shadow-floating-legacy: 0px 6px 12px -3px #25292e0a, 0px 6px 18px 0px #25292e1f; /** Legacy floating shadow for backward compatibility */
1538
+ --shadow-resting-medium: 0px 1px 1px 0px #25292e1a, 0px 3px 6px 0px #25292e1f; /** Medium resting shadow for cards and elevated surfaces */
1535
1539
  --skeletonLoader-bgColor: #818b981a;
1536
1540
  --topicTag-borderColor: #ffffff00;
1537
1541
  --treeViewItem-leadingVisual-iconColor-rest: #54aeff;
1538
1542
  --underlineNav-borderColor-active: #fd8c73;
1539
1543
  --avatar-bgColor: #ffffff;
1540
1544
  --avatar-shadow: 0px 0px 0px 2px #ffffffcc;
1541
- --bgColor-black: #1f2328;
1542
- --bgColor-closed-emphasis: var(--bgColor-neutral-emphasis);
1543
- --bgColor-closed-muted: var(--bgColor-neutral-muted);
1544
- --bgColor-default: #ffffff;
1545
- --bgColor-draft-emphasis: var(--bgColor-neutral-emphasis);
1546
- --bgColor-draft-muted: var(--bgColor-neutral-muted);
1547
- --bgColor-inset: var(--bgColor-muted);
1548
- --bgColor-upsell-emphasis: var(--bgColor-done-emphasis);
1549
- --bgColor-upsell-muted: var(--bgColor-done-muted);
1550
- --bgColor-white: #ffffff;
1545
+ --bgColor-black: #1f2328; /** Pure black background */
1546
+ --bgColor-closed-emphasis: var(--bgColor-neutral-emphasis); /** Strong background for closed state badges and labels */
1547
+ --bgColor-closed-muted: var(--bgColor-neutral-muted); /** Subtle background for closed state indicators (issues, PRs) */
1548
+ --bgColor-default: #ffffff; /** Default background color for pages and main content areas */
1549
+ --bgColor-draft-emphasis: var(--bgColor-neutral-emphasis); /** Strong background for draft state badges and labels */
1550
+ --bgColor-draft-muted: var(--bgColor-neutral-muted); /** Subtle background for draft state indicators */
1551
+ --bgColor-inset: var(--bgColor-muted); /** Inset background for recessed content areas like wells or sunken panels */
1552
+ --bgColor-upsell-emphasis: var(--bgColor-done-emphasis); /** Strong background for prominent upsell elements */
1553
+ --bgColor-upsell-muted: var(--bgColor-done-muted); /** Subtle background for upsell and promotional content */
1554
+ --bgColor-white: #ffffff; /** Pure white background */
1551
1555
  --border-accent-emphasis: 0.0625rem solid #0969da;
1552
1556
  --border-accent-muted: 0.0625rem solid #54aeff66;
1553
1557
  --border-attention-emphasis: 0.0625rem solid #9a6700;
@@ -1567,14 +1571,14 @@
1567
1571
  --border-success-emphasis: 0.0625rem solid #0969da;
1568
1572
  --border-success-muted: 0.0625rem solid #ddf4ff;
1569
1573
  --border-transparent: 0.0625rem solid #ffffff00;
1570
- --borderColor-closed-emphasis: var(--borderColor-emphasis);
1571
- --borderColor-closed-muted: #d1d9e066;
1572
- --borderColor-draft-emphasis: var(--borderColor-neutral-emphasis);
1573
- --borderColor-draft-muted: #d1d9e066;
1574
- --borderColor-muted: #d1d9e0b3;
1575
- --borderColor-translucent: #1f232826;
1576
- --borderColor-upsell-emphasis: var(--borderColor-done-emphasis);
1577
- --borderColor-upsell-muted: var(--borderColor-done-muted);
1574
+ --borderColor-closed-emphasis: var(--borderColor-emphasis); /** Strong border for closed state badges */
1575
+ --borderColor-closed-muted: #d1d9e066; /** Subtle border for closed state indicators */
1576
+ --borderColor-draft-emphasis: var(--borderColor-neutral-emphasis); /** Strong border for draft state badges */
1577
+ --borderColor-draft-muted: #d1d9e066; /** Subtle border for draft state indicators */
1578
+ --borderColor-muted: #d1d9e0b3; /** Subtle border for secondary elements and light separators */
1579
+ --borderColor-translucent: #1f232826; /** Semi-transparent border for overlays and layered elements */
1580
+ --borderColor-upsell-emphasis: var(--borderColor-done-emphasis); /** Strong border for prominent upsell elements */
1581
+ --borderColor-upsell-muted: var(--borderColor-done-muted); /** Subtle border for upsell and promotional content */
1578
1582
  --button-danger-bgColor-hover: var(--bgColor-danger-emphasis);
1579
1583
  --button-danger-bgColor-rest: var(--control-bgColor-rest);
1580
1584
  --button-danger-fgColor-active: #ffffff;
@@ -1675,16 +1679,16 @@
1675
1679
  --diffBlob-emptyNum-bgColor: var(--bgColor-muted);
1676
1680
  --diffBlob-expander-iconColor: var(--fgColor-muted);
1677
1681
  --diffBlob-hunkLine-fgColor: var(--fgColor-muted);
1678
- --fgColor-black: #1f2328;
1679
- --fgColor-closed: var(--fgColor-muted);
1680
- --fgColor-default: #1f2328;
1681
- --fgColor-draft: var(--fgColor-neutral);
1682
- --fgColor-link: var(--fgColor-accent);
1683
- --fgColor-onEmphasis: #ffffff;
1684
- --fgColor-onInverse: #ffffff;
1685
- --fgColor-upsell: var(--fgColor-done);
1686
- --fgColor-white: #ffffff;
1687
- --focus-outlineColor: var(--borderColor-accent-emphasis);
1682
+ --fgColor-black: #1f2328; /** Pure black text */
1683
+ --fgColor-closed: var(--fgColor-muted); /** Text color for closed state indicators (issues, PRs) */
1684
+ --fgColor-default: #1f2328; /** Default text color for primary content and headings */
1685
+ --fgColor-draft: var(--fgColor-neutral); /** Text color for draft state indicators */
1686
+ --fgColor-link: var(--fgColor-accent); /** Text color for hyperlinks */
1687
+ --fgColor-onEmphasis: #ffffff; /** Text color for use on emphasis backgrounds */
1688
+ --fgColor-onInverse: #ffffff; /** Text color for use on inverse backgrounds */
1689
+ --fgColor-upsell: var(--fgColor-done); /** Text color for upsell and promotional content */
1690
+ --fgColor-white: #ffffff; /** Pure white text */
1691
+ --focus-outlineColor: var(--borderColor-accent-emphasis); /** Outline color for focus states on interactive elements */
1688
1692
  --header-fgColor-default: #ffffffb3;
1689
1693
  --header-fgColor-logo: #ffffff;
1690
1694
  --overlay-bgColor: #ffffff;
@@ -1698,10 +1702,10 @@
1698
1702
  --progressBar-bgColor-sponsors: var(--bgColor-sponsors-emphasis);
1699
1703
  --progressBar-bgColor-success: var(--bgColor-success-emphasis);
1700
1704
  --progressBar-track-bgColor: var(--borderColor-default);
1701
- --selection-bgColor: #0969da33;
1702
- --shadow-inset: inset 0px 1px 0px 0px #1f23280a;
1703
- --shadow-resting-small: 0px 1px 1px 0px #1f23280f, 0px 1px 3px 0px #1f23280f;
1704
- --shadow-resting-xsmall: 0px 1px 1px 0px #1f23280f;
1705
+ --selection-bgColor: #0969da33; /** Background color for text selection highlights */
1706
+ --shadow-inset: inset 0px 1px 0px 0px #1f23280a; /** Inset shadow for recessed elements */
1707
+ --shadow-resting-small: 0px 1px 1px 0px #1f23280a, 0px 1px 2px 0px #1f232808; /** Small resting shadow for buttons and interactive elements */
1708
+ --shadow-resting-xsmall: 0px 1px 1px 0px #1f23280d; /** Extra small resting shadow for minimal elevation */
1705
1709
  --sideNav-bgColor-selected: #ffffff;
1706
1710
  --timelineBadge-bgColor: var(--bgColor-muted);
1707
1711
  --tooltip-bgColor: var(--bgColor-emphasis);
@@ -1714,7 +1718,7 @@
1714
1718
  --border-open-muted: var(--border-success-muted);
1715
1719
  --border-upsell-emphasis: 0.0625rem solid #8250df;
1716
1720
  --border-upsell-muted: 0.0625rem solid #c297ff66;
1717
- --borderColor-neutral-muted: var(--borderColor-muted);
1721
+ --borderColor-neutral-muted: var(--borderColor-muted); /** Subtle neutral semantic border */
1718
1722
  --button-danger-bgColor-disabled: var(--control-bgColor-disabled);
1719
1723
  --button-danger-borderColor-rest: var(--control-borderColor-rest);
1720
1724
  --button-danger-iconColor-rest: var(--button-danger-fgColor-rest);
@@ -1770,7 +1774,7 @@
1770
1774
  --diffBlob-deletionWord-fgColor: var(--fgColor-default);
1771
1775
  --diffBlob-hunkNum-fgColor-hover: var(--fgColor-default);
1772
1776
  --diffBlob-hunkNum-fgColor-rest: var(--fgColor-default);
1773
- --focus-outline: 2px solid #0969da;
1777
+ --focus-outline: 2px solid #0969da; /** Focus ring outline for keyboard navigation and accessibility. */
1774
1778
  --overlay-borderColor: #d1d9e080;
1775
1779
  --reactionButton-selected-fgColor-rest: var(--fgColor-link);
1776
1780
  --tooltip-fgColor: var(--fgColor-onEmphasis);
@@ -1784,10 +1788,10 @@
1784
1788
  --buttonKeybindingHint-danger-borderColor-disabled: var(--buttonKeybindingHint-default-borderColor-disabled);
1785
1789
  --buttonKeybindingHint-danger-borderColor-rest: var(--buttonKeybindingHint-default-borderColor-rest);
1786
1790
  --buttonKeybindingHint-danger-fgColor-disabled: var(--buttonKeybindingHint-default-fgColor-disabled);
1787
- --shadow-floating-large: 0px 0px 0px 1px #d1d9e0, 0px 40px 80px 0px #25292e3d;
1788
- --shadow-floating-medium: 0px 0px 0px 1px #d1d9e0, 0px 8px 16px -4px #25292e14, 0px 4px 32px -4px #25292e14, 0px 24px 48px -12px #25292e14, 0px 48px 96px -24px #25292e14;
1789
- --shadow-floating-small: 0px 0px 0px 1px #d1d9e080, 0px 6px 12px -3px #25292e0a, 0px 6px 18px 0px #25292e1f;
1790
- --shadow-floating-xlarge: 0px 0px 0px 1px #d1d9e0, 0px 56px 112px 0px #25292e52;
1791
+ --shadow-floating-large: 0px 0px 0px 1px #d1d9e0, 0px 40px 80px 0px #25292e3d; /** Large floating shadow for modals and dialogs */
1792
+ --shadow-floating-medium: 0px 0px 0px 1px #d1d9e0, 0px 8px 16px -4px #25292e14, 0px 4px 32px -4px #25292e14, 0px 24px 48px -12px #25292e14, 0px 48px 96px -24px #25292e14; /** Medium floating shadow for popovers and action menus */
1793
+ --shadow-floating-small: 0px 0px 0px 1px #d1d9e080, 0px 6px 12px -3px #25292e0a, 0px 6px 18px 0px #25292e1f; /** Small floating shadow for dropdowns, tooltips, and small overlays */
1794
+ --shadow-floating-xlarge: 0px 0px 0px 1px #d1d9e0, 0px 56px 112px 0px #25292e52; /** Extra large floating shadow for full-screen overlays and sheets */
1791
1795
  --button-danger-borderColor-active: var(--button-danger-borderColor-hover);
1792
1796
  --button-outline-borderColor-hover: var(--button-primary-borderColor-hover);
1793
1797
  --button-outline-borderColor-active: var(--button-outline-borderColor-hover);