@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
@@ -287,13 +287,9 @@
287
287
  --base-display-color-yellow-7: #df9e11;
288
288
  --base-display-color-yellow-8: #edb431;
289
289
  --base-display-color-yellow-9: #f0ca6a;
290
- --borderRadius-full: 624.9375rem; /** Use this border radius for pill shaped elements */
291
- --borderRadius-large: 0.75rem;
292
- --borderRadius-medium: 0.375rem;
293
- --borderRadius-small: 0.1875rem;
294
- --borderWidth-thick: 0.125rem;
295
- --borderWidth-thicker: 0.25rem;
296
- --borderWidth-thin: 0.0625rem;
290
+ --borderWidth-thick: 0.125rem; /** Thick 2px border for emphasis. Use for focus indicators, selected states, or to emphasize important boundaries */
291
+ --borderWidth-thicker: 0.25rem; /** Extra thick 4px border for maximum emphasis. Use sparingly for high-contrast focus indicators or critical visual separators */
292
+ --borderWidth-thin: 0.0625rem; /** Standard 1px border width. Use for most borders, dividers, and outlines throughout the interface */
297
293
  --button-danger-fgColor-rest: #fa5e55;
298
294
  --button-primary-bgColor-active: #2e9a40;
299
295
  --button-primary-bgColor-disabled: #105823;
@@ -303,9 +299,9 @@
303
299
  --color-ansi-cyan-bright: #56d4dd;
304
300
  --control-checked-bgColor-active: #3685f3;
305
301
  --control-checked-bgColor-hover: #2a7aef;
306
- --fgColor-accent: #4493f8;
307
- --outline-focus-offset: -0.125rem;
308
- --outline-focus-width: 0.125rem;
302
+ --fgColor-accent: #4493f8; /** Accent text for links and interactive elements */
303
+ --outline-focus-offset: -0.125rem; /** Focus outline offset (-2px). Negative value creates an inset outline for keyboard focus indicators, ensuring the focus ring stays within the element bounds */
304
+ --outline-focus-width: 0.125rem; /** Focus outline width (2px). Standard width for keyboard focus indicators to meet WCAG 2.4.7 accessibility requirements */
309
305
  --reactionButton-selected-bgColor-hover: #3a8cfd5c;
310
306
  --avatar-shadow: 0px 0px 0px 2px #0d1117;
311
307
  --avatarStack-fade-bgColor-default: var(--base-color-neutral-7);
@@ -313,50 +309,49 @@
313
309
  --base-color-inset: var(--base-color-black);
314
310
  --base-color-neutral-0: var(--base-color-black);
315
311
  --base-color-neutral-13: var(--base-color-white);
