@primer/primitives 11.4.1-rc.eb8ee149 → 11.5.0-rc.14eaeb12
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.
- package/DESIGN_TOKENS_GUIDE.md +185 -0
- package/DESIGN_TOKENS_SPEC.md +136 -8
- package/dist/build/formats/jsonFigma.js +8 -1
- package/dist/build/formats/markdownLlmGuidelines.js +349 -0
- package/dist/build/schemas/borderToken.d.ts +61 -5
- package/dist/build/schemas/borderToken.js +2 -1
- package/dist/build/schemas/colorToken.d.ts +639 -30
- package/dist/build/schemas/colorToken.js +3 -2
- package/dist/build/schemas/colorW3cValue.d.ts +28 -0
- package/dist/build/schemas/colorW3cValue.js +42 -0
- package/dist/build/schemas/cubicBezierToken.d.ts +1 -1
- package/dist/build/schemas/dimensionToken.d.ts +9 -2
- package/dist/build/schemas/dimensionValue.d.ts +12 -1
- package/dist/build/schemas/dimensionValue.js +10 -13
- package/dist/build/schemas/durationToken.d.ts +8 -2
- package/dist/build/schemas/durationValue.d.ts +11 -1
- package/dist/build/schemas/durationValue.js +13 -3
- package/dist/build/schemas/fontFamilyToken.d.ts +1 -1
- package/dist/build/schemas/fontWeightToken.d.ts +1 -1
- package/dist/build/schemas/gradientToken.d.ts +23 -2
- package/dist/build/schemas/gradientToken.js +2 -1
- package/dist/build/schemas/numberToken.d.ts +1 -1
- package/dist/build/schemas/shadowToken.d.ts +1751 -127
- package/dist/build/schemas/shadowToken.js +8 -2
- package/dist/build/schemas/stringToken.d.ts +1 -1
- package/dist/build/schemas/stringToken.js +1 -1
- package/dist/build/schemas/tokenType.d.ts +1 -1
- package/dist/build/schemas/transitionToken.d.ts +15 -3
- package/dist/build/schemas/typographyToken.d.ts +19 -5
- package/dist/build/schemas/typographyToken.js +1 -1
- package/dist/build/schemas/validTokenType.d.ts +1 -1
- package/dist/build/schemas/validTokenType.js +1 -1
- package/dist/build/schemas/viewportRangeToken.d.ts +1 -1
- package/dist/build/transformers/borderToCss.js +19 -1
- package/dist/build/transformers/colorAlphaToCss.js +6 -3
- package/dist/build/transformers/colorToHex.js +5 -2
- package/dist/build/transformers/colorToRgbAlpha.js +5 -2
- package/dist/build/transformers/colorToRgbaFloat.js +5 -0
- package/dist/build/transformers/dimensionToPixelUnitless.d.ts +3 -2
- package/dist/build/transformers/dimensionToPixelUnitless.js +22 -26
- package/dist/build/transformers/dimensionToRem.d.ts +2 -1
- package/dist/build/transformers/dimensionToRem.js +21 -22
- package/dist/build/transformers/dimensionToRemPxArray.d.ts +2 -1
- package/dist/build/transformers/dimensionToRemPxArray.js +21 -22
- package/dist/build/transformers/durationToCss.d.ts +2 -1
- package/dist/build/transformers/durationToCss.js +19 -12
- package/dist/build/transformers/gradientToCss.js +2 -1
- package/dist/build/transformers/shadowToCss.js +15 -1
- package/dist/build/transformers/utilities/normalizeColorValue.d.ts +23 -0
- package/dist/build/transformers/utilities/normalizeColorValue.js +74 -0
- package/dist/build/transformers/utilities/parseDimension.d.ts +12 -0
- package/dist/build/transformers/utilities/parseDimension.js +31 -0
- package/dist/build/types/borderTokenValue.d.ts +5 -2
- package/dist/build/types/dimensionTokenValue.d.ts +9 -0
- package/dist/build/types/shadowTokenValue.d.ts +8 -5
- package/dist/css/base/motion/motion.css +1 -1
- package/dist/css/functional/size/radius.css +1 -1
- package/dist/css/functional/size/size-coarse.css +1 -0
- package/dist/css/functional/size/size-fine.css +1 -0
- package/dist/css/functional/size/size.css +5 -0
- package/dist/css/functional/themes/dark-colorblind-high-contrast.css +42 -30
- package/dist/css/functional/themes/dark-colorblind.css +42 -30
- package/dist/css/functional/themes/dark-dimmed-high-contrast.css +42 -30
- package/dist/css/functional/themes/dark-dimmed.css +42 -30
- package/dist/css/functional/themes/dark-high-contrast.css +42 -30
- package/dist/css/functional/themes/dark-tritanopia-high-contrast.css +42 -30
- package/dist/css/functional/themes/dark-tritanopia.css +42 -30
- package/dist/css/functional/themes/dark.css +42 -30
- package/dist/css/functional/themes/light-colorblind-high-contrast.css +42 -30
- package/dist/css/functional/themes/light-colorblind.css +42 -30
- package/dist/css/functional/themes/light-high-contrast.css +42 -30
- package/dist/css/functional/themes/light-tritanopia-high-contrast.css +42 -30
- package/dist/css/functional/themes/light-tritanopia.css +42 -30
- package/dist/css/functional/themes/light.css +42 -30
- package/dist/docs/base/motion/motion.json +96 -24
- package/dist/docs/base/size/size.json +76 -19
- package/dist/docs/base/typography/typography.json +24 -6
- package/dist/docs/functional/size/border.json +26 -11
- package/dist/docs/functional/size/breakpoints.json +24 -6
- package/dist/docs/functional/size/radius.json +18 -6
- package/dist/docs/functional/size/size-coarse.json +55 -2
- package/dist/docs/functional/size/size-fine.json +55 -2
- package/dist/docs/functional/size/size.json +195 -15
- package/dist/docs/functional/themes/dark-colorblind-high-contrast.json +3921 -714
- package/dist/docs/functional/themes/dark-colorblind.json +3911 -712
- package/dist/docs/functional/themes/dark-dimmed-high-contrast.json +3774 -547
- package/dist/docs/functional/themes/dark-dimmed.json +3801 -554
- package/dist/docs/functional/themes/dark-high-contrast.json +3926 -715
- package/dist/docs/functional/themes/dark-tritanopia-high-contrast.json +3936 -717
- package/dist/docs/functional/themes/dark-tritanopia.json +3769 -546
- package/dist/docs/functional/themes/dark.json +3920 -713
- package/dist/docs/functional/themes/light-colorblind-high-contrast.json +3780 -553
- package/dist/docs/functional/themes/light-colorblind.json +3767 -548
- package/dist/docs/functional/themes/light-high-contrast.json +3785 -554
- package/dist/docs/functional/themes/light-tritanopia-high-contrast.json +3785 -554
- package/dist/docs/functional/themes/light-tritanopia.json +3777 -550
- package/dist/docs/functional/themes/light.json +3782 -551
- package/dist/docs/functional/typography/typography.json +8 -2
- package/dist/fallbacks/base/motion/motion.json +48 -12
- package/dist/fallbacks/functional/size/size-coarse.json +2 -1
- package/dist/fallbacks/functional/size/size-fine.json +2 -1
- package/dist/fallbacks/functional/size/size.json +5 -0
- package/dist/figma/dimension/dimension.json +56 -1
- package/dist/figma/themes/dark-colorblind.json +49 -1
- package/dist/figma/themes/dark-dimmed.json +51 -3
- package/dist/figma/themes/dark-high-contrast.json +49 -1
- package/dist/figma/themes/dark-tritanopia.json +49 -1
- package/dist/figma/themes/dark.json +49 -1
- package/dist/figma/themes/light-colorblind.json +53 -5
- package/dist/figma/themes/light-high-contrast.json +53 -5
- package/dist/figma/themes/light-tritanopia.json +53 -5
- package/dist/figma/themes/light.json +53 -5
- package/dist/internalCss/dark-colorblind-high-contrast.css +42 -30
- package/dist/internalCss/dark-colorblind.css +42 -30
- package/dist/internalCss/dark-dimmed-high-contrast.css +42 -30
- package/dist/internalCss/dark-dimmed.css +42 -30
- package/dist/internalCss/dark-high-contrast.css +42 -30
- package/dist/internalCss/dark-tritanopia-high-contrast.css +42 -30
- package/dist/internalCss/dark-tritanopia.css +42 -30
- package/dist/internalCss/dark.css +42 -30
- package/dist/internalCss/light-colorblind-high-contrast.css +42 -30
- package/dist/internalCss/light-colorblind.css +42 -30
- package/dist/internalCss/light-high-contrast.css +42 -30
- package/dist/internalCss/light-tritanopia-high-contrast.css +42 -30
- package/dist/internalCss/light-tritanopia.css +42 -30
- package/dist/internalCss/light.css +42 -30
- package/dist/styleLint/base/motion/motion.json +96 -24
- package/dist/styleLint/base/size/size.json +76 -19
- package/dist/styleLint/base/typography/typography.json +30 -12
- package/dist/styleLint/functional/size/border.json +27 -12
- package/dist/styleLint/functional/size/breakpoints.json +24 -6
- package/dist/styleLint/functional/size/radius.json +19 -7
- package/dist/styleLint/functional/size/size-coarse.json +60 -7
- package/dist/styleLint/functional/size/size-fine.json +60 -7
- package/dist/styleLint/functional/size/size.json +246 -66
- package/dist/styleLint/functional/themes/dark-colorblind-high-contrast.json +4060 -733
- package/dist/styleLint/functional/themes/dark-colorblind.json +4050 -731
- package/dist/styleLint/functional/themes/dark-dimmed-high-contrast.json +3914 -567
- package/dist/styleLint/functional/themes/dark-dimmed.json +3941 -574
- package/dist/styleLint/functional/themes/dark-high-contrast.json +4065 -734
- package/dist/styleLint/functional/themes/dark-tritanopia-high-contrast.json +4075 -736
- package/dist/styleLint/functional/themes/dark-tritanopia.json +4079 -736
- package/dist/styleLint/functional/themes/dark.json +4059 -732
- package/dist/styleLint/functional/themes/light-colorblind-high-contrast.json +4091 -744
- package/dist/styleLint/functional/themes/light-colorblind.json +4078 -739
- package/dist/styleLint/functional/themes/light-high-contrast.json +4096 -745
- package/dist/styleLint/functional/themes/light-tritanopia-high-contrast.json +4096 -745
- package/dist/styleLint/functional/themes/light-tritanopia.json +4088 -741
- package/dist/styleLint/functional/themes/light.json +4093 -742
- package/dist/styleLint/functional/typography/typography.json +28 -22
- package/package.json +5 -4
- package/src/tokens/base/color/dark/dark.dimmed.json5 +405 -81
- package/src/tokens/base/color/dark/dark.high-contrast.json5 +405 -81
- package/src/tokens/base/color/dark/dark.json5 +475 -95
- package/src/tokens/base/color/dark/display-dark.json5 +960 -192
- package/src/tokens/base/color/light/display-light.json5 +960 -192
- package/src/tokens/base/color/light/light.high-contrast.json5 +405 -81
- package/src/tokens/base/color/light/light.json5 +475 -95
- package/src/tokens/base/motion/timing.json5 +12 -12
- package/src/tokens/base/size/size.json5 +194 -194
- package/src/tokens/base/typography/typography.json5 +6 -6
- package/src/tokens/component/avatar.json5 +72 -44
- package/src/tokens/component/button.json5 +1846 -1191
- package/src/tokens/component/reactionButton.json5 +20 -4
- package/src/tokens/functional/border/border.json5 +33 -2
- package/src/tokens/functional/color/bgColor.json5 +18 -2
- package/src/tokens/functional/color/borderColor.json5 +8 -1
- package/src/tokens/functional/color/control.json5 +160 -32
- package/src/tokens/functional/color/display.json5 +7 -0
- package/src/tokens/functional/color/fgColor.json5 +13 -1
- package/src/tokens/functional/color/syntax.json5 +24 -2
- package/src/tokens/functional/shadow/shadow.json5 +1254 -163
- package/src/tokens/functional/size/border.json5 +8 -8
- package/src/tokens/functional/size/breakpoints.json5 +6 -6
- package/src/tokens/functional/size/radius.json5 +5 -5
- package/src/tokens/functional/size/size-coarse.json5 +15 -0
- package/src/tokens/functional/size/size-fine.json5 +15 -0
- package/src/tokens/functional/size/size.json5 +65 -15
- package/src/tokens/functional/typography/typography.json5 +8 -4
- package/dist/build/parsers/index.d.ts +0 -1
- package/dist/build/parsers/index.js +0 -1
- package/dist/build/parsers/w3cJsonParser.d.ts +0 -6
- package/dist/build/parsers/w3cJsonParser.js +0 -25
- package/dist/removed/testing.json5 +0 -4
- package/guidelines/color.llm.md +0 -16
- package/guidelines/guidelines.llm.md +0 -34
- package/guidelines/motion.llm.md +0 -41
- package/guidelines/spacing.llm.md +0 -20
- package/guidelines/typography.llm.md +0 -14
- package/src/tokens/removed/testing.json5 +0 -4
|
@@ -61,15 +61,15 @@
|
|
|
61
61
|
--button-danger-bgColor-active: #a40e26;
|
|
62
62
|
--button-danger-fgColor-disabled: #d1242f80;
|
|
63
63
|
--button-danger-fgColor-rest: var(--fgColor-danger);
|
|
64
|
-
--button-danger-shadow-selected: inset
|
|
64
|
+
--button-danger-shadow-selected: inset 0 1px 0 0 #4c001433;
|
|
65
65
|
--button-inactive-bgColor: #e6eaef;
|
|
66
66
|
--button-inactive-fgColor: #59636e;
|
|
67
67
|
--button-invisible-bgColor-disabled: #ffffff00;
|
|
68
68
|
--button-invisible-borderColor-disabled: #ffffff00;
|
|
69
|
-
--button-outline-shadow-selected: inset
|
|
69
|
+
--button-outline-shadow-selected: inset 0 1px 0 0 #00215533;
|
|
70
70
|
--button-primary-bgColor-rest: var(--bgColor-success-emphasis);
|
|
71
71
|
--button-primary-borderColor-disabled: var(--button-primary-bgColor-disabled);
|
|
72
|
-
--button-primary-shadow-selected: inset
|
|
72
|
+
--button-primary-shadow-selected: inset 0 1px 0 0 #002d114d;
|
|
73
73
|
--button-star-iconColor: #eac54f;
|
|
74
74
|
--buttonCounter-danger-fgColor-disabled: #d1242f80;
|
|
75
75
|
--buttonCounter-outline-fgColor-rest: #0550ae;
|
|
@@ -640,14 +640,14 @@
|
|
|
640
640
|
--reactionButton-selected-fgColor-hover: #0550ae;
|
|
641
641
|
--selectMenu-bgColor-active: #b6e3ff;
|
|
642
642
|
--selectMenu-borderColor: #ffffff00;
|
|
643
|
-
--shadow-floating-legacy:
|
|
644
|
-
--shadow-resting-medium:
|
|
643
|
+
--shadow-floating-legacy: 0 6px 12px -3px #25292e0a, 0 6px 18px 0 #25292e1f; /** Legacy floating shadow for backward compatibility */
|
|
644
|
+
--shadow-resting-medium: 0 1px 1px 0 #25292e1a, 0 3px 6px 0 #25292e1f; /** Medium resting shadow for cards and elevated surfaces */
|
|
645
645
|
--skeletonLoader-bgColor: #818b981a;
|
|
646
646
|
--topicTag-borderColor: #ffffff00;
|
|
647
647
|
--treeViewItem-leadingVisual-iconColor-rest: #54aeff;
|
|
648
648
|
--underlineNav-borderColor-active: #fd8c73;
|
|
649
649
|
--avatar-bgColor: #ffffff;
|
|
650
|
-
--avatar-shadow:
|
|
650
|
+
--avatar-shadow: 0 0 0 2px #ffffffcc;
|
|
651
651
|
--bgColor-black: #1f2328; /** Pure black background */
|
|
652
652
|
--bgColor-closed-emphasis: var(--bgColor-danger-emphasis); /** Strong background for closed state badges and labels */
|
|
653
653
|
--bgColor-closed-muted: var(--bgColor-danger-muted); /** Subtle background for closed state indicators (issues, PRs) */
|
|
@@ -684,13 +684,14 @@
|
|
|
684
684
|
--borderColor-muted: #d1d9e0b3; /** Subtle border for secondary elements and light separators */
|
|
685
685
|
--borderColor-open-emphasis: var(--borderColor-success-emphasis); /** Strong border for open state badges */
|
|
686
686
|
--borderColor-open-muted: var(--borderColor-success-muted); /** Subtle border for open state indicators */
|
|
687
|
-
--borderColor-translucent: #1f232826; /** Semi-transparent border for overlays and layered elements */
|
|
687
|
+
--borderColor-translucent: #1f232826; /** Semi-transparent border for overlays and layered elements. Border-specific token — no bgColor-translucent counterpart exists by design. */
|
|
688
688
|
--borderColor-upsell-emphasis: var(--borderColor-done-emphasis); /** Strong border for prominent upsell elements */
|
|
689
689
|
--borderColor-upsell-muted: var(--borderColor-done-muted); /** Subtle border for upsell and promotional content */
|
|
690
690
|
--button-danger-bgColor-hover: var(--bgColor-danger-emphasis);
|
|
691
691
|
--button-danger-bgColor-rest: var(--control-bgColor-rest);
|
|
692
692
|
--button-danger-fgColor-active: #ffffff;
|
|
693
693
|
--button-danger-fgColor-hover: #ffffff;
|
|
694
|
+
--button-danger-iconColor-disabled: var(--button-danger-fgColor-disabled);
|
|
694
695
|
--button-danger-iconColor-hover: #ffffff;
|
|
695
696
|
--button-danger-iconColor-rest: var(--button-danger-fgColor-rest);
|
|
696
697
|
--button-default-bgColor-active: var(--control-bgColor-active);
|
|
@@ -698,7 +699,7 @@
|
|
|
698
699
|
--button-default-bgColor-rest: var(--control-bgColor-rest);
|
|
699
700
|
--button-default-bgColor-selected: var(--control-bgColor-active);
|
|
700
701
|
--button-default-fgColor-rest: var(--control-fgColor-rest);
|
|
701
|
-
--button-default-shadow-resting:
|
|
702
|
+
--button-default-shadow-resting: 0 1px 0 0 #1f23280a;
|
|
702
703
|
--button-invisible-bgColor-active: var(--control-transparent-bgColor-active);
|
|
703
704
|
--button-invisible-bgColor-hover: var(--control-transparent-bgColor-hover);
|
|
704
705
|
--button-invisible-bgColor-rest: var(--control-transparent-bgColor-rest);
|
|
@@ -806,9 +807,9 @@
|
|
|
806
807
|
--progressBar-bgColor-sponsors: var(--bgColor-sponsors-emphasis);
|
|
807
808
|
--progressBar-track-bgColor: var(--borderColor-default);
|
|
808
809
|
--selection-bgColor: #0969da33; /** Background color for text selection highlights */
|
|
809
|
-
--shadow-inset: inset
|
|
810
|
-
--shadow-resting-small:
|
|
811
|
-
--shadow-resting-xsmall:
|
|
810
|
+
--shadow-inset: inset 0 1px 0 0 #1f23280a; /** Inset shadow for recessed elements */
|
|
811
|
+
--shadow-resting-small: 0 1px 1px 0 #1f23280a, 0 1px 2px 0 #1f232808; /** Small resting shadow for buttons and interactive elements */
|
|
812
|
+
--shadow-resting-xsmall: 0 1px 1px 0 #1f23280d; /** Extra small resting shadow for minimal elevation */
|
|
812
813
|
--sideNav-bgColor-selected: #ffffff;
|
|
813
814
|
--timelineBadge-bgColor: var(--bgColor-muted);
|
|
814
815
|
--tooltip-bgColor: var(--bgColor-emphasis);
|
|
@@ -816,9 +817,11 @@
|
|
|
816
817
|
--avatar-borderColor: var(--borderColor-translucent);
|
|
817
818
|
--border-closed-emphasis: var(--border-danger-emphasis);
|
|
818
819
|
--border-closed-muted: var(--border-danger-muted);
|
|
820
|
+
--border-draft-emphasis: 0.0625rem solid #59636e;
|
|
819
821
|
--border-muted: 0.0625rem solid #d1d9e0b3;
|
|
820
822
|
--border-open-emphasis: var(--border-success-emphasis);
|
|
821
823
|
--border-open-muted: var(--border-success-muted);
|
|
824
|
+
--border-translucent: 0.0625rem solid #1f232826; /** Semi-transparent border shorthand for overlays and layered elements. Border-specific token — no bgColor-translucent counterpart exists by design. */
|
|
822
825
|
--border-upsell-emphasis: 0.0625rem solid #8250df;
|
|
823
826
|
--border-upsell-muted: 0.0625rem solid #c297ff66;
|
|
824
827
|
--borderColor-neutral-muted: var(--borderColor-muted); /** Subtle neutral semantic border */
|
|
@@ -828,11 +831,13 @@
|
|
|
828
831
|
--button-default-borderColor-active: var(--control-borderColor-rest);
|
|
829
832
|
--button-default-borderColor-disabled: var(--control-borderColor-disabled);
|
|
830
833
|
--button-default-borderColor-rest: var(--control-borderColor-rest);
|
|
834
|
+
--button-default-fgColor-disabled: var(--control-fgColor-disabled);
|
|
831
835
|
--button-invisible-fgColor-disabled: var(--control-fgColor-disabled);
|
|
832
836
|
--button-invisible-iconColor-disabled: var(--control-fgColor-disabled);
|
|
833
837
|
--button-outline-bgColor-disabled: var(--control-bgColor-disabled);
|
|
834
838
|
--button-primary-borderColor-rest: var(--borderColor-translucent);
|
|
835
839
|
--button-primary-fgColor-rest: var(--fgColor-white);
|
|
840
|
+
--button-primary-iconColor-disabled: var(--button-primary-fgColor-disabled);
|
|
836
841
|
--button-primary-iconColor-rest: #ffffffcc;
|
|
837
842
|
--buttonKeybindingHint-danger-bgColor-disabled: var(--buttonKeybindingHint-default-bgColor-disabled);
|
|
838
843
|
--buttonKeybindingHint-danger-borderColor-hover: var(--borderColor-translucent);
|
|
@@ -891,10 +896,11 @@
|
|
|
891
896
|
--buttonKeybindingHint-danger-borderColor-disabled: var(--buttonKeybindingHint-default-borderColor-disabled);
|
|
892
897
|
--buttonKeybindingHint-danger-borderColor-rest: var(--buttonKeybindingHint-default-borderColor-rest);
|
|
893
898
|
--buttonKeybindingHint-danger-fgColor-disabled: var(--buttonKeybindingHint-default-fgColor-disabled);
|
|
894
|
-
--shadow-floating-large:
|
|
895
|
-
--shadow-floating-medium:
|
|
896
|
-
--shadow-floating-small:
|
|
897
|
-
--shadow-floating-xlarge:
|
|
899
|
+
--shadow-floating-large: 0 0 0 1px #d1d9e000, 0 40px 80px 0 #25292e3d; /** Large floating shadow for modals and dialogs */
|
|
900
|
+
--shadow-floating-medium: 0 0 0 1px #d1d9e000, 0 8px 16px -4px #25292e14, 0 4px 32px -4px #25292e14, 0 24px 48px -12px #25292e14, 0 48px 96px -24px #25292e14; /** Medium floating shadow for popovers and action menus */
|
|
901
|
+
--shadow-floating-small: 0 0 0 1px #d1d9e080, 0 6px 12px -3px #25292e0a, 0 6px 18px 0 #25292e1f; /** Small floating shadow for dropdowns, tooltips, and small overlays */
|
|
902
|
+
--shadow-floating-xlarge: 0 0 0 1px #d1d9e000, 0 56px 112px 0 #25292e52; /** Extra large floating shadow for full-screen overlays and sheets */
|
|
903
|
+
--border-draft-muted: 0.0625rem solid #d1d9e0b3;
|
|
898
904
|
--button-danger-borderColor-active: var(--button-danger-borderColor-hover);
|
|
899
905
|
--button-outline-borderColor-hover: var(--button-primary-borderColor-hover);
|
|
900
906
|
--button-outline-borderColor-active: var(--button-outline-borderColor-hover);
|
|
@@ -958,15 +964,15 @@
|
|
|
958
964
|
--button-danger-bgColor-active: #a40e26;
|
|
959
965
|
--button-danger-fgColor-disabled: #d1242f80;
|
|
960
966
|
--button-danger-fgColor-rest: var(--fgColor-danger);
|
|
961
|
-
--button-danger-shadow-selected: inset
|
|
967
|
+
--button-danger-shadow-selected: inset 0 1px 0 0 #4c001433;
|
|
962
968
|
--button-inactive-bgColor: #e6eaef;
|
|
963
969
|
--button-inactive-fgColor: #59636e;
|
|
964
970
|
--button-invisible-bgColor-disabled: #ffffff00;
|
|
965
971
|
--button-invisible-borderColor-disabled: #ffffff00;
|
|
966
|
-
--button-outline-shadow-selected: inset
|
|
972
|
+
--button-outline-shadow-selected: inset 0 1px 0 0 #00215533;
|
|
967
973
|
--button-primary-bgColor-rest: var(--bgColor-success-emphasis);
|
|
968
974
|
--button-primary-borderColor-disabled: var(--button-primary-bgColor-disabled);
|
|
969
|
-
--button-primary-shadow-selected: inset
|
|
975
|
+
--button-primary-shadow-selected: inset 0 1px 0 0 #002d114d;
|
|
970
976
|
--button-star-iconColor: #eac54f;
|
|
971
977
|
--buttonCounter-danger-fgColor-disabled: #d1242f80;
|
|
972
978
|
--buttonCounter-outline-fgColor-rest: #0550ae;
|
|
@@ -1537,14 +1543,14 @@
|
|
|
1537
1543
|
--reactionButton-selected-fgColor-hover: #0550ae;
|
|
1538
1544
|
--selectMenu-bgColor-active: #b6e3ff;
|
|
1539
1545
|
--selectMenu-borderColor: #ffffff00;
|
|
1540
|
-
--shadow-floating-legacy:
|
|
1541
|
-
--shadow-resting-medium:
|
|
1546
|
+
--shadow-floating-legacy: 0 6px 12px -3px #25292e0a, 0 6px 18px 0 #25292e1f; /** Legacy floating shadow for backward compatibility */
|
|
1547
|
+
--shadow-resting-medium: 0 1px 1px 0 #25292e1a, 0 3px 6px 0 #25292e1f; /** Medium resting shadow for cards and elevated surfaces */
|
|
1542
1548
|
--skeletonLoader-bgColor: #818b981a;
|
|
1543
1549
|
--topicTag-borderColor: #ffffff00;
|
|
1544
1550
|
--treeViewItem-leadingVisual-iconColor-rest: #54aeff;
|
|
1545
1551
|
--underlineNav-borderColor-active: #fd8c73;
|
|
1546
1552
|
--avatar-bgColor: #ffffff;
|
|
1547
|
-
--avatar-shadow:
|
|
1553
|
+
--avatar-shadow: 0 0 0 2px #ffffffcc;
|
|
1548
1554
|
--bgColor-black: #1f2328; /** Pure black background */
|
|
1549
1555
|
--bgColor-closed-emphasis: var(--bgColor-danger-emphasis); /** Strong background for closed state badges and labels */
|
|
1550
1556
|
--bgColor-closed-muted: var(--bgColor-danger-muted); /** Subtle background for closed state indicators (issues, PRs) */
|
|
@@ -1581,13 +1587,14 @@
|
|
|
1581
1587
|
--borderColor-muted: #d1d9e0b3; /** Subtle border for secondary elements and light separators */
|
|
1582
1588
|
--borderColor-open-emphasis: var(--borderColor-success-emphasis); /** Strong border for open state badges */
|
|
1583
1589
|
--borderColor-open-muted: var(--borderColor-success-muted); /** Subtle border for open state indicators */
|
|
1584
|
-
--borderColor-translucent: #1f232826; /** Semi-transparent border for overlays and layered elements */
|
|
1590
|
+
--borderColor-translucent: #1f232826; /** Semi-transparent border for overlays and layered elements. Border-specific token — no bgColor-translucent counterpart exists by design. */
|
|
1585
1591
|
--borderColor-upsell-emphasis: var(--borderColor-done-emphasis); /** Strong border for prominent upsell elements */
|
|
1586
1592
|
--borderColor-upsell-muted: var(--borderColor-done-muted); /** Subtle border for upsell and promotional content */
|
|
1587
1593
|
--button-danger-bgColor-hover: var(--bgColor-danger-emphasis);
|
|
1588
1594
|
--button-danger-bgColor-rest: var(--control-bgColor-rest);
|
|
1589
1595
|
--button-danger-fgColor-active: #ffffff;
|
|
1590
1596
|
--button-danger-fgColor-hover: #ffffff;
|
|
1597
|
+
--button-danger-iconColor-disabled: var(--button-danger-fgColor-disabled);
|
|
1591
1598
|
--button-danger-iconColor-hover: #ffffff;
|
|
1592
1599
|
--button-danger-iconColor-rest: var(--button-danger-fgColor-rest);
|
|
1593
1600
|
--button-default-bgColor-active: var(--control-bgColor-active);
|
|
@@ -1595,7 +1602,7 @@
|
|
|
1595
1602
|
--button-default-bgColor-rest: var(--control-bgColor-rest);
|
|
1596
1603
|
--button-default-bgColor-selected: var(--control-bgColor-active);
|
|
1597
1604
|
--button-default-fgColor-rest: var(--control-fgColor-rest);
|
|
1598
|
-
--button-default-shadow-resting:
|
|
1605
|
+
--button-default-shadow-resting: 0 1px 0 0 #1f23280a;
|
|
1599
1606
|
--button-invisible-bgColor-active: var(--control-transparent-bgColor-active);
|
|
1600
1607
|
--button-invisible-bgColor-hover: var(--control-transparent-bgColor-hover);
|
|
1601
1608
|
--button-invisible-bgColor-rest: var(--control-transparent-bgColor-rest);
|
|
@@ -1703,9 +1710,9 @@
|
|
|
1703
1710
|
--progressBar-bgColor-sponsors: var(--bgColor-sponsors-emphasis);
|
|
1704
1711
|
--progressBar-track-bgColor: var(--borderColor-default);
|
|
1705
1712
|
--selection-bgColor: #0969da33; /** Background color for text selection highlights */
|
|
1706
|
-
--shadow-inset: inset
|
|
1707
|
-
--shadow-resting-small:
|
|
1708
|
-
--shadow-resting-xsmall:
|
|
1713
|
+
--shadow-inset: inset 0 1px 0 0 #1f23280a; /** Inset shadow for recessed elements */
|
|
1714
|
+
--shadow-resting-small: 0 1px 1px 0 #1f23280a, 0 1px 2px 0 #1f232808; /** Small resting shadow for buttons and interactive elements */
|
|
1715
|
+
--shadow-resting-xsmall: 0 1px 1px 0 #1f23280d; /** Extra small resting shadow for minimal elevation */
|
|
1709
1716
|
--sideNav-bgColor-selected: #ffffff;
|
|
1710
1717
|
--timelineBadge-bgColor: var(--bgColor-muted);
|
|
1711
1718
|
--tooltip-bgColor: var(--bgColor-emphasis);
|
|
@@ -1713,9 +1720,11 @@
|
|
|
1713
1720
|
--avatar-borderColor: var(--borderColor-translucent);
|
|
1714
1721
|
--border-closed-emphasis: var(--border-danger-emphasis);
|
|
1715
1722
|
--border-closed-muted: var(--border-danger-muted);
|
|
1723
|
+
--border-draft-emphasis: 0.0625rem solid #59636e;
|
|
1716
1724
|
--border-muted: 0.0625rem solid #d1d9e0b3;
|
|
1717
1725
|
--border-open-emphasis: var(--border-success-emphasis);
|
|
1718
1726
|
--border-open-muted: var(--border-success-muted);
|
|
1727
|
+
--border-translucent: 0.0625rem solid #1f232826; /** Semi-transparent border shorthand for overlays and layered elements. Border-specific token — no bgColor-translucent counterpart exists by design. */
|
|
1719
1728
|
--border-upsell-emphasis: 0.0625rem solid #8250df;
|
|
1720
1729
|
--border-upsell-muted: 0.0625rem solid #c297ff66;
|
|
1721
1730
|
--borderColor-neutral-muted: var(--borderColor-muted); /** Subtle neutral semantic border */
|
|
@@ -1725,11 +1734,13 @@
|
|
|
1725
1734
|
--button-default-borderColor-active: var(--control-borderColor-rest);
|
|
1726
1735
|
--button-default-borderColor-disabled: var(--control-borderColor-disabled);
|
|
1727
1736
|
--button-default-borderColor-rest: var(--control-borderColor-rest);
|
|
1737
|
+
--button-default-fgColor-disabled: var(--control-fgColor-disabled);
|
|
1728
1738
|
--button-invisible-fgColor-disabled: var(--control-fgColor-disabled);
|
|
1729
1739
|
--button-invisible-iconColor-disabled: var(--control-fgColor-disabled);
|
|
1730
1740
|
--button-outline-bgColor-disabled: var(--control-bgColor-disabled);
|
|
1731
1741
|
--button-primary-borderColor-rest: var(--borderColor-translucent);
|
|
1732
1742
|
--button-primary-fgColor-rest: var(--fgColor-white);
|
|
1743
|
+
--button-primary-iconColor-disabled: var(--button-primary-fgColor-disabled);
|
|
1733
1744
|
--button-primary-iconColor-rest: #ffffffcc;
|
|
1734
1745
|
--buttonKeybindingHint-danger-bgColor-disabled: var(--buttonKeybindingHint-default-bgColor-disabled);
|
|
1735
1746
|
--buttonKeybindingHint-danger-borderColor-hover: var(--borderColor-translucent);
|
|
@@ -1788,10 +1799,11 @@
|
|
|
1788
1799
|
--buttonKeybindingHint-danger-borderColor-disabled: var(--buttonKeybindingHint-default-borderColor-disabled);
|
|
1789
1800
|
--buttonKeybindingHint-danger-borderColor-rest: var(--buttonKeybindingHint-default-borderColor-rest);
|
|
1790
1801
|
--buttonKeybindingHint-danger-fgColor-disabled: var(--buttonKeybindingHint-default-fgColor-disabled);
|
|
1791
|
-
--shadow-floating-large:
|
|
1792
|
-
--shadow-floating-medium:
|
|
1793
|
-
--shadow-floating-small:
|
|
1794
|
-
--shadow-floating-xlarge:
|
|
1802
|
+
--shadow-floating-large: 0 0 0 1px #d1d9e000, 0 40px 80px 0 #25292e3d; /** Large floating shadow for modals and dialogs */
|
|
1803
|
+
--shadow-floating-medium: 0 0 0 1px #d1d9e000, 0 8px 16px -4px #25292e14, 0 4px 32px -4px #25292e14, 0 24px 48px -12px #25292e14, 0 48px 96px -24px #25292e14; /** Medium floating shadow for popovers and action menus */
|
|
1804
|
+
--shadow-floating-small: 0 0 0 1px #d1d9e080, 0 6px 12px -3px #25292e0a, 0 6px 18px 0 #25292e1f; /** Small floating shadow for dropdowns, tooltips, and small overlays */
|
|
1805
|
+
--shadow-floating-xlarge: 0 0 0 1px #d1d9e000, 0 56px 112px 0 #25292e52; /** Extra large floating shadow for full-screen overlays and sheets */
|
|
1806
|
+
--border-draft-muted: 0.0625rem solid #d1d9e0b3;
|
|
1795
1807
|
--button-danger-borderColor-active: var(--button-danger-borderColor-hover);
|
|
1796
1808
|
--button-outline-borderColor-hover: var(--button-primary-borderColor-hover);
|
|
1797
1809
|
--button-outline-borderColor-active: var(--button-outline-borderColor-hover);
|
|
@@ -4,14 +4,20 @@
|
|
|
4
4
|
"filePath": "src/tokens/base/motion/timing.json5",
|
|
5
5
|
"isSource": true,
|
|
6
6
|
"original": {
|
|
7
|
-
"$value":
|
|
7
|
+
"$value": {
|
|
8
|
+
"value": 0,
|
|
9
|
+
"unit": "ms"
|
|
10
|
+
},
|
|
8
11
|
"$type": "duration",
|
|
9
12
|
"key": "{base.duration.0}"
|
|
10
13
|
},
|
|
11
14
|
"name": "base-duration-0",
|
|
12
15
|
"attributes": {},
|
|
13
16
|
"path": ["base", "duration", "0"],
|
|
14
|
-
"value":
|
|
17
|
+
"value": {
|
|
18
|
+
"value": 0,
|
|
19
|
+
"unit": "ms"
|
|
20
|
+
},
|
|
15
21
|
"type": "duration"
|
|
16
22
|
},
|
|
17
23
|
"base-duration-100": {
|
|
@@ -19,14 +25,20 @@
|
|
|
19
25
|
"filePath": "src/tokens/base/motion/timing.json5",
|
|
20
26
|
"isSource": true,
|
|
21
27
|
"original": {
|
|
22
|
-
"$value":
|
|
28
|
+
"$value": {
|
|
29
|
+
"value": 100,
|
|
30
|
+
"unit": "ms"
|
|
31
|
+
},
|
|
23
32
|
"$type": "duration",
|
|
24
33
|
"key": "{base.duration.100}"
|
|
25
34
|
},
|
|
26
35
|
"name": "base-duration-100",
|
|
27
36
|
"attributes": {},
|
|
28
37
|
"path": ["base", "duration", "100"],
|
|
29
|
-
"value":
|
|
38
|
+
"value": {
|
|
39
|
+
"value": 100,
|
|
40
|
+
"unit": "ms"
|
|
41
|
+
},
|
|
30
42
|
"type": "duration"
|
|
31
43
|
},
|
|
32
44
|
"base-duration-1000": {
|
|
@@ -34,14 +46,20 @@
|
|
|
34
46
|
"filePath": "src/tokens/base/motion/timing.json5",
|
|
35
47
|
"isSource": true,
|
|
36
48
|
"original": {
|
|
37
|
-
"$value":
|
|
49
|
+
"$value": {
|
|
50
|
+
"value": 1000,
|
|
51
|
+
"unit": "ms"
|
|
52
|
+
},
|
|
38
53
|
"$type": "duration",
|
|
39
54
|
"key": "{base.duration.1000}"
|
|
40
55
|
},
|
|
41
56
|
"name": "base-duration-1000",
|
|
42
57
|
"attributes": {},
|
|
43
58
|
"path": ["base", "duration", "1000"],
|
|
44
|
-
"value":
|
|
59
|
+
"value": {
|
|
60
|
+
"value": 1000,
|
|
61
|
+
"unit": "ms"
|
|
62
|
+
},
|
|
45
63
|
"type": "duration"
|
|
46
64
|
},
|
|
47
65
|
"base-duration-200": {
|
|
@@ -49,14 +67,20 @@
|
|
|
49
67
|
"filePath": "src/tokens/base/motion/timing.json5",
|
|
50
68
|
"isSource": true,
|
|
51
69
|
"original": {
|
|
52
|
-
"$value":
|
|
70
|
+
"$value": {
|
|
71
|
+
"value": 200,
|
|
72
|
+
"unit": "ms"
|
|
73
|
+
},
|
|
53
74
|
"$type": "duration",
|
|
54
75
|
"key": "{base.duration.200}"
|
|
55
76
|
},
|
|
56
77
|
"name": "base-duration-200",
|
|
57
78
|
"attributes": {},
|
|
58
79
|
"path": ["base", "duration", "200"],
|
|
59
|
-
"value":
|
|
80
|
+
"value": {
|
|
81
|
+
"value": 200,
|
|
82
|
+
"unit": "ms"
|
|
83
|
+
},
|
|
60
84
|
"type": "duration"
|
|
61
85
|
},
|
|
62
86
|
"base-duration-300": {
|
|
@@ -64,14 +88,20 @@
|
|
|
64
88
|
"filePath": "src/tokens/base/motion/timing.json5",
|
|
65
89
|
"isSource": true,
|
|
66
90
|
"original": {
|
|
67
|
-
"$value":
|
|
91
|
+
"$value": {
|
|
92
|
+
"value": 300,
|
|
93
|
+
"unit": "ms"
|
|
94
|
+
},
|
|
68
95
|
"$type": "duration",
|
|
69
96
|
"key": "{base.duration.300}"
|
|
70
97
|
},
|
|
71
98
|
"name": "base-duration-300",
|
|
72
99
|
"attributes": {},
|
|
73
100
|
"path": ["base", "duration", "300"],
|
|
74
|
-
"value":
|
|
101
|
+
"value": {
|
|
102
|
+
"value": 300,
|
|
103
|
+
"unit": "ms"
|
|
104
|
+
},
|
|
75
105
|
"type": "duration"
|
|
76
106
|
},
|
|
77
107
|
"base-duration-400": {
|
|
@@ -79,14 +109,20 @@
|
|
|
79
109
|
"filePath": "src/tokens/base/motion/timing.json5",
|
|
80
110
|
"isSource": true,
|
|
81
111
|
"original": {
|
|
82
|
-
"$value":
|
|
112
|
+
"$value": {
|
|
113
|
+
"value": 400,
|
|
114
|
+
"unit": "ms"
|
|
115
|
+
},
|
|
83
116
|
"$type": "duration",
|
|
84
117
|
"key": "{base.duration.400}"
|
|
85
118
|
},
|
|
86
119
|
"name": "base-duration-400",
|
|
87
120
|
"attributes": {},
|
|
88
121
|
"path": ["base", "duration", "400"],
|
|
89
|
-
"value":
|
|
122
|
+
"value": {
|
|
123
|
+
"value": 400,
|
|
124
|
+
"unit": "ms"
|
|
125
|
+
},
|
|
90
126
|
"type": "duration"
|
|
91
127
|
},
|
|
92
128
|
"base-duration-50": {
|
|
@@ -94,14 +130,20 @@
|
|
|
94
130
|
"filePath": "src/tokens/base/motion/timing.json5",
|
|
95
131
|
"isSource": true,
|
|
96
132
|
"original": {
|
|
97
|
-
"$value":
|
|
133
|
+
"$value": {
|
|
134
|
+
"value": 50,
|
|
135
|
+
"unit": "ms"
|
|
136
|
+
},
|
|
98
137
|
"$type": "duration",
|
|
99
138
|
"key": "{base.duration.50}"
|
|
100
139
|
},
|
|
101
140
|
"name": "base-duration-50",
|
|
102
141
|
"attributes": {},
|
|
103
142
|
"path": ["base", "duration", "50"],
|
|
104
|
-
"value":
|
|
143
|
+
"value": {
|
|
144
|
+
"value": 50,
|
|
145
|
+
"unit": "ms"
|
|
146
|
+
},
|
|
105
147
|
"type": "duration"
|
|
106
148
|
},
|
|
107
149
|
"base-duration-500": {
|
|
@@ -109,14 +151,20 @@
|
|
|
109
151
|
"filePath": "src/tokens/base/motion/timing.json5",
|
|
110
152
|
"isSource": true,
|
|
111
153
|
"original": {
|
|
112
|
-
"$value":
|
|
154
|
+
"$value": {
|
|
155
|
+
"value": 500,
|
|
156
|
+
"unit": "ms"
|
|
157
|
+
},
|
|
113
158
|
"$type": "duration",
|
|
114
159
|
"key": "{base.duration.500}"
|
|
115
160
|
},
|
|
116
161
|
"name": "base-duration-500",
|
|
117
162
|
"attributes": {},
|
|
118
163
|
"path": ["base", "duration", "500"],
|
|
119
|
-
"value":
|
|
164
|
+
"value": {
|
|
165
|
+
"value": 500,
|
|
166
|
+
"unit": "ms"
|
|
167
|
+
},
|
|
120
168
|
"type": "duration"
|
|
121
169
|
},
|
|
122
170
|
"base-duration-600": {
|
|
@@ -124,14 +172,20 @@
|
|
|
124
172
|
"filePath": "src/tokens/base/motion/timing.json5",
|
|
125
173
|
"isSource": true,
|
|
126
174
|
"original": {
|
|
127
|
-
"$value":
|
|
175
|
+
"$value": {
|
|
176
|
+
"value": 600,
|
|
177
|
+
"unit": "ms"
|
|
178
|
+
},
|
|
128
179
|
"$type": "duration",
|
|
129
180
|
"key": "{base.duration.600}"
|
|
130
181
|
},
|
|
131
182
|
"name": "base-duration-600",
|
|
132
183
|
"attributes": {},
|
|
133
184
|
"path": ["base", "duration", "600"],
|
|
134
|
-
"value":
|
|
185
|
+
"value": {
|
|
186
|
+
"value": 600,
|
|
187
|
+
"unit": "ms"
|
|
188
|
+
},
|
|
135
189
|
"type": "duration"
|
|
136
190
|
},
|
|
137
191
|
"base-duration-700": {
|
|
@@ -139,14 +193,20 @@
|
|
|
139
193
|
"filePath": "src/tokens/base/motion/timing.json5",
|
|
140
194
|
"isSource": true,
|
|
141
195
|
"original": {
|
|
142
|
-
"$value":
|
|
196
|
+
"$value": {
|
|
197
|
+
"value": 700,
|
|
198
|
+
"unit": "ms"
|
|
199
|
+
},
|
|
143
200
|
"$type": "duration",
|
|
144
201
|
"key": "{base.duration.700}"
|
|
145
202
|
},
|
|
146
203
|
"name": "base-duration-700",
|
|
147
204
|
"attributes": {},
|
|
148
205
|
"path": ["base", "duration", "700"],
|
|
149
|
-
"value":
|
|
206
|
+
"value": {
|
|
207
|
+
"value": 700,
|
|
208
|
+
"unit": "ms"
|
|
209
|
+
},
|
|
150
210
|
"type": "duration"
|
|
151
211
|
},
|
|
152
212
|
"base-duration-800": {
|
|
@@ -154,14 +214,20 @@
|
|
|
154
214
|
"filePath": "src/tokens/base/motion/timing.json5",
|
|
155
215
|
"isSource": true,
|
|
156
216
|
"original": {
|
|
157
|
-
"$value":
|
|
217
|
+
"$value": {
|
|
218
|
+
"value": 800,
|
|
219
|
+
"unit": "ms"
|
|
220
|
+
},
|
|
158
221
|
"$type": "duration",
|
|
159
222
|
"key": "{base.duration.800}"
|
|
160
223
|
},
|
|
161
224
|
"name": "base-duration-800",
|
|
162
225
|
"attributes": {},
|
|
163
226
|
"path": ["base", "duration", "800"],
|
|
164
|
-
"value":
|
|
227
|
+
"value": {
|
|
228
|
+
"value": 800,
|
|
229
|
+
"unit": "ms"
|
|
230
|
+
},
|
|
165
231
|
"type": "duration"
|
|
166
232
|
},
|
|
167
233
|
"base-duration-900": {
|
|
@@ -169,14 +235,20 @@
|
|
|
169
235
|
"filePath": "src/tokens/base/motion/timing.json5",
|
|
170
236
|
"isSource": true,
|
|
171
237
|
"original": {
|
|
172
|
-
"$value":
|
|
238
|
+
"$value": {
|
|
239
|
+
"value": 900,
|
|
240
|
+
"unit": "ms"
|
|
241
|
+
},
|
|
173
242
|
"$type": "duration",
|
|
174
243
|
"key": "{base.duration.900}"
|
|
175
244
|
},
|
|
176
245
|
"name": "base-duration-900",
|
|
177
246
|
"attributes": {},
|
|
178
247
|
"path": ["base", "duration", "900"],
|
|
179
|
-
"value":
|
|
248
|
+
"value": {
|
|
249
|
+
"value": 900,
|
|
250
|
+
"unit": "ms"
|
|
251
|
+
},
|
|
180
252
|
"type": "duration"
|
|
181
253
|
},
|
|
182
254
|
"base-easing-ease": {
|