@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_high_contrast"],
2
6
  [data-color-mode="auto"][data-light-theme="light_high_contrast"] {
3
7
  --button-outline-bgColor-active: #033f9d;
@@ -15,47 +19,47 @@
15
19
  --reactionButton-selected-bgColor-hover: #c7e9ff;
16
20
  --avatarStack-fade-bgColor-default: #c8d1da;
17
21
  --avatarStack-fade-bgColor-muted: #dae0e7;
18
- --bgColor-accent-emphasis: #0349b4;
19
- --bgColor-accent-muted: #dff7ff;
20
- --bgColor-attention-emphasis: #744500;
21
- --bgColor-attention-muted: #fcf7be;
22
- --bgColor-danger-emphasis: #a0111f;
23
- --bgColor-danger-muted: #fff0ee;
24
- --bgColor-disabled: #e0e6eb;
25
- --bgColor-done-emphasis: #622cbc;
26
- --bgColor-done-muted: #faf0fe;
27
- --bgColor-emphasis: #25292e;
28
- --bgColor-inset: #eff2f5;
29
- --bgColor-inverse: #25292e;
30
- --bgColor-muted: #e6eaef;
31
- --bgColor-neutral-emphasis: #454c54;
32
- --bgColor-neutral-muted: #e0e6eb;
33
- --bgColor-severe-emphasis: #873800;
34
- --bgColor-severe-muted: #fff2d5;
35
- --bgColor-sponsors-emphasis: #971368;
36
- --bgColor-sponsors-muted: #feeff7;
37
- --bgColor-success-emphasis: #055d20;
38
- --bgColor-success-muted: #d2fedb;
39
- --bgColor-transparent: #ffffff00;
40
- --borderColor-accent-emphasis: #0349b4;
41
- --borderColor-accent-muted: #368cf9;
42
- --borderColor-attention-emphasis: #744500;
43
- --borderColor-attention-muted: #b58407;
44
- --borderColor-danger-emphasis: #a0111f;
45
- --borderColor-danger-muted: #ee5a5d;
46
- --borderColor-default: #454c54;
47
- --borderColor-disabled: #59636e1f;
48
- --borderColor-done-emphasis: #622cbc;
49
- --borderColor-done-muted: #a371f7;
50
- --borderColor-neutral-emphasis: #59636e;
51
- --borderColor-severe-emphasis: #873800;
52
- --borderColor-severe-muted: #dc6d1a;
53
- --borderColor-sponsors-emphasis: #971368;
54
- --borderColor-sponsors-muted: #ed4baf;
55
- --borderColor-success-emphasis: #055d20;
56
- --borderColor-success-muted: #26a148;
57
- --borderColor-translucent: #59636e;
58
- --borderColor-transparent: #ffffff00;
22
+ --bgColor-accent-emphasis: #0349b4; /** Strong accent background for active states and focused states */
23
+ --bgColor-accent-muted: #dff7ff; /** Subtle accent background for informational or selected elements */
24
+ --bgColor-attention-emphasis: #744500; /** Strong attention background for prominent warnings */
25
+ --bgColor-attention-muted: #fcf7be; /** Subtle attention background for warnings and caution states */
26
+ --bgColor-danger-emphasis: #a0111f; /** Emphasized danger background for critical errors and delete confirmations */
27
+ --bgColor-danger-muted: #fff0ee; /** Muted danger background for error states and destructive action contexts */
28
+ --bgColor-disabled: #e0e6eb; /** Background for disabled interactive elements */
29
+ --bgColor-done-emphasis: #622cbc; /** Strong background for completed/done state badges and labels */
30
+ --bgColor-done-muted: #faf0fe; /** Subtle background for completed/done state indicators */
31
+ --bgColor-emphasis: #25292e; /** High-emphasis dark background for strong visual contrast */
32
+ --bgColor-inset: #eff2f5; /** Inset background for recessed content areas like wells or sunken panels */
33
+ --bgColor-inverse: #25292e; /** Inverse background that flips between light and dark modes */
34
+ --bgColor-muted: #e6eaef; /** Muted background for secondary content areas and subtle grouping */
35
+ --bgColor-neutral-emphasis: #454c54; /** Strong neutral background for prominent neutral elements */
36
+ --bgColor-neutral-muted: #e0e6eb; /** Subtle neutral background for tags, labels, and secondary UI elements */
37
+ --bgColor-severe-emphasis: #873800; /** Strong severe background for prominent high-priority warnings */
38
+ --bgColor-severe-muted: #fff2d5; /** Subtle severe background for high-priority warnings */
39
+ --bgColor-sponsors-emphasis: #971368; /** Strong background for prominent GitHub Sponsors elements */
40
+ --bgColor-sponsors-muted: #feeff7; /** Subtle background for GitHub Sponsors content */
41
+ --bgColor-success-emphasis: #055d20; /** Strong success background for prominent positive actions */
42
+ --bgColor-success-muted: #d2fedb; /** Subtle success background for positive feedback and completed states */
43
+ --bgColor-transparent: #ffffff00; /** Fully transparent background */
44
+ --borderColor-accent-emphasis: #0349b4; /** Strong accent border for selected or focused elements */
45
+ --borderColor-accent-muted: #368cf9; /** Subtle accent border for selected or focused elements */
46
+ --borderColor-attention-emphasis: #744500; /** Strong attention border for prominent warnings */
47
+ --borderColor-attention-muted: #b58407; /** Subtle attention border for warnings and caution states */
48
+ --borderColor-danger-emphasis: #a0111f; /** Strong danger border for destructive actions and errors */
49
+ --borderColor-danger-muted: #ee5a5d; /** Subtle danger border for errors and destructive contexts */
50
+ --borderColor-default: #454c54; /** Default border color for most UI elements */
51
+ --borderColor-disabled: #59636e1f; /** Border color for disabled interactive elements */
52
+ --borderColor-done-emphasis: #622cbc; /** Strong border for completed/done state badges */
53
+ --borderColor-done-muted: #a371f7; /** Subtle border for completed/done state indicators */
54
+ --borderColor-neutral-emphasis: #59636e; /** Strong neutral semantic border */
55
+ --borderColor-severe-emphasis: #873800; /** Strong severe border for prominent high-priority warnings */
56
+ --borderColor-severe-muted: #dc6d1a; /** Subtle severe border for high-priority warnings */
57
+ --borderColor-sponsors-emphasis: #971368; /** Strong border for prominent GitHub Sponsors elements */
58
+ --borderColor-sponsors-muted: #ed4baf; /** Subtle border for GitHub Sponsors content */
59
+ --borderColor-success-emphasis: #055d20; /** Strong success border for prominent positive elements */
60
+ --borderColor-success-muted: #26a148; /** Subtle success border for positive feedback elements */
61
+ --borderColor-translucent: #59636e; /** Semi-transparent border for overlays and layered elements */
62
+ --borderColor-transparent: #ffffff00; /** Fully transparent border */
59
63
  --button-danger-bgColor-active: #86061d;
60
64
  --button-danger-borderColor-hover: #6e011a;
61
65
  --button-danger-shadow-selected: inset 0px 1px 0px 0px #43001133;
@@ -476,16 +480,16 @@
476
480
  --display-yellow-scale-7: #704d00;
477
481
  --display-yellow-scale-8: #5c3d00;
478
482
  --display-yellow-scale-9: #422b00;
479
- --fgColor-accent: #023b95;
480
- --fgColor-attention: #603700;
481
- --fgColor-danger: #86061d;
482
- --fgColor-disabled: #59636e;
483
- --fgColor-done: #512598;
484
- --fgColor-muted: #454c54;
485
- --fgColor-neutral: #393f46;
486
- --fgColor-severe: #702c00;
487
- --fgColor-sponsors: #7d0c57;
488
- --fgColor-success: #024c1a;
483
+ --fgColor-accent: #023b95; /** Accent text for links and interactive elements */
484
+ --fgColor-attention: #603700; /** Attention text for warnings and caution states */
485
+ --fgColor-danger: #86061d; /** Danger text for errors and destructive actions */
486
+ --fgColor-disabled: #59636e; /** Text color for disabled interactive elements */
487
+ --fgColor-done: #512598; /** Text color for completed/done state indicators */
488
+ --fgColor-muted: #454c54; /** Muted text for secondary content and less important information */
489
+ --fgColor-neutral: #393f46; /** Neutral semantic text for icons and secondary elements */
490
+ --fgColor-severe: #702c00; /** Severe text for high-priority warnings */
491
+ --fgColor-sponsors: #7d0c57; /** Text color for GitHub Sponsors content */
492
+ --fgColor-success: #024c1a; /** Success text for positive feedback and completed states */
489
493
  --header-bgColor: #25292e;
490
494
  --header-borderColor-divider: #c8d1da;
491
495
  --headerSearch-bgColor: #25292e;
@@ -613,24 +617,24 @@
613
617
  --reactionButton-selected-fgColor-hover: #023b95;
614
618
  --selectMenu-bgColor-active: #9cd7ff;
615
619
  --selectMenu-borderColor: #ffffff00;
616
- --shadow-floating-legacy: 0px 6px 12px -3px #25292e0a, 0px 6px 18px 0px #25292e1f;
617
- --shadow-resting-medium: 0px 1px 1px 0px #25292e1a, 0px 3px 6px 0px #25292e1f;
620
+ --shadow-floating-legacy: 0px 6px 12px -3px #25292e0a, 0px 6px 18px 0px #25292e1f; /** Legacy floating shadow for backward compatibility */
621
+ --shadow-resting-medium: 0px 1px 1px 0px #25292e1a, 0px 3px 6px 0px #25292e1f; /** Medium resting shadow for cards and elevated surfaces */
618
622
  --skeletonLoader-bgColor: #dae0e7;
619
623
  --treeViewItem-leadingVisual-iconColor-rest: #368cf9;
620
624
  --underlineNav-borderColor-active: #cd3425;
621
625
  --avatar-bgColor: #ffffff;
622
626
  --avatar-shadow: 0px 0px 0px 2px #ffffffcc;
623
- --bgColor-black: #010409;
624
- --bgColor-closed-emphasis: var(--bgColor-danger-emphasis);
625
- --bgColor-closed-muted: var(--bgColor-danger-muted);
626
- --bgColor-default: #ffffff;
627
- --bgColor-draft-emphasis: var(--bgColor-neutral-emphasis);
628
- --bgColor-draft-muted: var(--bgColor-neutral-muted);
629
- --bgColor-open-emphasis: var(--bgColor-success-emphasis);
630
- --bgColor-open-muted: var(--bgColor-success-muted);
631
- --bgColor-upsell-emphasis: var(--bgColor-done-emphasis);
632
- --bgColor-upsell-muted: var(--bgColor-done-muted);
633
- --bgColor-white: #ffffff;
627
+ --bgColor-black: #010409; /** Pure black background */
628
+ --bgColor-closed-emphasis: var(--bgColor-danger-emphasis); /** Strong background for closed state badges and labels */
629
+ --bgColor-closed-muted: var(--bgColor-danger-muted); /** Subtle background for closed state indicators (issues, PRs) */
630
+ --bgColor-default: #ffffff; /** Default background color for pages and main content areas */
631
+ --bgColor-draft-emphasis: var(--bgColor-neutral-emphasis); /** Strong background for draft state badges and labels */
632
+ --bgColor-draft-muted: var(--bgColor-neutral-muted); /** Subtle background for draft state indicators */
633
+ --bgColor-open-emphasis: var(--bgColor-success-emphasis); /** Strong background for open state badges and labels */
634
+ --bgColor-open-muted: var(--bgColor-success-muted); /** Subtle background for open state indicators (issues, PRs) */
635
+ --bgColor-upsell-emphasis: var(--bgColor-done-emphasis); /** Strong background for prominent upsell elements */
636
+ --bgColor-upsell-muted: var(--bgColor-done-muted); /** Subtle background for upsell and promotional content */
637
+ --bgColor-white: #ffffff; /** Pure white background */
634
638
  --border-accent-emphasis: 0.0625rem solid #0349b4;
635
639
  --border-accent-muted: 0.0625rem solid #368cf9;
636
640
  --border-attention-emphasis: 0.0625rem solid #744500;
@@ -649,15 +653,15 @@
649
653
  --border-success-emphasis: 0.0625rem solid #055d20;
650
654
  --border-success-muted: 0.0625rem solid #26a148;
651
655
  --border-transparent: 0.0625rem solid #ffffff00;
652
- --borderColor-closed-emphasis: var(--borderColor-danger-emphasis);
653
- --borderColor-closed-muted: var(--borderColor-danger-muted);
654
- --borderColor-draft-emphasis: var(--borderColor-neutral-emphasis);
655
- --borderColor-emphasis: var(--borderColor-default);
656
- --borderColor-muted: var(--borderColor-default);
657
- --borderColor-open-emphasis: var(--borderColor-success-emphasis);
658
- --borderColor-open-muted: var(--borderColor-success-muted);
659
- --borderColor-upsell-emphasis: var(--borderColor-done-emphasis);
660
- --borderColor-upsell-muted: var(--borderColor-done-muted);
656
+ --borderColor-closed-emphasis: var(--borderColor-danger-emphasis); /** Strong border for closed state badges */
657
+ --borderColor-closed-muted: var(--borderColor-danger-muted); /** Subtle border for closed state indicators */
658
+ --borderColor-draft-emphasis: var(--borderColor-neutral-emphasis); /** Strong border for draft state badges */
659
+ --borderColor-emphasis: var(--borderColor-default); /** Strong border for emphasis and visual weight */
660
+ --borderColor-muted: var(--borderColor-default); /** Subtle border for secondary elements and light separators */
661
+ --borderColor-open-emphasis: var(--borderColor-success-emphasis); /** Strong border for open state badges */
662
+ --borderColor-open-muted: var(--borderColor-success-muted); /** Subtle border for open state indicators */
663
+ --borderColor-upsell-emphasis: var(--borderColor-done-emphasis); /** Strong border for prominent upsell elements */
664
+ --borderColor-upsell-muted: var(--borderColor-done-muted); /** Subtle border for upsell and promotional content */
661
665
  --button-danger-bgColor-hover: var(--bgColor-danger-emphasis);
662
666
  --button-danger-bgColor-rest: var(--control-bgColor-rest);
663
667
  --button-danger-borderColor-active: var(--button-danger-borderColor-hover);
@@ -760,17 +764,17 @@
760
764
  --diffBlob-hunkLine-bgColor: var(--bgColor-accent-muted);
761
765
  --diffBlob-hunkLine-fgColor: var(--fgColor-muted);
762
766
  --diffBlob-hunkNum-bgColor-hover: var(--bgColor-accent-emphasis);
763
- --fgColor-black: #010409;
764
- --fgColor-closed: var(--fgColor-danger);
765
- --fgColor-default: #010409;
766
- --fgColor-draft: var(--fgColor-neutral);
767
- --fgColor-link: var(--fgColor-accent);
768
- --fgColor-onEmphasis: #ffffff;
769
- --fgColor-onInverse: #ffffff;
770
- --fgColor-open: var(--fgColor-success);
771
- --fgColor-upsell: var(--fgColor-done);
772
- --fgColor-white: #ffffff;
773
- --focus-outlineColor: var(--borderColor-accent-emphasis);
767
+ --fgColor-black: #010409; /** Pure black text */
768
+ --fgColor-closed: var(--fgColor-danger); /** Text color for closed state indicators (issues, PRs) */
769
+ --fgColor-default: #010409; /** Default text color for primary content and headings */
770
+ --fgColor-draft: var(--fgColor-neutral); /** Text color for draft state indicators */
771
+ --fgColor-link: var(--fgColor-accent); /** Text color for hyperlinks */
772
+ --fgColor-onEmphasis: #ffffff; /** Text color for use on emphasis backgrounds */
773
+ --fgColor-onInverse: #ffffff; /** Text color for use on inverse backgrounds */
774
+ --fgColor-open: var(--fgColor-success); /** Text color for open state indicators (issues, PRs) */
775
+ --fgColor-upsell: var(--fgColor-done); /** Text color for upsell and promotional content */
776
+ --fgColor-white: #ffffff; /** Pure white text */
777
+ --focus-outlineColor: var(--borderColor-accent-emphasis); /** Outline color for focus states on interactive elements */
774
778
  --header-fgColor-default: #ffffffb3;
775
779
  --header-fgColor-logo: #ffffff;
776
780
  --label-auburn-borderColor: var(--label-auburn-fgColor-rest);
@@ -802,10 +806,10 @@
802
806
  --progressBar-bgColor-severe: var(--bgColor-severe-emphasis);
803
807
  --progressBar-bgColor-sponsors: var(--bgColor-sponsors-emphasis);
804
808
  --progressBar-bgColor-success: var(--bgColor-success-emphasis);
805
- --selection-bgColor: #0349b433;
806
- --shadow-inset: inset 0px 1px 0px 0px #0104090a;
807
- --shadow-resting-small: 0px 1px 1px 0px #0104090f, 0px 1px 3px 0px #0104090f;
808
- --shadow-resting-xsmall: 0px 1px 1px 0px #0104090f;
809
+ --selection-bgColor: #0349b433; /** Background color for text selection highlights */
810
+ --shadow-inset: inset 0px 1px 0px 0px #0104090a; /** Inset shadow for recessed elements */
811
+ --shadow-resting-small: 0px 1px 1px 0px #0104090a, 0px 1px 2px 0px #01040908; /** Small resting shadow for buttons and interactive elements */
812
+ --shadow-resting-xsmall: 0px 1px 1px 0px #0104090d; /** Extra small resting shadow for minimal elevation */
809
813
  --sideNav-bgColor-selected: #ffffff;
810
814
  --timelineBadge-bgColor: var(--bgColor-muted);
811
815
  --tooltip-bgColor: var(--bgColor-emphasis);
@@ -820,7 +824,7 @@
820
824
  --border-open-muted: var(--border-success-muted);
821
825
  --border-upsell-emphasis: 0.0625rem solid #622cbc;
822
826
  --border-upsell-muted: 0.0625rem solid #a371f7;
823
- --borderColor-neutral-muted: var(--borderColor-muted);
827
+ --borderColor-neutral-muted: var(--borderColor-muted); /** Subtle neutral semantic border */
824
828
  --button-danger-bgColor-disabled: var(--control-bgColor-disabled);
825
829
  --button-danger-borderColor-rest: var(--control-borderColor-rest);
826
830
  --button-danger-iconColor-rest: var(--button-danger-fgColor-rest);
@@ -878,17 +882,17 @@
878
882
  --diffBlob-expander-iconColor: var(--fgColor-default);
879
883
  --diffBlob-hunkNum-fgColor-hover: var(--fgColor-onEmphasis);
880
884
  --diffBlob-hunkNum-fgColor-rest: var(--fgColor-default);
881
- --focus-outline: 2px solid #0349b4;
885
+ --focus-outline: 2px solid #0349b4; /** Focus ring outline for keyboard navigation and accessibility. */
882
886
  --progressBar-track-bgColor: var(--bgColor-default);
883
887
  --reactionButton-selected-fgColor-rest: var(--fgColor-link);
884
- --shadow-floating-large: 0px 0px 0px 1px #454c54, 0px 40px 80px 0px #25292e3d;
885
- --shadow-floating-medium: 0px 0px 0px 1px #454c54, 0px 8px 16px -4px #25292e14, 0px 4px 32px -4px #25292e14, 0px 24px 48px -12px #25292e14, 0px 48px 96px -24px #25292e14;
886
- --shadow-floating-small: 0px 0px 0px 1px #454c5480, 0px 6px 12px -3px #25292e0a, 0px 6px 18px 0px #25292e1f;
887
- --shadow-floating-xlarge: 0px 0px 0px 1px #454c54, 0px 56px 112px 0px #25292e52;
888
+ --shadow-floating-large: 0px 0px 0px 1px #454c54, 0px 40px 80px 0px #25292e3d; /** Large floating shadow for modals and dialogs */
889
+ --shadow-floating-medium: 0px 0px 0px 1px #454c54, 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 */
890
+ --shadow-floating-small: 0px 0px 0px 1px #454c5480, 0px 6px 12px -3px #25292e0a, 0px 6px 18px 0px #25292e1f; /** Small floating shadow for dropdowns, tooltips, and small overlays */
891
+ --shadow-floating-xlarge: 0px 0px 0px 1px #454c54, 0px 56px 112px 0px #25292e52; /** Extra large floating shadow for full-screen overlays and sheets */
888
892
  --tooltip-fgColor: var(--fgColor-onEmphasis);
889
893
  --underlineNav-borderColor-hover: var(--borderColor-muted);
890
894
  --border-neutral-muted: 0.0625rem solid #454c54;
891
- --borderColor-draft-muted: var(--borderColor-neutral-muted);
895
+ --borderColor-draft-muted: var(--borderColor-neutral-muted); /** Subtle border for draft state indicators */
892
896
  --button-default-borderColor-hover: var(--button-default-borderColor-rest);
893
897
  --buttonKeybindingHint-danger-borderColor-disabled: var(--buttonKeybindingHint-default-borderColor-disabled);
894
898
  --buttonKeybindingHint-danger-borderColor-rest: var(--buttonKeybindingHint-default-borderColor-rest);
@@ -912,47 +916,47 @@
912
916
  --reactionButton-selected-bgColor-hover: #c7e9ff;
913
917
  --avatarStack-fade-bgColor-default: #c8d1da;
914
918
  --avatarStack-fade-bgColor-muted: #dae0e7;
915
- --bgColor-accent-emphasis: #0349b4;
916
- --bgColor-accent-muted: #dff7ff;
917
- --bgColor-attention-emphasis: #744500;
918
- --bgColor-attention-muted: #fcf7be;
919
- --bgColor-danger-emphasis: #a0111f;
920
- --bgColor-danger-muted: #fff0ee;
921
- --bgColor-disabled: #e0e6eb;
922
- --bgColor-done-emphasis: #622cbc;
923
- --bgColor-done-muted: #faf0fe;
924
- --bgColor-emphasis: #25292e;
925
- --bgColor-inset: #eff2f5;
926
- --bgColor-inverse: #25292e;
927
- --bgColor-muted: #e6eaef;
928
- --bgColor-neutral-emphasis: #454c54;
929
- --bgColor-neutral-muted: #e0e6eb;
930
- --bgColor-severe-emphasis: #873800;
931
- --bgColor-severe-muted: #fff2d5;
932
- --bgColor-sponsors-emphasis: #971368;
933
- --bgColor-sponsors-muted: #feeff7;
934
- --bgColor-success-emphasis: #055d20;
935
- --bgColor-success-muted: #d2fedb;
936
- --bgColor-transparent: #ffffff00;
937
- --borderColor-accent-emphasis: #0349b4;
938
- --borderColor-accent-muted: #368cf9;
939
- --borderColor-attention-emphasis: #744500;
940
- --borderColor-attention-muted: #b58407;
941
- --borderColor-danger-emphasis: #a0111f;
942
- --borderColor-danger-muted: #ee5a5d;
943
- --borderColor-default: #454c54;
944
- --borderColor-disabled: #59636e1f;
945
- --borderColor-done-emphasis: #622cbc;
946
- --borderColor-done-muted: #a371f7;
947
- --borderColor-neutral-emphasis: #59636e;
948
- --borderColor-severe-emphasis: #873800;
949
- --borderColor-severe-muted: #dc6d1a;
950
- --borderColor-sponsors-emphasis: #971368;
951
- --borderColor-sponsors-muted: #ed4baf;
952
- --borderColor-success-emphasis: #055d20;
953
- --borderColor-success-muted: #26a148;
954
- --borderColor-translucent: #59636e;
955
- --borderColor-transparent: #ffffff00;
919
+ --bgColor-accent-emphasis: #0349b4; /** Strong accent background for active states and focused states */
920
+ --bgColor-accent-muted: #dff7ff; /** Subtle accent background for informational or selected elements */
921
+ --bgColor-attention-emphasis: #744500; /** Strong attention background for prominent warnings */
922
+ --bgColor-attention-muted: #fcf7be; /** Subtle attention background for warnings and caution states */
923
+ --bgColor-danger-emphasis: #a0111f; /** Emphasized danger background for critical errors and delete confirmations */
924
+ --bgColor-danger-muted: #fff0ee; /** Muted danger background for error states and destructive action contexts */
925
+ --bgColor-disabled: #e0e6eb; /** Background for disabled interactive elements */
926
+ --bgColor-done-emphasis: #622cbc; /** Strong background for completed/done state badges and labels */
927
+ --bgColor-done-muted: #faf0fe; /** Subtle background for completed/done state indicators */
928
+ --bgColor-emphasis: #25292e; /** High-emphasis dark background for strong visual contrast */
929
+ --bgColor-inset: #eff2f5; /** Inset background for recessed content areas like wells or sunken panels */
930
+ --bgColor-inverse: #25292e; /** Inverse background that flips between light and dark modes */
931
+ --bgColor-muted: #e6eaef; /** Muted background for secondary content areas and subtle grouping */
932
+ --bgColor-neutral-emphasis: #454c54; /** Strong neutral background for prominent neutral elements */
933
+ --bgColor-neutral-muted: #e0e6eb; /** Subtle neutral background for tags, labels, and secondary UI elements */
934
+ --bgColor-severe-emphasis: #873800; /** Strong severe background for prominent high-priority warnings */
935
+ --bgColor-severe-muted: #fff2d5; /** Subtle severe background for high-priority warnings */
936
+ --bgColor-sponsors-emphasis: #971368; /** Strong background for prominent GitHub Sponsors elements */
937
+ --bgColor-sponsors-muted: #feeff7; /** Subtle background for GitHub Sponsors content */
938
+ --bgColor-success-emphasis: #055d20; /** Strong success background for prominent positive actions */
939
+ --bgColor-success-muted: #d2fedb; /** Subtle success background for positive feedback and completed states */
940
+ --bgColor-transparent: #ffffff00; /** Fully transparent background */
941
+ --borderColor-accent-emphasis: #0349b4; /** Strong accent border for selected or focused elements */
942
+ --borderColor-accent-muted: #368cf9; /** Subtle accent border for selected or focused elements */
943
+ --borderColor-attention-emphasis: #744500; /** Strong attention border for prominent warnings */
944
+ --borderColor-attention-muted: #b58407; /** Subtle attention border for warnings and caution states */
945
+ --borderColor-danger-emphasis: #a0111f; /** Strong danger border for destructive actions and errors */
946
+ --borderColor-danger-muted: #ee5a5d; /** Subtle danger border for errors and destructive contexts */
947
+ --borderColor-default: #454c54; /** Default border color for most UI elements */
948
+ --borderColor-disabled: #59636e1f; /** Border color for disabled interactive elements */
949
+ --borderColor-done-emphasis: #622cbc; /** Strong border for completed/done state badges */
950
+ --borderColor-done-muted: #a371f7; /** Subtle border for completed/done state indicators */
951
+ --borderColor-neutral-emphasis: #59636e; /** Strong neutral semantic border */
952
+ --borderColor-severe-emphasis: #873800; /** Strong severe border for prominent high-priority warnings */
953
+ --borderColor-severe-muted: #dc6d1a; /** Subtle severe border for high-priority warnings */
954
+ --borderColor-sponsors-emphasis: #971368; /** Strong border for prominent GitHub Sponsors elements */
955
+ --borderColor-sponsors-muted: #ed4baf; /** Subtle border for GitHub Sponsors content */
956
+ --borderColor-success-emphasis: #055d20; /** Strong success border for prominent positive elements */
957
+ --borderColor-success-muted: #26a148; /** Subtle success border for positive feedback elements */
958
+ --borderColor-translucent: #59636e; /** Semi-transparent border for overlays and layered elements */
959
+ --borderColor-transparent: #ffffff00; /** Fully transparent border */
956
960
  --button-danger-bgColor-active: #86061d;
957
961
  --button-danger-borderColor-hover: #6e011a;
958
962
  --button-danger-shadow-selected: inset 0px 1px 0px 0px #43001133;
@@ -1373,16 +1377,16 @@
1373
1377
  --display-yellow-scale-7: #704d00;
1374
1378
  --display-yellow-scale-8: #5c3d00;
1375
1379
  --display-yellow-scale-9: #422b00;
1376
- --fgColor-accent: #023b95;
1377
- --fgColor-attention: #603700;
1378
- --fgColor-danger: #86061d;
1379
- --fgColor-disabled: #59636e;
1380
- --fgColor-done: #512598;
1381
- --fgColor-muted: #454c54;
1382
- --fgColor-neutral: #393f46;
1383
- --fgColor-severe: #702c00;
1384
- --fgColor-sponsors: #7d0c57;
1385
- --fgColor-success: #024c1a;
1380
+ --fgColor-accent: #023b95; /** Accent text for links and interactive elements */
1381
+ --fgColor-attention: #603700; /** Attention text for warnings and caution states */
1382
+ --fgColor-danger: #86061d; /** Danger text for errors and destructive actions */
1383
+ --fgColor-disabled: #59636e; /** Text color for disabled interactive elements */
1384
+ --fgColor-done: #512598; /** Text color for completed/done state indicators */
1385
+ --fgColor-muted: #454c54; /** Muted text for secondary content and less important information */
1386
+ --fgColor-neutral: #393f46; /** Neutral semantic text for icons and secondary elements */
1387
+ --fgColor-severe: #702c00; /** Severe text for high-priority warnings */
1388
+ --fgColor-sponsors: #7d0c57; /** Text color for GitHub Sponsors content */
1389
+ --fgColor-success: #024c1a; /** Success text for positive feedback and completed states */
1386
1390
  --header-bgColor: #25292e;
1387
1391
  --header-borderColor-divider: #c8d1da;
1388
1392
  --headerSearch-bgColor: #25292e;
@@ -1510,24 +1514,24 @@
1510
1514
  --reactionButton-selected-fgColor-hover: #023b95;
1511
1515
  --selectMenu-bgColor-active: #9cd7ff;
1512
1516
  --selectMenu-borderColor: #ffffff00;
1513
- --shadow-floating-legacy: 0px 6px 12px -3px #25292e0a, 0px 6px 18px 0px #25292e1f;
1514
- --shadow-resting-medium: 0px 1px 1px 0px #25292e1a, 0px 3px 6px 0px #25292e1f;
1517
+ --shadow-floating-legacy: 0px 6px 12px -3px #25292e0a, 0px 6px 18px 0px #25292e1f; /** Legacy floating shadow for backward compatibility */
1518
+ --shadow-resting-medium: 0px 1px 1px 0px #25292e1a, 0px 3px 6px 0px #25292e1f; /** Medium resting shadow for cards and elevated surfaces */
1515
1519
  --skeletonLoader-bgColor: #dae0e7;
1516
1520
  --treeViewItem-leadingVisual-iconColor-rest: #368cf9;
1517
1521
  --underlineNav-borderColor-active: #cd3425;
1518
1522
  --avatar-bgColor: #ffffff;
1519
1523
  --avatar-shadow: 0px 0px 0px 2px #ffffffcc;
1520
- --bgColor-black: #010409;
1521
- --bgColor-closed-emphasis: var(--bgColor-danger-emphasis);
1522
- --bgColor-closed-muted: var(--bgColor-danger-muted);
1523
- --bgColor-default: #ffffff;
1524
- --bgColor-draft-emphasis: var(--bgColor-neutral-emphasis);
1525
- --bgColor-draft-muted: var(--bgColor-neutral-muted);
1526
- --bgColor-open-emphasis: var(--bgColor-success-emphasis);
1527
- --bgColor-open-muted: var(--bgColor-success-muted);
1528
- --bgColor-upsell-emphasis: var(--bgColor-done-emphasis);
1529
- --bgColor-upsell-muted: var(--bgColor-done-muted);
1530
- --bgColor-white: #ffffff;
1524
+ --bgColor-black: #010409; /** Pure black background */
1525
+ --bgColor-closed-emphasis: var(--bgColor-danger-emphasis); /** Strong background for closed state badges and labels */
1526
+ --bgColor-closed-muted: var(--bgColor-danger-muted); /** Subtle background for closed state indicators (issues, PRs) */
1527
+ --bgColor-default: #ffffff; /** Default background color for pages and main content areas */
1528
+ --bgColor-draft-emphasis: var(--bgColor-neutral-emphasis); /** Strong background for draft state badges and labels */
1529
+ --bgColor-draft-muted: var(--bgColor-neutral-muted); /** Subtle background for draft state indicators */
1530
+ --bgColor-open-emphasis: var(--bgColor-success-emphasis); /** Strong background for open state badges and labels */
1531
+ --bgColor-open-muted: var(--bgColor-success-muted); /** Subtle background for open state indicators (issues, PRs) */
1532
+ --bgColor-upsell-emphasis: var(--bgColor-done-emphasis); /** Strong background for prominent upsell elements */
1533
+ --bgColor-upsell-muted: var(--bgColor-done-muted); /** Subtle background for upsell and promotional content */
1534
+ --bgColor-white: #ffffff; /** Pure white background */
1531
1535
  --border-accent-emphasis: 0.0625rem solid #0349b4;
1532
1536
  --border-accent-muted: 0.0625rem solid #368cf9;
1533
1537
  --border-attention-emphasis: 0.0625rem solid #744500;
@@ -1546,15 +1550,15 @@
1546
1550
  --border-success-emphasis: 0.0625rem solid #055d20;
1547
1551
  --border-success-muted: 0.0625rem solid #26a148;
1548
1552
  --border-transparent: 0.0625rem solid #ffffff00;
1549
- --borderColor-closed-emphasis: var(--borderColor-danger-emphasis);
1550
- --borderColor-closed-muted: var(--borderColor-danger-muted);
1551
- --borderColor-draft-emphasis: var(--borderColor-neutral-emphasis);
1552
- --borderColor-emphasis: var(--borderColor-default);
1553
- --borderColor-muted: var(--borderColor-default);
1554
- --borderColor-open-emphasis: var(--borderColor-success-emphasis);
1555
- --borderColor-open-muted: var(--borderColor-success-muted);
1556
- --borderColor-upsell-emphasis: var(--borderColor-done-emphasis);
1557
- --borderColor-upsell-muted: var(--borderColor-done-muted);
1553
+ --borderColor-closed-emphasis: var(--borderColor-danger-emphasis); /** Strong border for closed state badges */
1554
+ --borderColor-closed-muted: var(--borderColor-danger-muted); /** Subtle border for closed state indicators */
1555
+ --borderColor-draft-emphasis: var(--borderColor-neutral-emphasis); /** Strong border for draft state badges */
1556
+ --borderColor-emphasis: var(--borderColor-default); /** Strong border for emphasis and visual weight */
1557
+ --borderColor-muted: var(--borderColor-default); /** Subtle border for secondary elements and light separators */
1558
+ --borderColor-open-emphasis: var(--borderColor-success-emphasis); /** Strong border for open state badges */
1559
+ --borderColor-open-muted: var(--borderColor-success-muted); /** Subtle border for open state indicators */
1560
+ --borderColor-upsell-emphasis: var(--borderColor-done-emphasis); /** Strong border for prominent upsell elements */
1561
+ --borderColor-upsell-muted: var(--borderColor-done-muted); /** Subtle border for upsell and promotional content */
1558
1562
  --button-danger-bgColor-hover: var(--bgColor-danger-emphasis);
1559
1563
  --button-danger-bgColor-rest: var(--control-bgColor-rest);
1560
1564
  --button-danger-borderColor-active: var(--button-danger-borderColor-hover);
@@ -1657,17 +1661,17 @@
1657
1661
  --diffBlob-hunkLine-bgColor: var(--bgColor-accent-muted);
1658
1662
  --diffBlob-hunkLine-fgColor: var(--fgColor-muted);
1659
1663
  --diffBlob-hunkNum-bgColor-hover: var(--bgColor-accent-emphasis);
1660
- --fgColor-black: #010409;
1661
- --fgColor-closed: var(--fgColor-danger);
1662
- --fgColor-default: #010409;
1663
- --fgColor-draft: var(--fgColor-neutral);
1664
- --fgColor-link: var(--fgColor-accent);
1665
- --fgColor-onEmphasis: #ffffff;
1666
- --fgColor-onInverse: #ffffff;
1667
- --fgColor-open: var(--fgColor-success);
1668
- --fgColor-upsell: var(--fgColor-done);
1669
- --fgColor-white: #ffffff;
1670
- --focus-outlineColor: var(--borderColor-accent-emphasis);
1664
+ --fgColor-black: #010409; /** Pure black text */
1665
+ --fgColor-closed: var(--fgColor-danger); /** Text color for closed state indicators (issues, PRs) */
1666
+ --fgColor-default: #010409; /** Default text color for primary content and headings */
1667
+ --fgColor-draft: var(--fgColor-neutral); /** Text color for draft state indicators */
1668
+ --fgColor-link: var(--fgColor-accent); /** Text color for hyperlinks */
1669
+ --fgColor-onEmphasis: #ffffff; /** Text color for use on emphasis backgrounds */
1670
+ --fgColor-onInverse: #ffffff; /** Text color for use on inverse backgrounds */
1671
+ --fgColor-open: var(--fgColor-success); /** Text color for open state indicators (issues, PRs) */
1672
+ --fgColor-upsell: var(--fgColor-done); /** Text color for upsell and promotional content */
1673
+ --fgColor-white: #ffffff; /** Pure white text */
1674
+ --focus-outlineColor: var(--borderColor-accent-emphasis); /** Outline color for focus states on interactive elements */
1671
1675
  --header-fgColor-default: #ffffffb3;
1672
1676
  --header-fgColor-logo: #ffffff;
1673
1677
  --label-auburn-borderColor: var(--label-auburn-fgColor-rest);
@@ -1699,10 +1703,10 @@
1699
1703
  --progressBar-bgColor-severe: var(--bgColor-severe-emphasis);
1700
1704
  --progressBar-bgColor-sponsors: var(--bgColor-sponsors-emphasis);
1701
1705
  --progressBar-bgColor-success: var(--bgColor-success-emphasis);
1702
- --selection-bgColor: #0349b433;
1703
- --shadow-inset: inset 0px 1px 0px 0px #0104090a;
1704
- --shadow-resting-small: 0px 1px 1px 0px #0104090f, 0px 1px 3px 0px #0104090f;
1705
- --shadow-resting-xsmall: 0px 1px 1px 0px #0104090f;
1706
+ --selection-bgColor: #0349b433; /** Background color for text selection highlights */
1707
+ --shadow-inset: inset 0px 1px 0px 0px #0104090a; /** Inset shadow for recessed elements */
1708
+ --shadow-resting-small: 0px 1px 1px 0px #0104090a, 0px 1px 2px 0px #01040908; /** Small resting shadow for buttons and interactive elements */
1709
+ --shadow-resting-xsmall: 0px 1px 1px 0px #0104090d; /** Extra small resting shadow for minimal elevation */
1706
1710
  --sideNav-bgColor-selected: #ffffff;
1707
1711
  --timelineBadge-bgColor: var(--bgColor-muted);
1708
1712
  --tooltip-bgColor: var(--bgColor-emphasis);
@@ -1717,7 +1721,7 @@
1717
1721
  --border-open-muted: var(--border-success-muted);
1718
1722
  --border-upsell-emphasis: 0.0625rem solid #622cbc;
1719
1723
  --border-upsell-muted: 0.0625rem solid #a371f7;
1720
- --borderColor-neutral-muted: var(--borderColor-muted);
1724
+ --borderColor-neutral-muted: var(--borderColor-muted); /** Subtle neutral semantic border */
1721
1725
  --button-danger-bgColor-disabled: var(--control-bgColor-disabled);
1722
1726
  --button-danger-borderColor-rest: var(--control-borderColor-rest);
1723
1727
  --button-danger-iconColor-rest: var(--button-danger-fgColor-rest);
@@ -1775,17 +1779,17 @@
1775
1779
  --diffBlob-expander-iconColor: var(--fgColor-default);
1776
1780
  --diffBlob-hunkNum-fgColor-hover: var(--fgColor-onEmphasis);
1777
1781
  --diffBlob-hunkNum-fgColor-rest: var(--fgColor-default);
1778
- --focus-outline: 2px solid #0349b4;
1782
+ --focus-outline: 2px solid #0349b4; /** Focus ring outline for keyboard navigation and accessibility. */
1779
1783
  --progressBar-track-bgColor: var(--bgColor-default);
1780
1784
  --reactionButton-selected-fgColor-rest: var(--fgColor-link);
1781
- --shadow-floating-large: 0px 0px 0px 1px #454c54, 0px 40px 80px 0px #25292e3d;
1782
- --shadow-floating-medium: 0px 0px 0px 1px #454c54, 0px 8px 16px -4px #25292e14, 0px 4px 32px -4px #25292e14, 0px 24px 48px -12px #25292e14, 0px 48px 96px -24px #25292e14;
1783
- --shadow-floating-small: 0px 0px 0px 1px #454c5480, 0px 6px 12px -3px #25292e0a, 0px 6px 18px 0px #25292e1f;
1784
- --shadow-floating-xlarge: 0px 0px 0px 1px #454c54, 0px 56px 112px 0px #25292e52;
1785
+ --shadow-floating-large: 0px 0px 0px 1px #454c54, 0px 40px 80px 0px #25292e3d; /** Large floating shadow for modals and dialogs */
1786
+ --shadow-floating-medium: 0px 0px 0px 1px #454c54, 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 */
1787
+ --shadow-floating-small: 0px 0px 0px 1px #454c5480, 0px 6px 12px -3px #25292e0a, 0px 6px 18px 0px #25292e1f; /** Small floating shadow for dropdowns, tooltips, and small overlays */
1788
+ --shadow-floating-xlarge: 0px 0px 0px 1px #454c54, 0px 56px 112px 0px #25292e52; /** Extra large floating shadow for full-screen overlays and sheets */
1785
1789
  --tooltip-fgColor: var(--fgColor-onEmphasis);
1786
1790
  --underlineNav-borderColor-hover: var(--borderColor-muted);
1787
1791
  --border-neutral-muted: 0.0625rem solid #454c54;
1788
- --borderColor-draft-muted: var(--borderColor-neutral-muted);
1792
+ --borderColor-draft-muted: var(--borderColor-neutral-muted); /** Subtle border for draft state indicators */
1789
1793
  --button-default-borderColor-hover: var(--button-default-borderColor-rest);
1790
1794
  --buttonKeybindingHint-danger-borderColor-disabled: var(--buttonKeybindingHint-default-borderColor-disabled);
1791
1795
  --buttonKeybindingHint-danger-borderColor-rest: var(--buttonKeybindingHint-default-borderColor-rest);