316
- --bgColor-accent-emphasis: var(--base-color-blue-5);
317
- --bgColor-accent-muted: #388bfd1a;
318
- --bgColor-attention-emphasis: var(--base-color-yellow-5);
319
- --bgColor-attention-muted: #bb800926;
320
- --bgColor-danger-emphasis: var(--base-color-red-5);
321
- --bgColor-danger-muted: #f851491a;
322
- --bgColor-default: var(--base-color-neutral-1);
323
- --bgColor-disabled: var(--base-color-neutral-3);
324
- --bgColor-done-emphasis: var(--base-color-purple-5);
325
- --bgColor-done-muted: #ab7df826;
326
- --bgColor-emphasis: var(--base-color-neutral-7);
327
- --bgColor-muted: var(--base-color-neutral-2);
328
- --bgColor-neutral-emphasis: var(--base-color-neutral-8);
329
- --bgColor-neutral-muted: #656c7633;
330
- --bgColor-severe-emphasis: var(--base-color-orange-5);
331
- --bgColor-severe-muted: #db6d281a;
332
- --bgColor-sponsors-emphasis: var(--base-color-pink-5);
333
- --bgColor-sponsors-muted: #db61a21a;
334
- --bgColor-success-emphasis: var(--base-color-green-5);
335
- --bgColor-success-muted: #2ea04326;
336
- --bgColor-transparent: var(--base-color-transparent);
337
- --borderColor-accent-emphasis: var(--base-color-blue-5);
338
- --borderColor-accent-muted: #388bfd66;
339
- --borderColor-attention-emphasis: var(--base-color-yellow-5);
340
- --borderColor-attention-muted: #bb800966;
341
- --borderColor-danger-emphasis: var(--base-color-red-5);
342
- --borderColor-danger-muted: #f8514966;
343
- --borderColor-default: var(--base-color-neutral-7);
344
- --borderColor-disabled: #656c761a;
345
- --borderColor-done-emphasis: var(--base-color-purple-5);
346
- --borderColor-done-muted: #ab7df866;
347
- --borderColor-emphasis: var(--base-color-neutral-8);
348
- --borderColor-severe-emphasis: var(--base-color-orange-5);
349
- --borderColor-severe-muted: #db6d2866;
350
- --borderColor-sponsors-emphasis: var(--base-color-pink-5);
351
- --borderColor-sponsors-muted: #db61a266;
352
- --borderColor-success-emphasis: var(--base-color-green-5);
353
- --borderColor-success-muted: #2ea04366;
354
- --borderColor-transparent: var(--base-color-transparent);
355
- --borderRadius-default: var(--borderRadius-medium);
356
- --borderWidth-default: var(--borderWidth-thin);
357
- --boxShadow-thick: inset 0 0 0 var(--borderWidth-thick);
358
- --boxShadow-thicker: inset 0 0 0 var(--borderWidth-thicker);
359
- --boxShadow-thin: inset 0 0 0 var(--borderWidth-thin); /** Thin shadow for borders */
312
+ --bgColor-accent-emphasis: var(--base-color-blue-5); /** Strong accent background for active states and focused states */
313
+ --bgColor-accent-muted: #388bfd1a; /** Subtle accent background for informational or selected elements */
314
+ --bgColor-attention-emphasis: var(--base-color-yellow-5); /** Strong attention background for prominent warnings */
315
+ --bgColor-attention-muted: #bb800926; /** Subtle attention background for warnings and caution states */
316
+ --bgColor-danger-emphasis: var(--base-color-red-5); /** Emphasized danger background for critical errors and delete confirmations */
317
+ --bgColor-danger-muted: #f851491a; /** Muted danger background for error states and destructive action contexts */
318
+ --bgColor-default: var(--base-color-neutral-1); /** Default background color for pages and main content areas */
319
+ --bgColor-disabled: var(--base-color-neutral-3); /** Background for disabled interactive elements */
320
+ --bgColor-done-emphasis: var(--base-color-purple-5); /** Strong background for completed/done state badges and labels */
321
+ --bgColor-done-muted: #ab7df826; /** Subtle background for completed/done state indicators */
322
+ --bgColor-emphasis: var(--base-color-neutral-7); /** High-emphasis dark background for strong visual contrast */
323
+ --bgColor-muted: var(--base-color-neutral-2); /** Muted background for secondary content areas and subtle grouping */
324
+ --bgColor-neutral-emphasis: var(--base-color-neutral-8); /** Strong neutral background for prominent neutral elements */
325
+ --bgColor-neutral-muted: #656c7633; /** Subtle neutral background for tags, labels, and secondary UI elements */
326
+ --bgColor-severe-emphasis: var(--base-color-orange-5); /** Strong severe background for prominent high-priority warnings */
327
+ --bgColor-severe-muted: #db6d281a; /** Subtle severe background for high-priority warnings */
328
+ --bgColor-sponsors-emphasis: var(--base-color-pink-5); /** Strong background for prominent GitHub Sponsors elements */
329
+ --bgColor-sponsors-muted: #db61a21a; /** Subtle background for GitHub Sponsors content */
330
+ --bgColor-success-emphasis: var(--base-color-green-5); /** Strong success background for prominent positive actions */
331
+ --bgColor-success-muted: #2ea04326; /** Subtle success background for positive feedback and completed states */
332
+ --bgColor-transparent: var(--base-color-transparent); /** Fully transparent background */
333
+ --borderColor-accent-emphasis: var(--base-color-blue-5); /** Strong accent border for selected or focused elements */
334
+ --borderColor-accent-muted: #388bfd66; /** Subtle accent border for selected or focused elements */
335
+ --borderColor-attention-emphasis: var(--base-color-yellow-5); /** Strong attention border for prominent warnings */
336
+ --borderColor-attention-muted: #bb800966; /** Subtle attention border for warnings and caution states */
337
+ --borderColor-danger-emphasis: var(--base-color-red-5); /** Strong danger border for destructive actions and errors */
338
+ --borderColor-danger-muted: #f8514966; /** Subtle danger border for errors and destructive contexts */
339
+ --borderColor-default: var(--base-color-neutral-7); /** Default border color for most UI elements */
340
+ --borderColor-disabled: #656c761a; /** Border color for disabled interactive elements */
341
+ --borderColor-done-emphasis: var(--base-color-purple-5); /** Strong border for completed/done state badges */
342
+ --borderColor-done-muted: #ab7df866; /** Subtle border for completed/done state indicators */
343
+ --borderColor-emphasis: var(--base-color-neutral-8); /** Strong border for emphasis and visual weight */
344
+ --borderColor-severe-emphasis: var(--base-color-orange-5); /** Strong severe border for prominent high-priority warnings */
345
+ --borderColor-severe-muted: #db6d2866; /** Subtle severe border for high-priority warnings */
346
+ --borderColor-sponsors-emphasis: var(--base-color-pink-5); /** Strong border for prominent GitHub Sponsors elements */
347
+ --borderColor-sponsors-muted: #db61a266; /** Subtle border for GitHub Sponsors content */
348
+ --borderColor-success-emphasis: var(--base-color-green-5); /** Strong success border for prominent positive elements */
349
+ --borderColor-success-muted: #2ea04366; /** Subtle success border for positive feedback elements */
350
+ --borderColor-transparent: var(--base-color-transparent); /** Fully transparent border */
351
+ --borderWidth-default: var(--borderWidth-thin); /** Default border width for most UI elements. Alias of borderWidth.thin (1px) */
352
+ --boxShadow-thick: inset 0 0 0 var(--borderWidth-thick); /** Thick shadow (2px) used instead of a border for emphasis without layout shift */
353
+ --boxShadow-thicker: inset 0 0 0 var(--borderWidth-thicker); /** Thickest shadow (4px) used for high emphasis borders without layout shift. Use sparingly for maximum visual impact */
354
+ --boxShadow-thin: inset 0 0 0 var(--borderWidth-thin); /** Thin shadow used instead of a border to prevent layout shift */
360
355
  --button-danger-bgColor-hover: var(--base-color-red-6);
361
356
  --button-danger-iconColor-rest: var(--button-danger-fgColor-rest);
362
357
  --button-danger-shadow-selected: 0px 0px 0px 0px #000000;
@@ -793,17 +788,17 @@
793
788
  --display-yellow-scale-7: var(--base-display-color-yellow-7);
794
789
  --display-yellow-scale-8: var(--base-display-color-yellow-8);
795
790
  --display-yellow-scale-9: var(--base-display-color-yellow-9);
796
- --fgColor-attention: var(--base-color-yellow-3);
797
- --fgColor-danger: var(--base-color-red-4);
798
- --fgColor-default: var(--base-color-neutral-12);
799
- --fgColor-disabled: var(--base-color-neutral-8);
800
- --fgColor-done: var(--base-color-purple-4);
801
- --fgColor-link: var(--fgColor-accent);
802
- --fgColor-muted: var(--base-color-neutral-9);
803
- --fgColor-neutral: var(--base-color-neutral-9);
804
- --fgColor-severe: var(--base-color-orange-4);
805
- --fgColor-sponsors: var(--base-color-pink-4);
806
- --fgColor-success: var(--base-color-green-3);
791
+ --fgColor-attention: var(--base-color-yellow-3); /** Attention text for warnings and caution states */
792
+ --fgColor-danger: var(--base-color-red-4); /** Danger text for errors and destructive actions */
793
+ --fgColor-default: var(--base-color-neutral-12); /** Default text color for primary content and headings */
794
+ --fgColor-disabled: var(--base-color-neutral-8); /** Text color for disabled interactive elements */
795
+ --fgColor-done: var(--base-color-purple-4); /** Text color for completed/done state indicators */
796
+ --fgColor-link: var(--fgColor-accent); /** Text color for hyperlinks */
797
+ --fgColor-muted: var(--base-color-neutral-9); /** Muted text for secondary content and less important information */
798
+ --fgColor-neutral: var(--base-color-neutral-9); /** Neutral semantic text for icons and secondary elements */
799
+ --fgColor-severe: var(--base-color-orange-4); /** Severe text for high-priority warnings */
800
+ --fgColor-sponsors: var(--base-color-pink-4); /** Text color for GitHub Sponsors content */
801
+ --fgColor-success: var(--base-color-green-3); /** Success text for positive feedback and completed states */
807
802
  --header-bgColor: #151b23f2;
808
803
  --header-borderColor-divider: var(--base-color-neutral-8);
809
804
  --header-fgColor-logo: var(--base-color-neutral-12);
