@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="dark"][data-dark-theme="dark_colorblind"],
2
6
  [data-color-mode="auto"][data-light-theme="dark_colorblind"] {
3
7
  --button-primary-bgColor-active: #3685f3;
@@ -7,54 +11,54 @@
7
11
  --color-ansi-cyan-bright: #56d4dd;
8
12
  --control-checked-bgColor-active: #3685f3;
9
13
  --control-checked-bgColor-hover: #2a7aef;
10
- --fgColor-accent: #4493f8;
14
+ --fgColor-accent: #4493f8; /** Accent text for links and interactive elements */
11
15
  --reactionButton-selected-bgColor-hover: #3a8cfd5c;
12
16
  --avatar-shadow: 0px 0px 0px 2px #0d1117;
13
17
  --avatarStack-fade-bgColor-default: #3d444d;
14
18
  --avatarStack-fade-bgColor-muted: #2a313c;
15
- --bgColor-accent-emphasis: #1f6feb;
16
- --bgColor-accent-muted: #388bfd1a;
17
- --bgColor-attention-emphasis: #9e6a03;
18
- --bgColor-attention-muted: #bb800926;
19
- --bgColor-danger-emphasis: #bd561d;
20
- --bgColor-danger-muted: #db6d281a;
21
- --bgColor-default: #0d1117;
22
- --bgColor-disabled: #212830;
23
- --bgColor-done-emphasis: #8957e5;
24
- --bgColor-done-muted: #ab7df826;
25
- --bgColor-emphasis: #3d444d;
26
- --bgColor-muted: #151b23;
27
- --bgColor-neutral-emphasis: #656c76;
28
- --bgColor-neutral-muted: #656c7633;
29
- --bgColor-open-emphasis: #bd561d;
30
- --bgColor-open-muted: #db6d281a;
31
- --bgColor-severe-emphasis: #bd561d;
32
- --bgColor-severe-muted: #db6d281a;
33
- --bgColor-sponsors-emphasis: #bf4b8a;
34
- --bgColor-sponsors-muted: #db61a21a;
35
- --bgColor-success-emphasis: #1f6feb;
36
- --bgColor-success-muted: #388bfd33;
37
- --bgColor-transparent: #00000000;
38
- --borderColor-accent-emphasis: #1f6feb;
39
- --borderColor-accent-muted: #388bfd66;
40
- --borderColor-attention-emphasis: #9e6a03;
41
- --borderColor-attention-muted: #bb800966;
42
- --borderColor-danger-emphasis: #bd561d;
43
- --borderColor-danger-muted: #db6d2866;
44
- --borderColor-default: #3d444d;
45
- --borderColor-disabled: #656c761a;
46
- --borderColor-done-emphasis: #8957e5;
47
- --borderColor-done-muted: #ab7df866;
48
- --borderColor-emphasis: #656c76;
49
- --borderColor-open-emphasis: #bd561d;
50
- --borderColor-open-muted: #db6d2866;
51
- --borderColor-severe-emphasis: #bd561d;
52
- --borderColor-severe-muted: #db6d2866;
53
- --borderColor-sponsors-emphasis: #bf4b8a;
54
- --borderColor-sponsors-muted: #db61a266;
55
- --borderColor-success-emphasis: #1f6feb;
56
- --borderColor-success-muted: #388bfd66;
57
- --borderColor-transparent: #00000000;
19
+ --bgColor-accent-emphasis: #1f6feb; /** Strong accent background for active states and focused states */
20
+ --bgColor-accent-muted: #388bfd1a; /** Subtle accent background for informational or selected elements */
21
+ --bgColor-attention-emphasis: #9e6a03; /** Strong attention background for prominent warnings */
22
+ --bgColor-attention-muted: #bb800926; /** Subtle attention background for warnings and caution states */
23
+ --bgColor-danger-emphasis: #bd561d; /** Emphasized danger background for critical errors and delete confirmations */
24
+ --bgColor-danger-muted: #db6d281a; /** Muted danger background for error states and destructive action contexts */
25
+ --bgColor-default: #0d1117; /** Default background color for pages and main content areas */
26
+ --bgColor-disabled: #212830; /** Background for disabled interactive elements */
27
+ --bgColor-done-emphasis: #8957e5; /** Strong background for completed/done state badges and labels */
28
+ --bgColor-done-muted: #ab7df826; /** Subtle background for completed/done state indicators */
29
+ --bgColor-emphasis: #3d444d; /** High-emphasis dark background for strong visual contrast */
30
+ --bgColor-muted: #151b23; /** Muted background for secondary content areas and subtle grouping */
31
+ --bgColor-neutral-emphasis: #656c76; /** Strong neutral background for prominent neutral elements */
32
+ --bgColor-neutral-muted: #656c7633; /** Subtle neutral background for tags, labels, and secondary UI elements */
33
+ --bgColor-open-emphasis: #bd561d; /** Strong background for open state badges and labels */
34
+ --bgColor-open-muted: #db6d281a; /** Subtle background for open state indicators (issues, PRs) */
35
+ --bgColor-severe-emphasis: #bd561d; /** Strong severe background for prominent high-priority warnings */
36
+ --bgColor-severe-muted: #db6d281a; /** Subtle severe background for high-priority warnings */
37
+ --bgColor-sponsors-emphasis: #bf4b8a; /** Strong background for prominent GitHub Sponsors elements */
38
+ --bgColor-sponsors-muted: #db61a21a; /** Subtle background for GitHub Sponsors content */
39
+ --bgColor-success-emphasis: #1f6feb; /** Strong success background for prominent positive actions */
40
+ --bgColor-success-muted: #388bfd33; /** Subtle success background for positive feedback and completed states */
41
+ --bgColor-transparent: #00000000; /** Fully transparent background */
42
+ --borderColor-accent-emphasis: #1f6feb; /** Strong accent border for selected or focused elements */
43
+ --borderColor-accent-muted: #388bfd66; /** Subtle accent border for selected or focused elements */
44
+ --borderColor-attention-emphasis: #9e6a03; /** Strong attention border for prominent warnings */
45
+ --borderColor-attention-muted: #bb800966; /** Subtle attention border for warnings and caution states */
46
+ --borderColor-danger-emphasis: #bd561d; /** Strong danger border for destructive actions and errors */
47
+ --borderColor-danger-muted: #db6d2866; /** Subtle danger border for errors and destructive contexts */
48
+ --borderColor-default: #3d444d; /** Default border color for most UI elements */
49
+ --borderColor-disabled: #656c761a; /** Border color for disabled interactive elements */
50
+ --borderColor-done-emphasis: #8957e5; /** Strong border for completed/done state badges */
51
+ --borderColor-done-muted: #ab7df866; /** Subtle border for completed/done state indicators */
52
+ --borderColor-emphasis: #656c76; /** Strong border for emphasis and visual weight */
53
+ --borderColor-open-emphasis: #bd561d; /** Strong border for open state badges */
54
+ --borderColor-open-muted: #db6d2866; /** Subtle border for open state indicators */
55
+ --borderColor-severe-emphasis: #bd561d; /** Strong severe border for prominent high-priority warnings */
56
+ --borderColor-severe-muted: #db6d2866; /** Subtle severe border for high-priority warnings */
57
+ --borderColor-sponsors-emphasis: #bf4b8a; /** Strong border for prominent GitHub Sponsors elements */
58
+ --borderColor-sponsors-muted: #db61a266; /** Subtle border for GitHub Sponsors content */
59
+ --borderColor-success-emphasis: #1f6feb; /** Strong success border for prominent positive elements */
60
+ --borderColor-success-muted: #388bfd66; /** Subtle success border for positive feedback elements */
61
+ --borderColor-transparent: #00000000; /** Fully transparent border */
58
62
  --button-danger-bgColor-hover: #9b4215;
59
63
  --button-danger-shadow-selected: 0px 0px 0px 0px #000000;
60
64
  --button-default-shadow-resting: 0px 0px 0px 0px #000000;
@@ -494,18 +498,18 @@
494
498
  --display-yellow-scale-7: #df9e11;
495
499
  --display-yellow-scale-8: #edb431;
496
500
  --display-yellow-scale-9: #f0ca6a;
497
- --fgColor-attention: #d29922;
498
- --fgColor-danger: #f0883e;
499
- --fgColor-default: #f0f6fc;
500
- --fgColor-disabled: #656c76;
501
- --fgColor-done: #ab7df8;
502
- --fgColor-link: var(--fgColor-accent);
503
- --fgColor-muted: #9198a1;
504
- --fgColor-neutral: #9198a1;
505
- --fgColor-open: #db6d28;
506
- --fgColor-severe: #db6d28;
507
- --fgColor-sponsors: #db61a2;
508
- --fgColor-success: #58a6ff;
501
+ --fgColor-attention: #d29922; /** Attention text for warnings and caution states */
502
+ --fgColor-danger: #f0883e; /** Danger text for errors and destructive actions */
503
+ --fgColor-default: #f0f6fc; /** Default text color for primary content and headings */
504
+ --fgColor-disabled: #656c76; /** Text color for disabled interactive elements */
505
+ --fgColor-done: #ab7df8; /** Text color for completed/done state indicators */
506
+ --fgColor-link: var(--fgColor-accent); /** Text color for hyperlinks */
507
+ --fgColor-muted: #9198a1; /** Muted text for secondary content and less important information */
508
+ --fgColor-neutral: #9198a1; /** Neutral semantic text for icons and secondary elements */
509
+ --fgColor-open: #db6d28; /** Text color for open state indicators (issues, PRs) */
510
+ --fgColor-severe: #db6d28; /** Severe text for high-priority warnings */
511
+ --fgColor-sponsors: #db61a2; /** Text color for GitHub Sponsors content */
512
+ --fgColor-success: #58a6ff; /** Success text for positive feedback and completed states */
509
513
  --header-bgColor: #151b23f2;
510
514
  --header-borderColor-divider: #656c76;
511
515
  --header-fgColor-logo: #f0f6fc;
@@ -657,16 +661,16 @@
657
661
  --topicTag-borderColor: #00000000;
658
662
  --underlineNav-borderColor-active: #f78166;
659
663
  --avatar-bgColor: #ffffff1a;
660
- --bgColor-black: #010409;
661
- --bgColor-closed-emphasis: var(--bgColor-neutral-emphasis);
662
- --bgColor-closed-muted: #656c761a;
663
- --bgColor-draft-emphasis: var(--bgColor-neutral-emphasis);
664
- --bgColor-draft-muted: #656c761a;
665
- --bgColor-inset: #010409;
666
- --bgColor-inverse: #ffffff;
667
- --bgColor-upsell-emphasis: var(--bgColor-done-emphasis);
668
- --bgColor-upsell-muted: var(--bgColor-done-muted);
669
- --bgColor-white: #ffffff;
664
+ --bgColor-black: #010409; /** Pure black background */
665
+ --bgColor-closed-emphasis: var(--bgColor-neutral-emphasis); /** Strong background for closed state badges and labels */
666
+ --bgColor-closed-muted: #656c761a; /** Subtle background for closed state indicators (issues, PRs) */
667
+ --bgColor-draft-emphasis: var(--bgColor-neutral-emphasis); /** Strong background for draft state badges and labels */
668
+ --bgColor-draft-muted: #656c761a; /** Subtle background for draft state indicators */
669
+ --bgColor-inset: #010409; /** Inset background for recessed content areas like wells or sunken panels */
670
+ --bgColor-inverse: #ffffff; /** Inverse background that flips between light and dark modes */
671
+ --bgColor-upsell-emphasis: var(--bgColor-done-emphasis); /** Strong background for prominent upsell elements */
672
+ --bgColor-upsell-muted: var(--bgColor-done-muted); /** Subtle background for upsell and promotional content */
673
+ --bgColor-white: #ffffff; /** Pure white background */
670
674
  --border-accent-emphasis: 0.0625rem solid #1f6feb;
671
675
  --border-accent-muted: 0.0625rem solid #388bfd66;
672
676
  --border-attention-emphasis: 0.0625rem solid #9e6a03;
@@ -685,14 +689,14 @@
685
689
  --border-success-emphasis: 0.0625rem solid #1f6feb;
686
690
  --border-success-muted: 0.0625rem solid #388bfd66;
687
691
  --border-transparent: 0.0625rem solid #00000000;
688
- --borderColor-closed-emphasis: var(--borderColor-emphasis);
689
- --borderColor-closed-muted: #3d444d66;
690
- --borderColor-draft-muted: #3d444d66;
691
- --borderColor-muted: #3d444db3;
692
- --borderColor-neutral-emphasis: var(--borderColor-emphasis);
693
- --borderColor-translucent: #ffffff26;
694
- --borderColor-upsell-emphasis: var(--borderColor-done-emphasis);
695
- --borderColor-upsell-muted: var(--borderColor-done-muted);
692
+ --borderColor-closed-emphasis: var(--borderColor-emphasis); /** Strong border for closed state badges */
693
+ --borderColor-closed-muted: #3d444d66; /** Subtle border for closed state indicators */
694
+ --borderColor-draft-muted: #3d444d66; /** Subtle border for draft state indicators */
695
+ --borderColor-muted: #3d444db3; /** Subtle border for secondary elements and light separators */
696
+ --borderColor-neutral-emphasis: var(--borderColor-emphasis); /** Strong neutral semantic border */
697
+ --borderColor-translucent: #ffffff26; /** Semi-transparent border for overlays and layered elements */
698
+ --borderColor-upsell-emphasis: var(--borderColor-done-emphasis); /** Strong border for prominent upsell elements */
699
+ --borderColor-upsell-muted: var(--borderColor-done-muted); /** Subtle border for upsell and promotional content */
696
700
  --button-danger-bgColor-active: var(--bgColor-danger-emphasis);
697
701
  --button-danger-bgColor-rest: var(--control-bgColor-rest);
698
702
  --button-danger-fgColor-active: #ffffff;
@@ -792,14 +796,14 @@
792
796
  --diffBlob-expander-iconColor: var(--fgColor-muted);
793
797
  --diffBlob-hunkLine-fgColor: var(--fgColor-muted);
794
798
  --diffBlob-hunkNum-fgColor-rest: var(--fgColor-default);
795
- --fgColor-black: #010409;
796
- --fgColor-closed: var(--fgColor-muted);
797
- --fgColor-draft: var(--fgColor-neutral);
798
- --fgColor-onEmphasis: #ffffff;
799
- --fgColor-onInverse: #010409;
800
- --fgColor-upsell: var(--fgColor-done);
801
- --fgColor-white: #ffffff;
802
- --focus-outlineColor: var(--borderColor-accent-emphasis);
799
+ --fgColor-black: #010409; /** Pure black text */
800
+ --fgColor-closed: var(--fgColor-muted); /** Text color for closed state indicators (issues, PRs) */
801
+ --fgColor-draft: var(--fgColor-neutral); /** Text color for draft state indicators */
802
+ --fgColor-onEmphasis: #ffffff; /** Text color for use on emphasis backgrounds */
803
+ --fgColor-onInverse: #010409; /** Text color for use on inverse backgrounds */
804
+ --fgColor-upsell: var(--fgColor-done); /** Text color for upsell and promotional content */
805
+ --fgColor-white: #ffffff; /** Pure white text */
806
+ --focus-outlineColor: var(--borderColor-accent-emphasis); /** Outline color for focus states on interactive elements */
803
807
  --header-fgColor-default: #ffffffb3;
804
808
  --overlay-bgColor: #010409;
805
809
  --page-header-bgColor: var(--bgColor-default);
@@ -814,12 +818,12 @@
814
818
  --progressBar-track-bgColor: var(--borderColor-default);
815
819
  --reactionButton-selected-fgColor-rest: var(--fgColor-link);
816
820
  --selectMenu-borderColor: var(--borderColor-default);
817
- --selection-bgColor: #1f6febb3;
818
- --shadow-floating-legacy: 0px 6px 12px -3px #01040966, 0px 6px 18px 0px #01040966;
819
- --shadow-inset: inset 0px 1px 0px 0px #0104093d;
820
- --shadow-resting-medium: 0px 1px 1px 0px #01040966, 0px 3px 6px 0px #010409cc;
821
- --shadow-resting-small: 0px 1px 1px 0px #01040999, 0px 1px 3px 0px #01040999;
822
- --shadow-resting-xsmall: 0px 1px 1px 0px #010409cc;
821
+ --selection-bgColor: #1f6febb3; /** Background color for text selection highlights */
822
+ --shadow-floating-legacy: 0px 6px 12px -3px #01040966, 0px 6px 18px 0px #01040966; /** Legacy floating shadow for backward compatibility */
823
+ --shadow-inset: inset 0px 1px 0px 0px #0104093d; /** Inset shadow for recessed elements */
824
+ --shadow-resting-medium: 0px 1px 1px 0px #01040966, 0px 3px 6px 0px #010409cc; /** Medium resting shadow for cards and elevated surfaces */
825
+ --shadow-resting-small: 0px 1px 1px 0px #01040999, 0px 1px 3px 0px #01040999; /** Small resting shadow for buttons and interactive elements */
826
+ --shadow-resting-xsmall: 0px 1px 1px 0px #010409cc; /** Extra small resting shadow for minimal elevation */
823
827
  --tooltip-bgColor: var(--bgColor-emphasis);
824
828
  --treeViewItem-leadingVisual-iconColor-rest: var(--fgColor-muted);
825
829
  --underlineNav-iconColor-rest: var(--fgColor-muted);
@@ -832,8 +836,8 @@
832
836
  --border-open-muted: var(--border-success-muted);
833
837
  --border-upsell-emphasis: 0.0625rem solid #8957e5;
834
838
  --border-upsell-muted: 0.0625rem solid #ab7df866;
835
- --borderColor-draft-emphasis: var(--borderColor-neutral-emphasis);
836
- --borderColor-neutral-muted: var(--borderColor-muted);
839
+ --borderColor-draft-emphasis: var(--borderColor-neutral-emphasis); /** Strong border for draft state badges */
840
+ --borderColor-neutral-muted: var(--borderColor-muted); /** Subtle neutral semantic border */
837
841
  --button-danger-bgColor-disabled: var(--control-bgColor-disabled);
838
842
  --button-danger-borderColor-rest: var(--control-borderColor-rest);
839
843
  --button-danger-iconColor-rest: var(--button-danger-fgColor-rest);
@@ -874,7 +878,7 @@
874
878
  --controlTrack-fgColor-disabled: var(--fgColor-onEmphasis);
875
879
  --dashboard-bgColor: var(--bgColor-inset);
876
880
  --diffBlob-hunkNum-fgColor-hover: var(--fgColor-onEmphasis);
877
- --focus-outline: 2px solid #1f6feb;
881
+ --focus-outline: 2px solid #1f6feb; /** Focus ring outline for keyboard navigation and accessibility. */
878
882
  --overlay-borderColor: var(--borderColor-muted);
879
883
  --tooltip-fgColor: var(--fgColor-onEmphasis);
880
884
  --border-neutral-muted: 0.0625rem solid #3d444db3;
@@ -886,10 +890,10 @@
886
890
  --buttonKeybindingHint-danger-borderColor-disabled: var(--buttonKeybindingHint-default-borderColor-disabled);
887
891
  --buttonKeybindingHint-danger-borderColor-rest: var(--buttonKeybindingHint-default-borderColor-rest);
888
892
  --buttonKeybindingHint-danger-fgColor-disabled: var(--buttonKeybindingHint-default-fgColor-disabled);
889
- --shadow-floating-large: 0px 0px 0px 1px #3d444d, 0px 24px 48px 0px #010409;
890
- --shadow-floating-medium: 0px 0px 0px 1px #3d444d, 0px 8px 16px -4px #01040966, 0px 4px 32px -4px #01040966, 0px 24px 48px -12px #01040966, 0px 48px 96px -24px #01040966;
891
- --shadow-floating-small: 0px 0px 0px 1px #3d444d, 0px 6px 12px -3px #01040966, 0px 6px 18px 0px #01040966;
892
- --shadow-floating-xlarge: 0px 0px 0px 1px #3d444d, 0px 32px 64px 0px #010409;
893
+ --shadow-floating-large: 0px 0px 0px 1px #3d444d, 0px 24px 48px 0px #010409; /** Large floating shadow for modals and dialogs */
894
+ --shadow-floating-medium: 0px 0px 0px 1px #3d444d, 0px 8px 16px -4px #01040966, 0px 4px 32px -4px #01040966, 0px 24px 48px -12px #01040966, 0px 48px 96px -24px #01040966; /** Medium floating shadow for popovers and action menus */
895
+ --shadow-floating-small: 0px 0px 0px 1px #3d444d, 0px 6px 12px -3px #01040966, 0px 6px 18px 0px #01040966; /** Small floating shadow for dropdowns, tooltips, and small overlays */
896
+ --shadow-floating-xlarge: 0px 0px 0px 1px #3d444d, 0px 32px 64px 0px #010409; /** Extra large floating shadow for full-screen overlays and sheets */
893
897
  --underlineNav-borderColor-hover: var(--borderColor-neutral-muted);
894
898
  --button-danger-borderColor-active: var(--button-danger-borderColor-hover);
895
899
  --button-outline-borderColor-hover: var(--button-default-borderColor-hover);
@@ -904,54 +908,54 @@
904
908
  --color-ansi-cyan-bright: #56d4dd;
905
909
  --control-checked-bgColor-active: #3685f3;
906
910
  --control-checked-bgColor-hover: #2a7aef;
907
- --fgColor-accent: #4493f8;
911
+ --fgColor-accent: #4493f8; /** Accent text for links and interactive elements */
908
912
  --reactionButton-selected-bgColor-hover: #3a8cfd5c;
909
913
  --avatar-shadow: 0px 0px 0px 2px #0d1117;
910
914
  --avatarStack-fade-bgColor-default: #3d444d;
911
915
  --avatarStack-fade-bgColor-muted: #2a313c;
912
- --bgColor-accent-emphasis: #1f6feb;
913
- --bgColor-accent-muted: #388bfd1a;
914
- --bgColor-attention-emphasis: #9e6a03;
915
- --bgColor-attention-muted: #bb800926;
916
- --bgColor-danger-emphasis: #bd561d;
917
- --bgColor-danger-muted: #db6d281a;
918
- --bgColor-default: #0d1117;
919
- --bgColor-disabled: #212830;
920
- --bgColor-done-emphasis: #8957e5;
921
- --bgColor-done-muted: #ab7df826;
922
- --bgColor-emphasis: #3d444d;
923
- --bgColor-muted: #151b23;
924
- --bgColor-neutral-emphasis: #656c76;
925
- --bgColor-neutral-muted: #656c7633;
926
- --bgColor-open-emphasis: #bd561d;
927
- --bgColor-open-muted: #db6d281a;
928
- --bgColor-severe-emphasis: #bd561d;
929
- --bgColor-severe-muted: #db6d281a;
930
- --bgColor-sponsors-emphasis: #bf4b8a;
931
- --bgColor-sponsors-muted: #db61a21a;
932
- --bgColor-success-emphasis: #1f6feb;
933
- --bgColor-success-muted: #388bfd33;
934
- --bgColor-transparent: #00000000;
935
- --borderColor-accent-emphasis: #1f6feb;
936
- --borderColor-accent-muted: #388bfd66;
937
- --borderColor-attention-emphasis: #9e6a03;
938
- --borderColor-attention-muted: #bb800966;
939
- --borderColor-danger-emphasis: #bd561d;
940
- --borderColor-danger-muted: #db6d2866;
941
- --borderColor-default: #3d444d;
942
- --borderColor-disabled: #656c761a;
943
- --borderColor-done-emphasis: #8957e5;
944
- --borderColor-done-muted: #ab7df866;
945
- --borderColor-emphasis: #656c76;
946
- --borderColor-open-emphasis: #bd561d;
947
- --borderColor-open-muted: #db6d2866;
948
- --borderColor-severe-emphasis: #bd561d;
949
- --borderColor-severe-muted: #db6d2866;
950
- --borderColor-sponsors-emphasis: #bf4b8a;
951
- --borderColor-sponsors-muted: #db61a266;
952
- --borderColor-success-emphasis: #1f6feb;
953
- --borderColor-success-muted: #388bfd66;
954
- --borderColor-transparent: #00000000;
916
+ --bgColor-accent-emphasis: #1f6feb; /** Strong accent background for active states and focused states */
917
+ --bgColor-accent-muted: #388bfd1a; /** Subtle accent background for informational or selected elements */
918
+ --bgColor-attention-emphasis: #9e6a03; /** Strong attention background for prominent warnings */
919
+ --bgColor-attention-muted: #bb800926; /** Subtle attention background for warnings and caution states */
920
+ --bgColor-danger-emphasis: #bd561d; /** Emphasized danger background for critical errors and delete confirmations */
921
+ --bgColor-danger-muted: #db6d281a; /** Muted danger background for error states and destructive action contexts */
922
+ --bgColor-default: #0d1117; /** Default background color for pages and main content areas */
923
+ --bgColor-disabled: #212830; /** Background for disabled interactive elements */
924
+ --bgColor-done-emphasis: #8957e5; /** Strong background for completed/done state badges and labels */
925
+ --bgColor-done-muted: #ab7df826; /** Subtle background for completed/done state indicators */
926
+ --bgColor-emphasis: #3d444d; /** High-emphasis dark background for strong visual contrast */
927
+ --bgColor-muted: #151b23; /** Muted background for secondary content areas and subtle grouping */
928
+ --bgColor-neutral-emphasis: #656c76; /** Strong neutral background for prominent neutral elements */
929
+ --bgColor-neutral-muted: #656c7633; /** Subtle neutral background for tags, labels, and secondary UI elements */
930
+ --bgColor-open-emphasis: #bd561d; /** Strong background for open state badges and labels */
931
+ --bgColor-open-muted: #db6d281a; /** Subtle background for open state indicators (issues, PRs) */
932
+ --bgColor-severe-emphasis: #bd561d; /** Strong severe background for prominent high-priority warnings */
933
+ --bgColor-severe-muted: #db6d281a; /** Subtle severe background for high-priority warnings */
934
+ --bgColor-sponsors-emphasis: #bf4b8a; /** Strong background for prominent GitHub Sponsors elements */
935
+ --bgColor-sponsors-muted: #db61a21a; /** Subtle background for GitHub Sponsors content */
936
+ --bgColor-success-emphasis: #1f6feb; /** Strong success background for prominent positive actions */
937
+ --bgColor-success-muted: #388bfd33; /** Subtle success background for positive feedback and completed states */
938
+ --bgColor-transparent: #00000000; /** Fully transparent background */
939
+ --borderColor-accent-emphasis: #1f6feb; /** Strong accent border for selected or focused elements */
940
+ --borderColor-accent-muted: #388bfd66; /** Subtle accent border for selected or focused elements */
941
+ --borderColor-attention-emphasis: #9e6a03; /** Strong attention border for prominent warnings */
942
+ --borderColor-attention-muted: #bb800966; /** Subtle attention border for warnings and caution states */
943
+ --borderColor-danger-emphasis: #bd561d; /** Strong danger border for destructive actions and errors */
944
+ --borderColor-danger-muted: #db6d2866; /** Subtle danger border for errors and destructive contexts */
945
+ --borderColor-default: #3d444d; /** Default border color for most UI elements */
946
+ --borderColor-disabled: #656c761a; /** Border color for disabled interactive elements */
947
+ --borderColor-done-emphasis: #8957e5; /** Strong border for completed/done state badges */
948
+ --borderColor-done-muted: #ab7df866; /** Subtle border for completed/done state indicators */
949
+ --borderColor-emphasis: #656c76; /** Strong border for emphasis and visual weight */
950
+ --borderColor-open-emphasis: #bd561d; /** Strong border for open state badges */
951
+ --borderColor-open-muted: #db6d2866; /** Subtle border for open state indicators */
952
+ --borderColor-severe-emphasis: #bd561d; /** Strong severe border for prominent high-priority warnings */
953
+ --borderColor-severe-muted: #db6d2866; /** Subtle severe border for high-priority warnings */
954
+ --borderColor-sponsors-emphasis: #bf4b8a; /** Strong border for prominent GitHub Sponsors elements */
955
+ --borderColor-sponsors-muted: #db61a266; /** Subtle border for GitHub Sponsors content */
956
+ --borderColor-success-emphasis: #1f6feb; /** Strong success border for prominent positive elements */
957
+ --borderColor-success-muted: #388bfd66; /** Subtle success border for positive feedback elements */
958
+ --borderColor-transparent: #00000000; /** Fully transparent border */
955
959
  --button-danger-bgColor-hover: #9b4215;
956
960
  --button-danger-shadow-selected: 0px 0px 0px 0px #000000;
957
961
  --button-default-shadow-resting: 0px 0px 0px 0px #000000;
@@ -1391,18 +1395,18 @@
1391
1395
  --display-yellow-scale-7: #df9e11;
1392
1396
  --display-yellow-scale-8: #edb431;
1393
1397
  --display-yellow-scale-9: #f0ca6a;
1394
- --fgColor-attention: #d29922;
1395
- --fgColor-danger: #f0883e;
1396
- --fgColor-default: #f0f6fc;
1397
- --fgColor-disabled: #656c76;
1398
- --fgColor-done: #ab7df8;
1399
- --fgColor-link: var(--fgColor-accent);
1400
- --fgColor-muted: #9198a1;
1401
- --fgColor-neutral: #9198a1;
1402
- --fgColor-open: #db6d28;
1403
- --fgColor-severe: #db6d28;
1404
- --fgColor-sponsors: #db61a2;
1405
- --fgColor-success: #58a6ff;
1398
+ --fgColor-attention: #d29922; /** Attention text for warnings and caution states */
1399
+ --fgColor-danger: #f0883e; /** Danger text for errors and destructive actions */
1400
+ --fgColor-default: #f0f6fc; /** Default text color for primary content and headings */
1401
+ --fgColor-disabled: #656c76; /** Text color for disabled interactive elements */
1402
+ --fgColor-done: #ab7df8; /** Text color for completed/done state indicators */
1403
+ --fgColor-link: var(--fgColor-accent); /** Text color for hyperlinks */
1404
+ --fgColor-muted: #9198a1; /** Muted text for secondary content and less important information */
1405
+ --fgColor-neutral: #9198a1; /** Neutral semantic text for icons and secondary elements */
1406
+ --fgColor-open: #db6d28; /** Text color for open state indicators (issues, PRs) */
1407
+ --fgColor-severe: #db6d28; /** Severe text for high-priority warnings */
1408
+ --fgColor-sponsors: #db61a2; /** Text color for GitHub Sponsors content */
1409
+ --fgColor-success: #58a6ff; /** Success text for positive feedback and completed states */
1406
1410
  --header-bgColor: #151b23f2;
1407
1411
  --header-borderColor-divider: #656c76;
1408
1412
  --header-fgColor-logo: #f0f6fc;
@@ -1554,16 +1558,16 @@
1554
1558
  --topicTag-borderColor: #00000000;
1555
1559
  --underlineNav-borderColor-active: #f78166;
1556
1560
  --avatar-bgColor: #ffffff1a;
1557
- --bgColor-black: #010409;
1558
- --bgColor-closed-emphasis: var(--bgColor-neutral-emphasis);
1559
- --bgColor-closed-muted: #656c761a;
1560
- --bgColor-draft-emphasis: var(--bgColor-neutral-emphasis);
1561
- --bgColor-draft-muted: #656c761a;
1562
- --bgColor-inset: #010409;
1563
- --bgColor-inverse: #ffffff;
1564
- --bgColor-upsell-emphasis: var(--bgColor-done-emphasis);
1565
- --bgColor-upsell-muted: var(--bgColor-done-muted);
1566
- --bgColor-white: #ffffff;
1561
+ --bgColor-black: #010409; /** Pure black background */
1562
+ --bgColor-closed-emphasis: var(--bgColor-neutral-emphasis); /** Strong background for closed state badges and labels */
1563
+ --bgColor-closed-muted: #656c761a; /** Subtle background for closed state indicators (issues, PRs) */
1564
+ --bgColor-draft-emphasis: var(--bgColor-neutral-emphasis); /** Strong background for draft state badges and labels */
1565
+ --bgColor-draft-muted: #656c761a; /** Subtle background for draft state indicators */
1566
+ --bgColor-inset: #010409; /** Inset background for recessed content areas like wells or sunken panels */
1567
+ --bgColor-inverse: #ffffff; /** Inverse background that flips between light and dark modes */
1568
+ --bgColor-upsell-emphasis: var(--bgColor-done-emphasis); /** Strong background for prominent upsell elements */
1569
+ --bgColor-upsell-muted: var(--bgColor-done-muted); /** Subtle background for upsell and promotional content */
1570
+ --bgColor-white: #ffffff; /** Pure white background */
1567
1571
  --border-accent-emphasis: 0.0625rem solid #1f6feb;
1568
1572
  --border-accent-muted: 0.0625rem solid #388bfd66;
1569
1573
  --border-attention-emphasis: 0.0625rem solid #9e6a03;
@@ -1582,14 +1586,14 @@
1582
1586
  --border-success-emphasis: 0.0625rem solid #1f6feb;
1583
1587
  --border-success-muted: 0.0625rem solid #388bfd66;
1584
1588
  --border-transparent: 0.0625rem solid #00000000;
1585
- --borderColor-closed-emphasis: var(--borderColor-emphasis);
1586
- --borderColor-closed-muted: #3d444d66;
1587
- --borderColor-draft-muted: #3d444d66;
1588
- --borderColor-muted: #3d444db3;
1589
- --borderColor-neutral-emphasis: var(--borderColor-emphasis);
1590
- --borderColor-translucent: #ffffff26;
1591
- --borderColor-upsell-emphasis: var(--borderColor-done-emphasis);
1592
- --borderColor-upsell-muted: var(--borderColor-done-muted);
1589
+ --borderColor-closed-emphasis: var(--borderColor-emphasis); /** Strong border for closed state badges */
1590
+ --borderColor-closed-muted: #3d444d66; /** Subtle border for closed state indicators */
1591
+ --borderColor-draft-muted: #3d444d66; /** Subtle border for draft state indicators */
1592
+ --borderColor-muted: #3d444db3; /** Subtle border for secondary elements and light separators */
1593
+ --borderColor-neutral-emphasis: var(--borderColor-emphasis); /** Strong neutral semantic border */
1594
+ --borderColor-translucent: #ffffff26; /** Semi-transparent border for overlays and layered elements */
1595
+ --borderColor-upsell-emphasis: var(--borderColor-done-emphasis); /** Strong border for prominent upsell elements */
1596
+ --borderColor-upsell-muted: var(--borderColor-done-muted); /** Subtle border for upsell and promotional content */
1593
1597
  --button-danger-bgColor-active: var(--bgColor-danger-emphasis);
1594
1598
  --button-danger-bgColor-rest: var(--control-bgColor-rest);
1595
1599
  --button-danger-fgColor-active: #ffffff;
@@ -1689,14 +1693,14 @@
1689
1693
  --diffBlob-expander-iconColor: var(--fgColor-muted);
1690
1694
  --diffBlob-hunkLine-fgColor: var(--fgColor-muted);
1691
1695
  --diffBlob-hunkNum-fgColor-rest: var(--fgColor-default);
1692
- --fgColor-black: #010409;
1693
- --fgColor-closed: var(--fgColor-muted);
1694
- --fgColor-draft: var(--fgColor-neutral);
1695
- --fgColor-onEmphasis: #ffffff;
1696
- --fgColor-onInverse: #010409;
1697
- --fgColor-upsell: var(--fgColor-done);
1698
- --fgColor-white: #ffffff;
1699
- --focus-outlineColor: var(--borderColor-accent-emphasis);
1696
+ --fgColor-black: #010409; /** Pure black text */
1697
+ --fgColor-closed: var(--fgColor-muted); /** Text color for closed state indicators (issues, PRs) */
1698
+ --fgColor-draft: var(--fgColor-neutral); /** Text color for draft state indicators */
1699
+ --fgColor-onEmphasis: #ffffff; /** Text color for use on emphasis backgrounds */
1700
+ --fgColor-onInverse: #010409; /** Text color for use on inverse backgrounds */
1701
+ --fgColor-upsell: var(--fgColor-done); /** Text color for upsell and promotional content */
1702
+ --fgColor-white: #ffffff; /** Pure white text */
1703
+ --focus-outlineColor: var(--borderColor-accent-emphasis); /** Outline color for focus states on interactive elements */
1700
1704
  --header-fgColor-default: #ffffffb3;
1701
1705
  --overlay-bgColor: #010409;
1702
1706
  --page-header-bgColor: var(--bgColor-default);
@@ -1711,12 +1715,12 @@
1711
1715
  --progressBar-track-bgColor: var(--borderColor-default);
1712
1716
  --reactionButton-selected-fgColor-rest: var(--fgColor-link);
1713
1717
  --selectMenu-borderColor: var(--borderColor-default);
1714
- --selection-bgColor: #1f6febb3;
1715
- --shadow-floating-legacy: 0px 6px 12px -3px #01040966, 0px 6px 18px 0px #01040966;
1716
- --shadow-inset: inset 0px 1px 0px 0px #0104093d;
1717
- --shadow-resting-medium: 0px 1px 1px 0px #01040966, 0px 3px 6px 0px #010409cc;
1718
- --shadow-resting-small: 0px 1px 1px 0px #01040999, 0px 1px 3px 0px #01040999;
1719
- --shadow-resting-xsmall: 0px 1px 1px 0px #010409cc;
1718
+ --selection-bgColor: #1f6febb3; /** Background color for text selection highlights */
1719
+ --shadow-floating-legacy: 0px 6px 12px -3px #01040966, 0px 6px 18px 0px #01040966; /** Legacy floating shadow for backward compatibility */
1720
+ --shadow-inset: inset 0px 1px 0px 0px #0104093d; /** Inset shadow for recessed elements */
1721
+ --shadow-resting-medium: 0px 1px 1px 0px #01040966, 0px 3px 6px 0px #010409cc; /** Medium resting shadow for cards and elevated surfaces */
1722
+ --shadow-resting-small: 0px 1px 1px 0px #01040999, 0px 1px 3px 0px #01040999; /** Small resting shadow for buttons and interactive elements */
1723
+ --shadow-resting-xsmall: 0px 1px 1px 0px #010409cc; /** Extra small resting shadow for minimal elevation */
1720
1724
  --tooltip-bgColor: var(--bgColor-emphasis);
1721
1725
  --treeViewItem-leadingVisual-iconColor-rest: var(--fgColor-muted);
1722
1726
  --underlineNav-iconColor-rest: var(--fgColor-muted);
@@ -1729,8 +1733,8 @@
1729
1733
  --border-open-muted: var(--border-success-muted);
1730
1734
  --border-upsell-emphasis: 0.0625rem solid #8957e5;
1731
1735
  --border-upsell-muted: 0.0625rem solid #ab7df866;
1732
- --borderColor-draft-emphasis: var(--borderColor-neutral-emphasis);
1733
- --borderColor-neutral-muted: var(--borderColor-muted);
1736
+ --borderColor-draft-emphasis: var(--borderColor-neutral-emphasis); /** Strong border for draft state badges */
1737
+ --borderColor-neutral-muted: var(--borderColor-muted); /** Subtle neutral semantic border */
1734
1738
  --button-danger-bgColor-disabled: var(--control-bgColor-disabled);
1735
1739
  --button-danger-borderColor-rest: var(--control-borderColor-rest);
1736
1740
  --button-danger-iconColor-rest: var(--button-danger-fgColor-rest);
@@ -1771,7 +1775,7 @@
1771
1775
  --controlTrack-fgColor-disabled: var(--fgColor-onEmphasis);
1772
1776
  --dashboard-bgColor: var(--bgColor-inset);
1773
1777
  --diffBlob-hunkNum-fgColor-hover: var(--fgColor-onEmphasis);
1774
- --focus-outline: 2px solid #1f6feb;
1778
+ --focus-outline: 2px solid #1f6feb; /** Focus ring outline for keyboard navigation and accessibility. */
1775
1779
  --overlay-borderColor: var(--borderColor-muted);
1776
1780
  --tooltip-fgColor: var(--fgColor-onEmphasis);
1777
1781
  --border-neutral-muted: 0.0625rem solid #3d444db3;
@@ -1783,10 +1787,10 @@
1783
1787
  --buttonKeybindingHint-danger-borderColor-disabled: var(--buttonKeybindingHint-default-borderColor-disabled);
1784
1788
  --buttonKeybindingHint-danger-borderColor-rest: var(--buttonKeybindingHint-default-borderColor-rest);
1785
1789
  --buttonKeybindingHint-danger-fgColor-disabled: var(--buttonKeybindingHint-default-fgColor-disabled);
1786
- --shadow-floating-large: 0px 0px 0px 1px #3d444d, 0px 24px 48px 0px #010409;
1787
- --shadow-floating-medium: 0px 0px 0px 1px #3d444d, 0px 8px 16px -4px #01040966, 0px 4px 32px -4px #01040966, 0px 24px 48px -12px #01040966, 0px 48px 96px -24px #01040966;
1788
- --shadow-floating-small: 0px 0px 0px 1px #3d444d, 0px 6px 12px -3px #01040966, 0px 6px 18px 0px #01040966;
1789
- --shadow-floating-xlarge: 0px 0px 0px 1px #3d444d, 0px 32px 64px 0px #010409;
1790
+ --shadow-floating-large: 0px 0px 0px 1px #3d444d, 0px 24px 48px 0px #010409; /** Large floating shadow for modals and dialogs */
1791
+ --shadow-floating-medium: 0px 0px 0px 1px #3d444d, 0px 8px 16px -4px #01040966, 0px 4px 32px -4px #01040966, 0px 24px 48px -12px #01040966, 0px 48px 96px -24px #01040966; /** Medium floating shadow for popovers and action menus */
1792
+ --shadow-floating-small: 0px 0px 0px 1px #3d444d, 0px 6px 12px -3px #01040966, 0px 6px 18px 0px #01040966; /** Small floating shadow for dropdowns, tooltips, and small overlays */
1793
+ --shadow-floating-xlarge: 0px 0px 0px 1px #3d444d, 0px 32px 64px 0px #010409; /** Extra large floating shadow for full-screen overlays and sheets */
1790
1794
  --underlineNav-borderColor-hover: var(--borderColor-neutral-muted);
1791
1795
  --button-danger-borderColor-active: var(--button-danger-borderColor-hover);
1792
1796
  --button-outline-borderColor-hover: var(--button-default-borderColor-hover);