@@ -955,18 +950,18 @@
955
950
  --topicTag-borderColor: var(--base-color-transparent);
956
951
  --underlineNav-borderColor-active: var(--base-color-coral-3);
957
952
  --avatar-bgColor: #ffffff1a;
958
- --bgColor-black: var(--base-color-neutral-0);
959
- --bgColor-closed-emphasis: var(--bgColor-danger-emphasis);
960
- --bgColor-closed-muted: var(--bgColor-danger-muted);
961
- --bgColor-draft-emphasis: var(--bgColor-neutral-emphasis);
962
- --bgColor-draft-muted: var(--bgColor-neutral-muted);
963
- --bgColor-inset: var(--base-color-neutral-0);
964
- --bgColor-inverse: var(--base-color-neutral-13);
965
- --bgColor-open-emphasis: var(--bgColor-success-emphasis);
966
- --bgColor-open-muted: var(--bgColor-success-muted);
967
- --bgColor-upsell-emphasis: var(--bgColor-done-emphasis);
968
- --bgColor-upsell-muted: var(--bgColor-done-muted);
969
- --bgColor-white: var(--base-color-neutral-13);
953
+ --bgColor-black: var(--base-color-neutral-0); /** Pure black background */
954
+ --bgColor-closed-emphasis: var(--bgColor-danger-emphasis); /** Strong background for closed state badges and labels */
955
+ --bgColor-closed-muted: var(--bgColor-danger-muted); /** Subtle background for closed state indicators (issues, PRs) */
956
+ --bgColor-draft-emphasis: var(--bgColor-neutral-emphasis); /** Strong background for draft state badges and labels */
957
+ --bgColor-draft-muted: var(--bgColor-neutral-muted); /** Subtle background for draft state indicators */
958
+ --bgColor-inset: var(--base-color-neutral-0); /** Inset background for recessed content areas like wells or sunken panels */
959
+ --bgColor-inverse: var(--base-color-neutral-13); /** Inverse background that flips between light and dark modes */
960
+ --bgColor-open-emphasis: var(--bgColor-success-emphasis); /** Strong background for open state badges and labels */
961
+ --bgColor-open-muted: var(--bgColor-success-muted); /** Subtle background for open state indicators (issues, PRs) */
962
+ --bgColor-upsell-emphasis: var(--bgColor-done-emphasis); /** Strong background for prominent upsell elements */
963
+ --bgColor-upsell-muted: var(--bgColor-done-muted); /** Subtle background for upsell and promotional content */
964
+ --bgColor-white: var(--base-color-neutral-13); /** Pure white background */
970
965
  --border-accent-emphasis: 0.0625rem solid #1f6feb;
971
966
  --border-accent-muted: 0.0625rem solid #388bfd66;
972
967
  --border-attention-emphasis: 0.0625rem solid #9e6a03;
@@ -985,15 +980,15 @@
985
980
  --border-success-emphasis: 0.0625rem solid #238636;
986
981
  --border-success-muted: 0.0625rem solid #2ea04366;
987
982
  --border-transparent: 0.0625rem solid #00000000;
988
- --borderColor-closed-emphasis: var(--borderColor-danger-emphasis);
989
- --borderColor-closed-muted: var(--borderColor-danger-muted);
990
- --borderColor-muted: #3d444db3;
991
- --borderColor-neutral-emphasis: var(--borderColor-emphasis);
992
- --borderColor-open-emphasis: var(--borderColor-success-emphasis);
993
- --borderColor-open-muted: var(--borderColor-success-muted);
994
- --borderColor-translucent: #ffffff26;
995
- --borderColor-upsell-emphasis: var(--borderColor-done-emphasis);
996
- --borderColor-upsell-muted: var(--borderColor-done-muted);
983
+ --borderColor-closed-emphasis: var(--borderColor-danger-emphasis); /** Strong border for closed state badges */
984
+ --borderColor-closed-muted: var(--borderColor-danger-muted); /** Subtle border for closed state indicators */
985
+ --borderColor-muted: #3d444db3; /** Subtle border for secondary elements and light separators */
986
+ --borderColor-neutral-emphasis: var(--borderColor-emphasis); /** Strong neutral semantic border */
987
+ --borderColor-open-emphasis: var(--borderColor-success-emphasis); /** Strong border for open state badges */
988
+ --borderColor-open-muted: var(--borderColor-success-muted); /** Subtle border for open state indicators */
989
+ --borderColor-translucent: #ffffff26; /** Semi-transparent border for overlays and layered elements */
990
+ --borderColor-upsell-emphasis: var(--borderColor-done-emphasis); /** Strong border for prominent upsell elements */
991
+ --borderColor-upsell-muted: var(--borderColor-done-muted); /** Subtle border for upsell and promotional content */
997
992
  --button-danger-bgColor-active: var(--bgColor-danger-emphasis);
998
993
  --button-danger-bgColor-rest: var(--control-bgColor-rest);
999
994
  --button-danger-fgColor-active: var(--base-color-neutral-13);
@@ -1095,15 +1090,15 @@
1095
1090
  --diffBlob-hunkLine-fgColor: var(--fgColor-muted);
1096
1091
  --diffBlob-hunkNum-bgColor-hover: var(--bgColor-accent-emphasis);
1097
1092
  --diffBlob-hunkNum-fgColor-rest: var(--fgColor-default);
1098
- --fgColor-black: var(--base-color-neutral-0);
1099
- --fgColor-closed: var(--fgColor-danger);
1100
- --fgColor-draft: var(--fgColor-neutral);
1101
- --fgColor-onEmphasis: var(--base-color-neutral-13);
1102
- --fgColor-onInverse: var(--base-color-neutral-0);
1103
- --fgColor-open: var(--fgColor-success);
1104
- --fgColor-upsell: var(--fgColor-done);
1105
- --fgColor-white: var(--base-color-neutral-13);
1106
- --focus-outlineColor: var(--borderColor-accent-emphasis);
1093
+ --fgColor-black: var(--base-color-neutral-0); /** Pure black text */
1094
+ --fgColor-closed: var(--fgColor-danger); /** Text color for closed state indicators (issues, PRs) */
1095
+ --fgColor-draft: var(--fgColor-neutral); /** Text color for draft state indicators */
1096
+ --fgColor-onEmphasis: var(--base-color-neutral-13); /** Text color for use on emphasis backgrounds */
1097
+ --fgColor-onInverse: var(--base-color-neutral-0); /** Text color for use on inverse backgrounds */
1098
+ --fgColor-open: var(--fgColor-success); /** Text color for open state indicators (issues, PRs) */
1099
+ --fgColor-upsell: var(--fgColor-done); /** Text color for upsell and promotional content */
1100
+ --fgColor-white: var(--base-color-neutral-13); /** Pure white text */
1101
+ --focus-outlineColor: var(--borderColor-accent-emphasis); /** Outline color for focus states on interactive elements */
1107
1102
  --header-fgColor-default: #ffffffb3;
1108
1103
  --overlay-bgColor: var(--base-color-neutral-0);
1109
1104
  --page-header-bgColor: var(--bgColor-default);
@@ -1118,12 +1113,12 @@
1118
1113
  --progressBar-track-bgColor: var(--borderColor-default);
1119
1114
  --reactionButton-selected-fgColor-rest: var(--fgColor-link);
1120
1115
  --selectMenu-borderColor: var(--borderColor-default);
1121
- --selection-bgColor: #1f6febb3;
1122
- --shadow-floating-legacy: 0px 6px 12px -3px #01040966, 0px 6px 18px 0px #01040966;
1123
- --shadow-inset: inset 0px 1px 0px 0px #0104093d;
1124
- --shadow-resting-medium: 0px 1px 1px 0px #01040966, 0px 3px 6px 0px #010409cc;
1125
- --shadow-resting-small: 0px 1px 1px 0px #01040999, 0px 1px 3px 0px #01040999;
1126
- --shadow-resting-xsmall: 0px 1px 1px 0px #010409cc;
1116
+ --selection-bgColor: #1f6febb3; /** Background color for text selection highlights */
1117
+ --shadow-floating-legacy: 0px 6px 12px -3px #01040966, 0px 6px 18px 0px #01040966; /** Legacy floating shadow for backward compatibility */
1118
+ --shadow-inset: inset 0px 1px 0px 0px #0104093d; /** Inset shadow for recessed elements */
1119
+ --shadow-resting-medium: 0px 1px 1px 0px #01040966, 0px 3px 6px 0px #010409cc; /** Medium resting shadow for cards and elevated surfaces */
1120
+ --shadow-resting-small: 0px 1px 1px 0px #01040999, 0px 1px 3px 0px #01040999; /** Small resting shadow for buttons and interactive elements */
1121
+ --shadow-resting-xsmall: 0px 1px 1px 0px #010409cc; /** Extra small resting shadow for minimal elevation */
1127
1122
  --tooltip-bgColor: var(--bgColor-emphasis);
1128
1123
  --treeViewItem-leadingVisual-iconColor-rest: var(--fgColor-muted);
1129
1124
  --underlineNav-iconColor-rest: var(--fgColor-muted);
@@ -1136,8 +1131,8 @@
1136
1131
  --border-open-muted: var(--border-success-muted);
1137
1132
  --border-upsell-emphasis: 0.0625rem solid #8957e5;
1138
1133
  --border-upsell-muted: 0.0625rem solid #ab7df866;
1139
- --borderColor-draft-emphasis: var(--borderColor-neutral-emphasis);
1140
- --borderColor-neutral-muted: var(--borderColor-muted);
1134
+ --borderColor-draft-emphasis: var(--borderColor-neutral-emphasis); /** Strong border for draft state badges */
1135
+ --borderColor-neutral-muted: var(--borderColor-muted); /** Subtle neutral semantic border */
1141
1136
  --button-danger-bgColor-disabled: var(--control-bgColor-disabled);
1142
1137
  --button-danger-borderColor-rest: var(--control-borderColor-rest);
1143
1138
  --button-default-bgColor-disabled: var(--control-bgColor-disabled);
@@ -1177,11 +1172,11 @@
1177
1172
  --controlTrack-fgColor-disabled: var(--fgColor-onEmphasis);
1178
1173
  --dashboard-bgColor: var(--bgColor-inset);
1179
1174
  --diffBlob-hunkNum-fgColor-hover: var(--fgColor-onEmphasis);
1180
- --focus-outline: 2px solid #1f6feb;
1175
+ --focus-outline: 2px solid #1f6feb; /** Focus ring outline for keyboard navigation and accessibility. */
1181
1176
  --overlay-borderColor: var(--borderColor-muted);
1182
1177
  --tooltip-fgColor: var(--fgColor-onEmphasis);
1183
1178
  --border-neutral-muted: 0.0625rem solid #3d444db3;
1184
- --borderColor-draft-muted: var(--borderColor-neutral-muted);
1179
+ --borderColor-draft-muted: var(--borderColor-neutral-muted); /** Subtle border for draft state indicators */
1185
1180
  --button-danger-borderColor-hover: var(--button-primary-borderColor-rest);
1186
1181
  --button-default-borderColor-active: var(--button-default-borderColor-rest);
1187
1182
  --button-default-borderColor-hover: var(--button-default-borderColor-rest);
@@ -1190,10 +1185,10 @@
1190
1185
  --buttonKeybindingHint-danger-borderColor-disabled: var(--buttonKeybindingHint-default-borderColor-disabled);
1191
1186
  --buttonKeybindingHint-danger-borderColor-rest: var(--buttonKeybindingHint-default-borderColor-rest);
1192
1187
  --buttonKeybindingHint-danger-fgColor-disabled: var(--buttonKeybindingHint-default-fgColor-disabled);
1193
- --shadow-floating-large: 0px 0px 0px 1px #3d444d, 0px 24px 48px 0px #010409;
1194
- --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;
1195
- --shadow-floating-small: 0px 0px 0px 1px #3d444d, 0px 6px 12px -3px #01040966, 0px 6px 18px 0px #01040966;
1196
- --shadow-floating-xlarge: 0px 0px 0px 1px #3d444d, 0px 32px 64px 0px #010409;
1188
+ --shadow-floating-large: 0px 0px 0px 1px #3d444d, 0px 24px 48px 0px #010409; /** Large floating shadow for modals and dialogs */
1189
+ --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 */
1190
+ --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 */
1191
+ --shadow-floating-xlarge: 0px 0px 0px 1px #3d444d, 0px 32px 64px 0px #010409; /** Extra large floating shadow for full-screen overlays and sheets */
1197
1192
  --underlineNav-borderColor-hover: var(--borderColor-neutral-muted);
1198
1193
  --button-danger-borderColor-active: var(--button-danger-borderColor-hover);
1199
1194
  --button-outline-borderColor-hover: var(--button-default-borderColor-hover);
@@ -1488,13 +1483,9 @@
1488
1483
  --base-display-color-yellow-7: #df9e11;
1489
1484
  --base-display-color-yellow-8: #edb431;
1490
1485
  --base-display-color-yellow-9: #f0ca6a;
1491
- --borderRadius-full: 624.9375rem; /** Use this border radius for pill shaped elements */
1492
- --borderRadius-large: 0.75rem;
1493
- --borderRadius-medium: 0.375rem;
1494
- --borderRadius-small: 0.1875rem;
1495
- --borderWidth-thick: 0.125rem;
1496
- --borderWidth-thicker: 0.25rem;
1497
- --borderWidth-thin: 0.0625rem;
1486
+ --borderWidth-thick: 0.125rem; /** Thick 2px border for emphasis. Use for focus indicators, selected states, or to emphasize important boundaries */
1487
+ --borderWidth-thicker: 0.25rem; /** Extra thick 4px border for maximum emphasis. Use sparingly for high-contrast focus indicators or critical visual separators */
1488
+ --borderWidth-thin: 0.0625rem; /** Standard 1px border width. Use for most borders, dividers, and outlines throughout the interface */
1498
1489
  --button-danger-fgColor-rest: #fa5e55;
1499
1490
  --button-primary-bgColor-active: #2e9a40;
1500
1491
  --button-primary-bgColor-disabled: #105823;
@@ -1504,9 +1495,9 @@
1504
1495
  --color-ansi-cyan-bright: #56d4dd;
1505
1496
  --control-checked-bgColor-active: #3685f3;
1506
1497
  --control-checked-bgColor-hover: #2a7aef;
1507
- --fgColor-accent: #4493f8;
1508
- --outline-focus-offset: -0.125rem;
1509
- --outline-focus-width: 0.125rem;
1498
+ --fgColor-accent: #4493f8; /** Accent text for links and interactive elements */
1499
+ --outline-focus-offset: -0.125rem; /** Focus outline offset (-2px). Negative value creates an inset outline for keyboard focus indicators, ensuring the focus ring stays within the element bounds */
1500
+ --outline-focus-width: 0.125rem; /** Focus outline width (2px). Standard width for keyboard focus indicators to meet WCAG 2.4.7 accessibility requirements */
1510
1501
  --reactionButton-selected-bgColor-hover: #3a8cfd5c;
1511
1502
  --avatar-shadow: 0px 0px 0px 2px #0d1117;
1512
1503
  --avatarStack-fade-bgColor-default: var(--base-color-neutral-7);
@@ -1514,50 +1505,49 @@
1514
1505
  --base-color-inset: var(--base-color-black);
1515
1506
  --base-color-neutral-0: var(--base-color-black);
1516
1507
  --base-color-neutral-13: var(--base-color-white);
1517
- --bgColor-accent-emphasis: var(--base-color-blue-5);
1518
- --bgColor-accent-muted: #388bfd1a;
1519
- --bgColor-attention-emphasis: var(--base-color-yellow-5);
1520
- --bgColor-attention-muted: #bb800926;
1521
- --bgColor-danger-emphasis: var(--base-color-red-5);
1522
- --bgColor-danger-muted: #f851491a;
1523
- --bgColor-default: var(--base-color-neutral-1);
1524
- --bgColor-disabled: var(--base-color-neutral-3);
1525
- --bgColor-done-emphasis: var(--base-color-purple-5);
1526
- --bgColor-done-muted: #ab7df826;
1527
- --bgColor-emphasis: var(--base-color-neutral-7);
1528
- --bgColor-muted: var(--base-color-neutral-2);
1529
- --bgColor-neutral-emphasis: var(--base-color-neutral-8);
1530
- --bgColor-neutral-muted: #656c7633;
1531
- --bgColor-severe-emphasis: var(--base-color-orange-5);
1532
- --bgColor-severe-muted: #db6d281a;
1533
- --bgColor-sponsors-emphasis: var(--base-color-pink-5);
1534
- --bgColor-sponsors-muted: #db61a21a;
1535
- --bgColor-success-emphasis: var(--base-color-green-5);
1536
- --bgColor-success-muted: #2ea04326;
1537
- --bgColor-transparent: var(--base-color-transparent);
1538
- --borderColor-accent-emphasis: var(--base-color-blue-5);
1539
- --borderColor-accent-muted: #388bfd66;
1540
- --borderColor-attention-emphasis: var(--base-color-yellow-5);
1541
- --borderColor-attention-muted: #bb800966;
1542
- --borderColor-danger-emphasis: var(--base-color-red-5);
1543
- --borderColor-danger-muted: #f8514966;
1544
- --borderColor-default: var(--base-color-neutral-7);
1545
- --borderColor-disabled: #656c761a;
1546
- --borderColor-done-emphasis: var(--base-color-purple-5);
1547
- --borderColor-done-muted: #ab7df866;
1548
- --borderColor-emphasis: var(--base-color-neutral-8);
1549
- --borderColor-severe-emphasis: var(--base-color-orange-5);
1550
- --borderColor-severe-muted: #db6d2866;
1551
- --borderColor-sponsors-emphasis: var(--base-color-pink-5);
1552
- --borderColor-sponsors-muted: #db61a266;
1553
- --borderColor-success-emphasis: var(--base-color-green-5);
1554
- --borderColor-success-muted: #2ea04366;
1555
- --borderColor-transparent: var(--base-color-transparent);
1556
- --borderRadius-default: var(--borderRadius-medium);
1557
- --borderWidth-default: var(--borderWidth-thin);
1558
- --boxShadow-thick: inset 0 0 0 var(--borderWidth-thick);
1559
- --boxShadow-thicker: inset 0 0 0 var(--borderWidth-thicker);
1560
- --boxShadow-thin: inset 0 0 0 var(--borderWidth-thin); /** Thin shadow for borders */
1508
+ --bgColor-accent-emphasis: var(--base-color-blue-5); /** Strong accent background for active states and focused states */
1509
+ --bgColor-accent-muted: #388bfd1a; /** Subtle accent background for informational or selected elements */
1510
+ --bgColor-attention-emphasis: var(--base-color-yellow-5); /** Strong attention background for prominent warnings */
1511
+ --bgColor-attention-muted: #bb800926; /** Subtle attention background for warnings and caution states */
1512
+ --bgColor-danger-emphasis: var(--base-color-red-5); /** Emphasized danger background for critical errors and delete confirmations */
1513
+ --bgColor-danger-muted: #f851491a; /** Muted danger background for error states and destructive action contexts */
1514
+ --bgColor-default: var(--base-color-neutral-1); /** Default background color for pages and main content areas */
1515
+ --bgColor-disabled: var(--base-color-neutral-3); /** Background for disabled interactive elements */
1516
+ --bgColor-done-emphasis: var(--base-color-purple-5); /** Strong background for completed/done state badges and labels */
1517
+ --bgColor-done-muted: #ab7df826; /** Subtle background for completed/done state indicators */
1518
+ --bgColor-emphasis: var(--base-color-neutral-7); /** High-emphasis dark background for strong visual contrast */
1519
+ --bgColor-muted: var(--base-color-neutral-2); /** Muted background for secondary content areas and subtle grouping */
1520
+ --bgColor-neutral-emphasis: var(--base-color-neutral-8); /** Strong neutral background for prominent neutral elements */
1521
+ --bgColor-neutral-muted: #656c7633; /** Subtle neutral background for tags, labels, and secondary UI elements */
1522
+ --bgColor-severe-emphasis: var(--base-color-orange-5); /** Strong severe background for prominent high-priority warnings */
1523
+ --bgColor-severe-muted: #db6d281a; /** Subtle severe background for high-priority warnings */
1524
+ --bgColor-sponsors-emphasis: var(--base-color-pink-5); /** Strong background for prominent GitHub Sponsors elements */
1525
+ --bgColor-sponsors-muted: #db61a21a; /** Subtle background for GitHub Sponsors content */
1526
+ --bgColor-success-emphasis: var(--base-color-green-5); /** Strong success background for prominent positive actions */
1527
+ --bgColor-success-muted: #2ea04326; /** Subtle success background for positive feedback and completed states */
1528
+ --bgColor-transparent: var(--base-color-transparent); /** Fully transparent background */
1529
+ --borderColor-accent-emphasis: var(--base-color-blue-5); /** Strong accent border for selected or focused elements */
1530
+ --borderColor-accent-muted: #388bfd66; /** Subtle accent border for selected or focused elements */
1531
+ --borderColor-attention-emphasis: var(--base-color-yellow-5); /** Strong attention border for prominent warnings */
1532
+ --borderColor-attention-muted: #bb800966; /** Subtle attention border for warnings and caution states */
1533
+ --borderColor-danger-emphasis: var(--base-color-red-5); /** Strong danger border for destructive actions and errors */
1534
+ --borderColor-danger-muted: #f8514966; /** Subtle danger border for errors and destructive contexts */
1535
+ --borderColor-default: var(--base-color-neutral-7); /** Default border color for most UI elements */
1536
+ --borderColor-disabled: #656c761a; /** Border color for disabled interactive elements */
1537
+ --borderColor-done-emphasis: var(--base-color-purple-5); /** Strong border for completed/done state badges */
1538
+ --borderColor-done-muted: #ab7df866; /** Subtle border for completed/done state indicators */
1539
+ --borderColor-emphasis: var(--base-color-neutral-8); /** Strong border for emphasis and visual weight */
1540
+ --borderColor-severe-emphasis: var(--base-color-orange-5); /** Strong severe border for prominent high-priority warnings */
1541
+ --borderColor-severe-muted: #db6d2866; /** Subtle severe border for high-priority warnings */
1542
+ --borderColor-sponsors-emphasis: var(--base-color-pink-5); /** Strong border for prominent GitHub Sponsors elements */
1543
+ --borderColor-sponsors-muted: #db61a266; /** Subtle border for GitHub Sponsors content */
1544
+ --borderColor-success-emphasis: var(--base-color-green-5); /** Strong success border for prominent positive elements */
1545
+ --borderColor-success-muted: #2ea04366; /** Subtle success border for positive feedback elements */
1546
+ --borderColor-transparent: var(--base-color-transparent); /** Fully transparent border */
1547
+ --borderWidth-default: var(--borderWidth-thin); /** Default border width for most UI elements. Alias of borderWidth.thin (1px) */
1548
+ --boxShadow-thick: inset 0 0 0 var(--borderWidth-thick); /** Thick shadow (2px) used instead of a border for emphasis without layout shift */
1549
+ --boxShadow-thicker: inset 0 0 0 var(--borderWidth-thicker); /** Thickest shadow (4px) used for high emphasis borders without layout shift. Use sparingly for maximum visual impact */
1550
+ --boxShadow-thin: inset 0 0 0 var(--borderWidth-thin); /** Thin shadow used instead of a border to prevent layout shift */
1561
1551
  --button-danger-bgColor-hover: var(--base-color-red-6);
1562
1552
  --button-danger-iconColor-rest: var(--button-danger-fgColor-rest);
1563
1553
  --button-danger-shadow-selected: 0px 0px 0px 0px #000000;
@@ -1994,17 +1984,17 @@
1994
1984
  --display-yellow-scale-7: var(--base-display-color-yellow-7);
1995
1985
  --display-yellow-scale-8: var(--base-display-color-yellow-8);
1996
1986
  --display-yellow-scale-9: var(--base-display-color-yellow-9);
1997
- --fgColor-attention: var(--base-color-yellow-3);
1998
- --fgColor-danger: var(--base-color-red-4);
1999
- --fgColor-default: var(--base-color-neutral-12);
2000
- --fgColor-disabled: var(--base-color-neutral-8);
2001
- --fgColor-done: var(--base-color-purple-4);
2002
- --fgColor-link: var(--fgColor-accent);
2003
- --fgColor-muted: var(--base-color-neutral-9);
2004
- --fgColor-neutral: var(--base-color-neutral-9);
2005
- --fgColor-severe: var(--base-color-orange-4);
2006
- --fgColor-sponsors: var(--base-color-pink-4);
2007
- --fgColor-success: var(--base-color-green-3);
1987
+ --fgColor-attention: var(--base-color-yellow-3); /** Attention text for warnings and caution states */
1988
+ --fgColor-danger: var(--base-color-red-4); /** Danger text for errors and destructive actions */
1989
+ --fgColor-default: var(--base-color-neutral-12); /** Default text color for primary content and headings */
1990
+ --fgColor-disabled: var(--base-color-neutral-8); /** Text color for disabled interactive elements */
1991
+ --fgColor-done: var(--base-color-purple-4); /** Text color for completed/done state indicators */
1992
+ --fgColor-link: var(--fgColor-accent); /** Text color for hyperlinks */
1993
+ --fgColor-muted: var(--base-color-neutral-9); /** Muted text for secondary content and less important information */
1994
+ --fgColor-neutral: var(--base-color-neutral-9); /** Neutral semantic text for icons and secondary elements */
1995
+ --fgColor-severe: var(--base-color-orange-4); /** Severe text for high-priority warnings */
1996
+ --fgColor-sponsors: var(--base-color-pink-4); /** Text color for GitHub Sponsors content */
1997
+ --fgColor-success: var(--base-color-green-3); /** Success text for positive feedback and completed states */
2008
1998
  --header-bgColor: #151b23f2;
2009
1999
  --header-borderColor-divider: var(--base-color-neutral-8);
2010
2000
  --header-fgColor-logo: var(--base-color-neutral-12);
@@ -2156,18 +2146,18 @@
2156
2146
  --topicTag-borderColor: var(--base-color-transparent);
2157
2147
  --underlineNav-borderColor-active: var(--base-color-coral-3);
2158
2148
  --avatar-bgColor: #ffffff1a;
2159
- --bgColor-black: var(--base-color-neutral-0);
2160
- --bgColor-closed-emphasis: var(--bgColor-danger-emphasis);
2161
- --bgColor-closed-muted: var(--bgColor-danger-muted);
2162
- --bgColor-draft-emphasis: var(--bgColor-neutral-emphasis);
2163
- --bgColor-draft-muted: var(--bgColor-neutral-muted);
2164
- --bgColor-inset: var(--base-color-neutral-0);
2165
- --bgColor-inverse: var(--base-color-neutral-13);
2166
- --bgColor-open-emphasis: var(--bgColor-success-emphasis);
2167
- --bgColor-open-muted: var(--bgColor-success-muted);
2168
- --bgColor-upsell-emphasis: var(--bgColor-done-emphasis);
2169
- --bgColor-upsell-muted: var(--bgColor-done-muted);
2170
- --bgColor-white: var(--base-color-neutral-13);
2149
+ --bgColor-black: var(--base-color-neutral-0); /** Pure black background */
2150
+ --bgColor-closed-emphasis: var(--bgColor-danger-emphasis); /** Strong background for closed state badges and labels */
2151
+ --bgColor-closed-muted: var(--bgColor-danger-muted); /** Subtle background for closed state indicators (issues, PRs) */
2152
+ --bgColor-draft-emphasis: var(--bgColor-neutral-emphasis); /** Strong background for draft state badges and labels */
2153
+ --bgColor-draft-muted: var(--bgColor-neutral-muted); /** Subtle background for draft state indicators */
2154
+ --bgColor-inset: var(--base-color-neutral-0); /** Inset background for recessed content areas like wells or sunken panels */
2155
+ --bgColor-inverse: var(--base-color-neutral-13); /** Inverse background that flips between light and dark modes */
2156
+ --bgColor-open-emphasis: var(--bgColor-success-emphasis); /** Strong background for open state badges and labels */
2157
+ --bgColor-open-muted: var(--bgColor-success-muted); /** Subtle background for open state indicators (issues, PRs) */
2158
+ --bgColor-upsell-emphasis: var(--bgColor-done-emphasis); /** Strong background for prominent upsell elements */
2159
+ --bgColor-upsell-muted: var(--bgColor-done-muted); /** Subtle background for upsell and promotional content */
2160
+ --bgColor-white: var(--base-color-neutral-13); /** Pure white background */
2171
2161
  --border-accent-emphasis: 0.0625rem solid #1f6feb;
2172
2162
  --border-accent-muted: 0.0625rem solid #388bfd66;
2173
2163
  --border-attention-emphasis: 0.0625rem solid #9e6a03;
@@ -2186,15 +2176,15 @@
2186
2176
  --border-success-emphasis: 0.0625rem solid #238636;
2187
2177
  --border-success-muted: 0.0625rem solid #2ea04366;
2188
2178
  --border-transparent: 0.0625rem solid #00000000;
2189
- --borderColor-closed-emphasis: var(--borderColor-danger-emphasis);
2190
- --borderColor-closed-muted: var(--borderColor-danger-muted);
2191
- --borderColor-muted: #3d444db3;
2192
- --borderColor-neutral-emphasis: var(--borderColor-emphasis);
2193
- --borderColor-open-emphasis: var(--borderColor-success-emphasis);
2194
- --borderColor-open-muted: var(--borderColor-success-muted);
2195
- --borderColor-translucent: #ffffff26;
2196
- --borderColor-upsell-emphasis: var(--borderColor-done-emphasis);
2197
- --borderColor-upsell-muted: var(--borderColor-done-muted);
2179
+ --borderColor-closed-emphasis: var(--borderColor-danger-emphasis); /** Strong border for closed state badges */
2180
+ --borderColor-closed-muted: var(--borderColor-danger-muted); /** Subtle border for closed state indicators */
2181
+ --borderColor-muted: #3d444db3; /** Subtle border for secondary elements and light separators */
2182
+ --borderColor-neutral-emphasis: var(--borderColor-emphasis); /** Strong neutral semantic border */
2183
+ --borderColor-open-emphasis: var(--borderColor-success-emphasis); /** Strong border for open state badges */
2184
+ --borderColor-open-muted: var(--borderColor-success-muted); /** Subtle border for open state indicators */
2185
+ --borderColor-translucent: #ffffff26; /** Semi-transparent border for overlays and layered elements */
2186
+ --borderColor-upsell-emphasis: var(--borderColor-done-emphasis); /** Strong border for prominent upsell elements */
2187
+ --borderColor-upsell-muted: var(--borderColor-done-muted); /** Subtle border for upsell and promotional content */
2198
2188
  --button-danger-bgColor-active: var(--bgColor-danger-emphasis);
2199
2189
  --button-danger-bgColor-rest: var(--control-bgColor-rest);
2200
2190
  --button-danger-fgColor-active: var(--base-color-neutral-13);
@@ -2296,15 +2286,15 @@
2296
2286
  --diffBlob-hunkLine-fgColor: var(--fgColor-muted);
2297
2287
  --diffBlob-hunkNum-bgColor-hover: var(--bgColor-accent-emphasis);
2298
2288
  --diffBlob-hunkNum-fgColor-rest: var(--fgColor-default);
2299
- --fgColor-black: var(--base-color-neutral-0);
2300
- --fgColor-closed: var(--fgColor-danger);
2301
- --fgColor-draft: var(--fgColor-neutral);
2302
- --fgColor-onEmphasis: var(--base-color-neutral-13);
2303
- --fgColor-onInverse: var(--base-color-neutral-0);
2304
- --fgColor-open: var(--fgColor-success);
2305
- --fgColor-upsell: var(--fgColor-done);
2306
- --fgColor-white: var(--base-color-neutral-13);
2307
- --focus-outlineColor: var(--borderColor-accent-emphasis);
2289
+ --fgColor-black: var(--base-color-neutral-0); /** Pure black text */
2290
+ --fgColor-closed: var(--fgColor-danger); /** Text color for closed state indicators (issues, PRs) */
2291
+ --fgColor-draft: var(--fgColor-neutral); /** Text color for draft state indicators */
2292
+ --fgColor-onEmphasis: var(--base-color-neutral-13); /** Text color for use on emphasis backgrounds */
2293
+ --fgColor-onInverse: var(--base-color-neutral-0); /** Text color for use on inverse backgrounds */
2294
+ --fgColor-open: var(--fgColor-success); /** Text color for open state indicators (issues, PRs) */
2295
+ --fgColor-upsell: var(--fgColor-done); /** Text color for upsell and promotional content */
2296
+ --fgColor-white: var(--base-color-neutral-13); /** Pure white text */
2297
+ --focus-outlineColor: var(--borderColor-accent-emphasis); /** Outline color for focus states on interactive elements */
2308
2298
  --header-fgColor-default: #ffffffb3;
2309
2299
  --overlay-bgColor: var(--base-color-neutral-0);
2310
2300
  --page-header-bgColor: var(--bgColor-default);
@@ -2319,12 +2309,12 @@
2319
2309
  --progressBar-track-bgColor: var(--borderColor-default);
2320
2310
  --reactionButton-selected-fgColor-rest: var(--fgColor-link);
2321
2311
  --selectMenu-borderColor: var(--borderColor-default);
2322
- --selection-bgColor: #1f6febb3;
2323
- --shadow-floating-legacy: 0px 6px 12px -3px #01040966, 0px 6px 18px 0px #01040966;
2324
- --shadow-inset: inset 0px 1px 0px 0px #0104093d;
2325
- --shadow-resting-medium: 0px 1px 1px 0px #01040966, 0px 3px 6px 0px #010409cc;
2326
- --shadow-resting-small: 0px 1px 1px 0px #01040999, 0px 1px 3px 0px #01040999;
2327
- --shadow-resting-xsmall: 0px 1px 1px 0px #010409cc;
2312
+ --selection-bgColor: #1f6febb3; /** Background color for text selection highlights */
2313
+ --shadow-floating-legacy: 0px 6px 12px -3px #01040966, 0px 6px 18px 0px #01040966; /** Legacy floating shadow for backward compatibility */
2314
+ --shadow-inset: inset 0px 1px 0px 0px #0104093d; /** Inset shadow for recessed elements */
2315
+ --shadow-resting-medium: 0px 1px 1px 0px #01040966, 0px 3px 6px 0px #010409cc; /** Medium resting shadow for cards and elevated surfaces */
2316
+ --shadow-resting-small: 0px 1px 1px 0px #01040999, 0px 1px 3px 0px #01040999; /** Small resting shadow for buttons and interactive elements */
2317
+ --shadow-resting-xsmall: 0px 1px 1px 0px #010409cc; /** Extra small resting shadow for minimal elevation */
2328
2318
  --tooltip-bgColor: var(--bgColor-emphasis);
2329
2319
  --treeViewItem-leadingVisual-iconColor-rest: var(--fgColor-muted);
2330
2320
  --underlineNav-iconColor-rest: var(--fgColor-muted);
@@ -2337,8 +2327,8 @@
2337
2327
  --border-open-muted: var(--border-success-muted);
2338
2328
  --border-upsell-emphasis: 0.0625rem solid #8957e5;
2339
2329
  --border-upsell-muted: 0.0625rem solid #ab7df866;
2340
- --borderColor-draft-emphasis: var(--borderColor-neutral-emphasis);
2341
- --borderColor-neutral-muted: var(--borderColor-muted);
2330
+ --borderColor-draft-emphasis: var(--borderColor-neutral-emphasis); /** Strong border for draft state badges */
2331
+ --borderColor-neutral-muted: var(--borderColor-muted); /** Subtle neutral semantic border */
2342
2332
  --button-danger-bgColor-disabled: var(--control-bgColor-disabled);
2343
2333
  --button-danger-borderColor-rest: var(--control-borderColor-rest);
2344
2334
  --button-default-bgColor-disabled: var(--control-bgColor-disabled);
@@ -2378,11 +2368,11 @@
2378
2368
  --controlTrack-fgColor-disabled: var(--fgColor-onEmphasis);
2379
2369
  --dashboard-bgColor: var(--bgColor-inset);
2380
2370
  --diffBlob-hunkNum-fgColor-hover: var(--fgColor-onEmphasis);
2381
- --focus-outline: 2px solid #1f6feb;
2371
+ --focus-outline: 2px solid #1f6feb; /** Focus ring outline for keyboard navigation and accessibility. */
2382
2372
  --overlay-borderColor: var(--borderColor-muted);
2383
2373
  --tooltip-fgColor: var(--fgColor-onEmphasis);
2384
2374
  --border-neutral-muted: 0.0625rem solid #3d444db3;
2385
- --borderColor-draft-muted: var(--borderColor-neutral-muted);
2375
+ --borderColor-draft-muted: var(--borderColor-neutral-muted); /** Subtle border for draft state indicators */
2386
2376
  --button-danger-borderColor-hover: var(--button-primary-borderColor-rest);
2387
2377
  --button-default-borderColor-active: var(--button-default-borderColor-rest);
2388
2378
  --button-default-borderColor-hover: var(--button-default-borderColor-rest);
@@ -2391,10 +2381,10 @@
2391
2381
  --buttonKeybindingHint-danger-borderColor-disabled: var(--buttonKeybindingHint-default-borderColor-disabled);
2392
2382
  --buttonKeybindingHint-danger-borderColor-rest: var(--buttonKeybindingHint-default-borderColor-rest);
2393
2383
  --buttonKeybindingHint-danger-fgColor-disabled: var(--buttonKeybindingHint-default-fgColor-disabled);
2394
- --shadow-floating-large: 0px 0px 0px 1px #3d444d, 0px 24px 48px 0px #010409;
2395
- --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;
2396
- --shadow-floating-small: 0px 0px 0px 1px #3d444d, 0px 6px 12px -3px #01040966, 0px 6px 18px 0px #01040966;
2397
- --shadow-floating-xlarge: 0px 0px 0px 1px #3d444d, 0px 32px 64px 0px #010409;
2384
+ --shadow-floating-large: 0px 0px 0px 1px #3d444d, 0px 24px 48px 0px #010409; /** Large floating shadow for modals and dialogs */
2385
+ --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 */
2386
+ --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 */
2387
+ --shadow-floating-xlarge: 0px 0px 0px 1px #3d444d, 0px 32px 64px 0px #010409; /** Extra large floating shadow for full-screen overlays and sheets */
2398
2388
  --underlineNav-borderColor-hover: var(--borderColor-neutral-muted);
2399
2389
  --button-danger-borderColor-active: var(--button-danger-borderColor-hover);
2400
2390
  --button-outline-borderColor-hover: var(--button-default-borderColor-hover);