@primer/primitives 10.1.0 → 10.2.0-rc.285d8b6c
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/dist/build/formats/cssAdvanced.js +2 -2
- package/dist/build/primerStyleDictionary.js +2 -0
- package/dist/build/schemas/colorToken.d.ts +1 -6
- package/dist/build/schemas/colorToken.js +1 -1
- package/dist/build/transformers/colorAlphaToCss.d.ts +3 -0
- package/dist/build/transformers/colorAlphaToCss.js +23 -0
- package/dist/build/transformers/colorToHex.js +1 -2
- package/dist/css/base/motion/motion.css +6 -6
- package/dist/css/base/size/size.css +6 -6
- package/dist/css/base/typography/typography.css +1 -1
- package/dist/css/functional/motion/motion.css +1 -1
- package/dist/css/functional/size/border.css +9 -9
- package/dist/css/functional/size/breakpoints.css +3 -3
- package/dist/css/functional/size/size-coarse.css +1 -1
- package/dist/css/functional/size/size-fine.css +1 -1
- package/dist/css/functional/size/size.css +49 -49
- package/dist/css/functional/themes/dark-colorblind.css +1124 -1124
- package/dist/css/functional/themes/dark-dimmed.css +1124 -1124
- package/dist/css/functional/themes/dark-high-contrast.css +1124 -1124
- package/dist/css/functional/themes/dark-tritanopia.css +1124 -1124
- package/dist/css/functional/themes/dark.css +1124 -1124
- package/dist/css/functional/themes/light-colorblind.css +1124 -1124
- package/dist/css/functional/themes/light-high-contrast.css +1124 -1124
- package/dist/css/functional/themes/light-tritanopia.css +1124 -1124
- package/dist/css/functional/themes/light.css +1124 -1124
- package/dist/css/functional/typography/typography.css +28 -28
- package/dist/css/primitives.css +105 -105
- package/dist/docs/functional/themes/dark-colorblind.json +47 -59
- package/dist/docs/functional/themes/dark-dimmed.json +13 -5
- package/dist/docs/functional/themes/dark-high-contrast.json +39 -17
- package/dist/docs/functional/themes/dark-tritanopia.json +57 -85
- package/dist/docs/functional/themes/dark.json +41 -33
- package/dist/docs/functional/themes/light-colorblind.json +37 -33
- package/dist/docs/functional/themes/light-high-contrast.json +35 -13
- package/dist/docs/functional/themes/light-tritanopia.json +37 -33
- package/dist/docs/functional/themes/light.json +35 -27
- package/dist/figma/themes/dark-colorblind.json +25 -24
- package/dist/figma/themes/dark-dimmed.json +6 -4
- package/dist/figma/themes/dark-high-contrast.json +20 -2
- package/dist/figma/themes/dark-tritanopia.json +29 -27
- package/dist/figma/themes/dark.json +31 -28
- package/dist/figma/themes/light-colorblind.json +16 -16
- package/dist/figma/themes/light-high-contrast.json +16 -0
- package/dist/figma/themes/light-tritanopia.json +16 -16
- package/dist/figma/themes/light.json +16 -16
- package/dist/internalCss/dark-colorblind.css +1594 -1594
- package/dist/internalCss/dark-dimmed.css +1594 -1594
- package/dist/internalCss/dark-high-contrast.css +1594 -1594
- package/dist/internalCss/dark-tritanopia.css +1594 -1594
- package/dist/internalCss/dark.css +1594 -1594
- package/dist/internalCss/light-colorblind.css +1560 -1560
- package/dist/internalCss/light-high-contrast.css +1560 -1560
- package/dist/internalCss/light-tritanopia.css +1560 -1560
- package/dist/internalCss/light.css +1560 -1560
- package/dist/styleLint/functional/themes/dark-colorblind.json +47 -59
- package/dist/styleLint/functional/themes/dark-dimmed.json +13 -5
- package/dist/styleLint/functional/themes/dark-high-contrast.json +39 -17
- package/dist/styleLint/functional/themes/dark-tritanopia.json +57 -85
- package/dist/styleLint/functional/themes/dark.json +41 -33
- package/dist/styleLint/functional/themes/light-colorblind.json +37 -33
- package/dist/styleLint/functional/themes/light-high-contrast.json +35 -13
- package/dist/styleLint/functional/themes/light-tritanopia.json +37 -33
- package/dist/styleLint/functional/themes/light.json +35 -27
- package/package.json +1 -5
- package/src/tokens/component/topicTag.json5 +19 -0
- package/src/tokens/functional/color/dark/app-dark.json5 +0 -14
- package/src/tokens/functional/color/dark/overrides/dark.high-contrast.json5 +0 -6
- package/src/tokens/functional/color/dark/overrides/dark.protanopia-deuteranopia.json5 +5 -15
- package/src/tokens/functional/color/dark/overrides/dark.tritanopia.json5 +9 -27
- package/src/tokens/functional/color/dark/primitives-dark.json5 +3 -3
- package/src/tokens/functional/color/light/app-light.json5 +0 -13
- package/src/tokens/functional/color/light/overrides/light.high-contrast.json5 +0 -6
- package/src/tokens/functional/color/light/overrides/light.protanopia-deuteranopia.json5 +1 -3
- package/src/tokens/functional/color/light/overrides/light.tritanopia.json5 +1 -3
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--fontStack-
|
|
2
|
+
--fontStack-monospace: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
|
|
3
3
|
--fontStack-sansSerif: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
|
4
4
|
--fontStack-sansSerifDisplay: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
|
5
|
-
--fontStack-
|
|
6
|
-
--text-display-lineBoxHeight: 1.4;
|
|
7
|
-
--text-display-size: 2.5rem;
|
|
8
|
-
--text-display-lineHeight: 1.4;
|
|
9
|
-
--text-title-size-large: 2rem;
|
|
10
|
-
--text-title-size-medium: 1.25rem;
|
|
11
|
-
--text-title-size-small: 1rem;
|
|
12
|
-
--text-title-lineHeight-large: 1.5;
|
|
13
|
-
--text-title-lineHeight-medium: 1.6;
|
|
14
|
-
--text-title-lineHeight-small: 1.5;
|
|
15
|
-
--text-subtitle-size: 1.25rem;
|
|
16
|
-
--text-subtitle-lineHeight: 1.6;
|
|
17
|
-
--text-body-size-large: 1rem;
|
|
18
|
-
--text-body-size-medium: 0.875rem;
|
|
19
|
-
--text-body-size-small: 0.75rem;
|
|
5
|
+
--fontStack-system: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
|
20
6
|
--text-body-lineHeight-large: 1.5;
|
|
21
7
|
--text-body-lineHeight-medium: 1.4285;
|
|
22
8
|
--text-body-lineHeight-small: 1.6666;
|
|
23
|
-
--text-
|
|
9
|
+
--text-body-size-large: 1rem;
|
|
10
|
+
--text-body-size-medium: 0.875rem;
|
|
11
|
+
--text-body-size-small: 0.75rem;
|
|
24
12
|
--text-caption-lineHeight: 1.3333;
|
|
25
|
-
--text-
|
|
13
|
+
--text-caption-size: 0.75rem;
|
|
26
14
|
--text-codeBlock-lineHeight: 1.5385;
|
|
15
|
+
--text-codeBlock-size: 0.8125rem;
|
|
27
16
|
--text-codeInline-size: 0.9285em;
|
|
28
|
-
--text-display-
|
|
29
|
-
--text-
|
|
30
|
-
--text-
|
|
31
|
-
--text-
|
|
32
|
-
--text-subtitle-
|
|
17
|
+
--text-display-lineBoxHeight: 1.4;
|
|
18
|
+
--text-display-lineHeight: 1.4;
|
|
19
|
+
--text-display-size: 2.5rem;
|
|
20
|
+
--text-subtitle-lineHeight: 1.6;
|
|
21
|
+
--text-subtitle-size: 1.25rem;
|
|
22
|
+
--text-title-lineHeight-large: 1.5;
|
|
23
|
+
--text-title-lineHeight-medium: 1.6;
|
|
24
|
+
--text-title-lineHeight-small: 1.5;
|
|
25
|
+
--text-title-size-large: 2rem;
|
|
26
|
+
--text-title-size-medium: 1.25rem;
|
|
27
|
+
--text-title-size-small: 1rem;
|
|
33
28
|
--text-body-weight: var(--base-text-weight-normal);
|
|
34
29
|
--text-caption-weight: var(--base-text-weight-normal);
|
|
35
30
|
--text-codeBlock-weight: var(--base-text-weight-normal);
|
|
36
31
|
--text-codeInline-weight: var(--base-text-weight-normal);
|
|
37
|
-
--text-display-
|
|
38
|
-
--text-
|
|
39
|
-
--text-title-
|
|
40
|
-
--text-title-
|
|
41
|
-
--text-
|
|
32
|
+
--text-display-weight: var(--base-text-weight-medium);
|
|
33
|
+
--text-subtitle-weight: var(--base-text-weight-normal);
|
|
34
|
+
--text-title-weight-large: var(--base-text-weight-semibold);
|
|
35
|
+
--text-title-weight-medium: var(--base-text-weight-semibold);
|
|
36
|
+
--text-title-weight-small: var(--base-text-weight-semibold);
|
|
42
37
|
--text-body-shorthand-large: var(--text-body-weight) var(--text-body-size-large) / var(--text-body-lineHeight-large) var(--fontStack-sansSerif); /* User-generated content, markdown rendering. */
|
|
43
38
|
--text-body-shorthand-medium: var(--text-body-weight) var(--text-body-size-medium) / var(--text-body-lineHeight-medium) var(--fontStack-sansSerif); /* Default UI font. Most commonly used for body text. */
|
|
44
39
|
--text-body-shorthand-small: var(--text-body-weight) var(--text-body-size-small) / var(--text-body-lineHeight-small) var(--fontStack-sansSerif); /* Small body text for discrete UI applications, such as helper, footnote text. Should be used sparingly across pages. Line-height matches Body (medium) at 20px. */
|
|
45
40
|
--text-caption-shorthand: var(--text-caption-weight) var(--text-caption-size) / var(--text-caption-lineHeight) var(--fontStack-sansSerif); /* Compact small font with a smaller line height of 16px. Use it for single-line scenarios, as the small sizing doesn’t pass accessibility requirements. */
|
|
46
41
|
--text-codeBlock-shorthand: var(--text-codeBlock-weight) var(--text-codeBlock-size) / var(--text-codeBlock-lineHeight) var(--fontStack-monospace); /* Default style for rendering code blocks. */
|
|
47
42
|
--text-codeInline-shorthand: var(--text-codeInline-weight) var(--text-codeInline-size) var(--fontStack-monospace); /* Inline code blocks using em units to inherit size from its parent. */
|
|
43
|
+
--text-display-shorthand: var(--text-display-weight) var(--text-display-size) / var(--text-display-lineHeight) var(--fontStack-sansSerifDisplay); /* Hero-style text for brand to product transition pages. Utilize Title (large) styles on narrow viewports. */
|
|
44
|
+
--text-subtitle-shorthand: var(--text-subtitle-weight) var(--text-subtitle-size) / var(--text-subtitle-lineHeight) var(--fontStack-sansSerifDisplay); /* Page sections/sub headings, or less important object names in page titles (automated action titles, for example). Same line-height as title (medium). */
|
|
45
|
+
--text-title-shorthand-large: var(--text-title-weight-large) var(--text-title-size-large) / var(--text-title-lineHeight-large) var(--fontStack-sansSerifDisplay); /* Page headings for user-created objects, such as issues or pull requests. Utilize title (medium) styles on narrow viewports. */
|
|
46
|
+
--text-title-shorthand-medium: var(--text-title-weight-medium) var(--text-title-size-medium) / var(--text-title-lineHeight-medium) var(--fontStack-sansSerifDisplay); /* Default page title. The 32px-equivalent line-height matches with button and other medium control heights. Great for page header composition. */
|
|
47
|
+
--text-title-shorthand-small: var(--text-title-weight-small) var(--text-title-size-small) / var(--text-title-lineHeight-small) var(--fontStack-sansSerif); /* Uses the same size as body (large) with a heavier weight of semibold (600). */
|
|
48
48
|
}
|
package/dist/css/primitives.css
CHANGED
|
@@ -1,204 +1,204 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--base-easing-linear: cubic-bezier(0, 0, 1, 1); /* Ideal for non-movement properties, like opacity or background color. */
|
|
3
|
-
--base-easing-easeIn: cubic-bezier(0.7, 0.1, 0.75, 0.9); /* Ideal for movement that starts on the page and ends off the page. */
|
|
4
|
-
--base-easing-easeOut: cubic-bezier(0.16, 1, 0.3, 1); /* Ideal for movement that starts off the page and ends on the page. */
|
|
5
|
-
--base-easing-easeInOut: cubic-bezier(0.6, 0, 0.2, 1); /* Ideal for movement that starts and ends on the page. */
|
|
6
2
|
--base-duration-0: 0ms;
|
|
7
|
-
--base-duration-
|
|
3
|
+
--base-duration-1000: 1s;
|
|
8
4
|
--base-duration-200: 200ms;
|
|
9
5
|
--base-duration-300: 300ms;
|
|
10
6
|
--base-duration-400: 400ms;
|
|
11
7
|
--base-duration-500: 500ms;
|
|
12
8
|
--base-duration-600: 600ms;
|
|
13
9
|
--base-duration-700: 700ms;
|
|
10
|
+
--base-duration-75: 75ms;
|
|
14
11
|
--base-duration-800: 800ms;
|
|
15
12
|
--base-duration-900: 900ms;
|
|
16
|
-
--base-
|
|
13
|
+
--base-easing-easeIn: cubic-bezier(0.7, 0.1, 0.75, 0.9); /* Ideal for movement that starts on the page and ends off the page. */
|
|
14
|
+
--base-easing-easeInOut: cubic-bezier(0.6, 0, 0.2, 1); /* Ideal for movement that starts and ends on the page. */
|
|
15
|
+
--base-easing-easeOut: cubic-bezier(0.16, 1, 0.3, 1); /* Ideal for movement that starts off the page and ends on the page. */
|
|
16
|
+
--base-easing-linear: cubic-bezier(0, 0, 1, 1); /* Ideal for non-movement properties, like opacity or background color. */
|
|
17
17
|
}
|
|
18
18
|
:root {
|
|
19
|
-
--base-size-
|
|
20
|
-
--base-size-4: 0.25rem;
|
|
21
|
-
--base-size-6: 0.375rem;
|
|
22
|
-
--base-size-8: 0.5rem;
|
|
19
|
+
--base-size-112: 7rem;
|
|
23
20
|
--base-size-12: 0.75rem;
|
|
21
|
+
--base-size-128: 8rem;
|
|
24
22
|
--base-size-16: 1rem;
|
|
23
|
+
--base-size-2: 0.125rem;
|
|
25
24
|
--base-size-20: 1.25rem;
|
|
26
25
|
--base-size-24: 1.5rem;
|
|
27
26
|
--base-size-28: 1.75rem;
|
|
28
27
|
--base-size-32: 2rem;
|
|
29
28
|
--base-size-36: 2.25rem;
|
|
29
|
+
--base-size-4: 0.25rem;
|
|
30
30
|
--base-size-40: 2.5rem;
|
|
31
31
|
--base-size-44: 2.75rem;
|
|
32
32
|
--base-size-48: 3rem;
|
|
33
|
+
--base-size-6: 0.375rem;
|
|
33
34
|
--base-size-64: 4rem;
|
|
35
|
+
--base-size-8: 0.5rem;
|
|
34
36
|
--base-size-80: 5rem;
|
|
35
37
|
--base-size-96: 6rem;
|
|
36
|
-
--base-size-112: 7rem;
|
|
37
|
-
--base-size-128: 8rem;
|
|
38
38
|
}
|
|
39
39
|
:root {
|
|
40
40
|
--base-text-weight-light: 300;
|
|
41
|
-
--base-text-weight-normal: 400;
|
|
42
41
|
--base-text-weight-medium: 500;
|
|
42
|
+
--base-text-weight-normal: 400;
|
|
43
43
|
--base-text-weight-semibold: 600;
|
|
44
44
|
}
|
|
45
45
|
:root {
|
|
46
46
|
--motion-loading-delay-default: var(--base-duration-1000); /* The amount of time to wait before showing a loading indicator or announcing a loading state to assistive technologies. */
|
|
47
|
+
--motion-skeletonLoader-shimmer-duration-scale: var(--base-duration-1000); /* The amount of times it takes the "shimmer" effect to go from the start (left) of the skeleton loader to the end (right) */
|
|
47
48
|
--motion-spinner-duration-rotation: var(--base-duration-1000); /* The amount of time it takes the "Spinner" loading indicator to make a full 360deg rotation */
|
|
48
49
|
--motion-spinner-easing-rotation: var(--base-easing-linear); /* The easing curve for the "Spinner" loading indicator rotation */
|
|
49
|
-
--motion-skeletonLoader-shimmer-duration-scale: var(--base-duration-1000); /* The amount of times it takes the "shimmer" effect to go from the start (left) of the skeleton loader to the end (right) */
|
|
50
50
|
}
|
|
51
51
|
:root {
|
|
52
|
-
--
|
|
53
|
-
--
|
|
54
|
-
--
|
|
52
|
+
--borderRadius-default: 0.375rem;
|
|
53
|
+
--borderRadius-full: 624.9375rem; /* Use this border radius for pill shaped elements */
|
|
54
|
+
--borderRadius-large: 0.75rem;
|
|
55
|
+
--borderRadius-medium: 0.375rem;
|
|
56
|
+
--borderRadius-small: 0.1875rem;
|
|
55
57
|
--borderWidth-default: 0.0625rem;
|
|
56
|
-
--borderWidth-thin: 0.0625rem;
|
|
57
58
|
--borderWidth-thick: 0.125rem;
|
|
58
59
|
--borderWidth-thicker: 0.25rem;
|
|
59
|
-
--
|
|
60
|
-
--
|
|
61
|
-
--
|
|
62
|
-
--
|
|
63
|
-
--borderRadius-default: 0.375rem;
|
|
60
|
+
--borderWidth-thin: 0.0625rem;
|
|
61
|
+
--boxShadow-thick: inset 0 0 0 0.125rem;
|
|
62
|
+
--boxShadow-thicker: inset 0 0 0 0.25rem;
|
|
63
|
+
--boxShadow-thin: inset 0 0 0 0.0625rem; /* Thin shadow for borders */
|
|
64
64
|
--outline-focus-offset: -0.125rem;
|
|
65
65
|
--outline-focus-width: 0.125rem;
|
|
66
66
|
}
|
|
67
67
|
:root {
|
|
68
|
-
--breakpoint-xsmall: 20rem;
|
|
69
|
-
--breakpoint-small: 34rem;
|
|
70
|
-
--breakpoint-medium: 48rem;
|
|
71
68
|
--breakpoint-large: 63.25rem;
|
|
69
|
+
--breakpoint-medium: 48rem;
|
|
70
|
+
--breakpoint-small: 34rem;
|
|
72
71
|
--breakpoint-xlarge: 80rem;
|
|
72
|
+
--breakpoint-xsmall: 20rem;
|
|
73
73
|
--breakpoint-xxlarge: 87.5rem;
|
|
74
74
|
}
|
|
75
75
|
@media (pointer: coarse) {
|
|
76
76
|
:root {
|
|
77
77
|
--control-minTarget-auto: 2.75rem;
|
|
78
|
-
--controlStack-small-gap-auto: 1rem;
|
|
79
78
|
--controlStack-medium-gap-auto: 0.75rem;
|
|
79
|
+
--controlStack-small-gap-auto: 1rem;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
@media (pointer: fine) {
|
|
83
83
|
:root {
|
|
84
84
|
--control-minTarget-auto: 1rem;
|
|
85
|
-
--controlStack-small-gap-auto: 0.5rem;
|
|
86
85
|
--controlStack-medium-gap-auto: 0.5rem;
|
|
86
|
+
--controlStack-small-gap-auto: 0.5rem;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
:root {
|
|
90
|
-
--control-
|
|
91
|
-
--control-
|
|
92
|
-
--control-
|
|
93
|
-
--control-
|
|
94
|
-
--control-
|
|
95
|
-
--control-
|
|
96
|
-
--control-
|
|
97
|
-
--control-xsmall-paddingInline-spacious: 0.75rem;
|
|
98
|
-
--control-xsmall-gap: 0.25rem;
|
|
99
|
-
--control-small-size: 1.75rem;
|
|
100
|
-
--control-small-lineBoxHeight: 1.25rem;
|
|
101
|
-
--control-small-paddingBlock: 0.25rem;
|
|
102
|
-
--control-small-paddingInline-condensed: 0.5rem;
|
|
103
|
-
--control-small-paddingInline-normal: 0.75rem;
|
|
104
|
-
--control-small-gap: 0.25rem;
|
|
105
|
-
--control-medium-size: 2rem;
|
|
90
|
+
--control-large-gap: 0.5rem;
|
|
91
|
+
--control-large-lineBoxHeight: 1.25rem;
|
|
92
|
+
--control-large-paddingBlock: 0.625rem;
|
|
93
|
+
--control-large-paddingInline-normal: 0.75rem;
|
|
94
|
+
--control-large-paddingInline-spacious: 1rem;
|
|
95
|
+
--control-large-size: 2.5rem;
|
|
96
|
+
--control-medium-gap: 0.5rem;
|
|
106
97
|
--control-medium-lineBoxHeight: 1.25rem;
|
|
107
98
|
--control-medium-paddingBlock: 0.375rem;
|
|
108
99
|
--control-medium-paddingInline-condensed: 0.5rem;
|
|
109
100
|
--control-medium-paddingInline-normal: 0.75rem;
|
|
110
101
|
--control-medium-paddingInline-spacious: 1rem;
|
|
111
|
-
--control-medium-
|
|
112
|
-
--control-
|
|
113
|
-
--control-
|
|
114
|
-
--control-
|
|
115
|
-
--control-
|
|
116
|
-
--control-
|
|
117
|
-
--control-
|
|
118
|
-
--control-
|
|
102
|
+
--control-medium-size: 2rem;
|
|
103
|
+
--control-minTarget-coarse: 2.75rem;
|
|
104
|
+
--control-minTarget-fine: 1rem;
|
|
105
|
+
--control-small-gap: 0.25rem;
|
|
106
|
+
--control-small-lineBoxHeight: 1.25rem;
|
|
107
|
+
--control-small-paddingBlock: 0.25rem;
|
|
108
|
+
--control-small-paddingInline-condensed: 0.5rem;
|
|
109
|
+
--control-small-paddingInline-normal: 0.75rem;
|
|
110
|
+
--control-small-size: 1.75rem;
|
|
111
|
+
--control-xlarge-gap: 0.5rem;
|
|
119
112
|
--control-xlarge-lineBoxHeight: 1.25rem;
|
|
120
113
|
--control-xlarge-paddingBlock: 0.875rem;
|
|
121
114
|
--control-xlarge-paddingInline-normal: 0.75rem;
|
|
122
115
|
--control-xlarge-paddingInline-spacious: 1rem;
|
|
123
|
-
--control-xlarge-
|
|
124
|
-
--
|
|
125
|
-
--
|
|
126
|
-
--
|
|
127
|
-
--
|
|
116
|
+
--control-xlarge-size: 3rem;
|
|
117
|
+
--control-xsmall-gap: 0.25rem;
|
|
118
|
+
--control-xsmall-lineBoxHeight: 1.25rem;
|
|
119
|
+
--control-xsmall-paddingBlock: 0.125rem;
|
|
120
|
+
--control-xsmall-paddingInline-condensed: 0.25rem;
|
|
121
|
+
--control-xsmall-paddingInline-normal: 0.5rem;
|
|
122
|
+
--control-xsmall-paddingInline-spacious: 0.75rem;
|
|
123
|
+
--control-xsmall-size: 1.5rem;
|
|
128
124
|
--controlStack-large-gap-auto: 0.5rem;
|
|
129
125
|
--controlStack-large-gap-condensed: 0.5rem;
|
|
130
126
|
--controlStack-large-gap-spacious: 0.75rem;
|
|
131
|
-
--
|
|
132
|
-
--
|
|
133
|
-
--
|
|
134
|
-
--
|
|
135
|
-
--
|
|
136
|
-
--stack-padding-normal: 1rem;
|
|
137
|
-
--stack-padding-spacious: 1.5rem;
|
|
138
|
-
--stack-gap-condensed: 0.5rem;
|
|
139
|
-
--stack-gap-normal: 1rem;
|
|
140
|
-
--stack-gap-spacious: 1.5rem;
|
|
141
|
-
--overlay-width-xsmall: 12rem;
|
|
142
|
-
--overlay-width-small: 20rem;
|
|
143
|
-
--overlay-width-medium: 30rem;
|
|
144
|
-
--overlay-width-large: 40rem;
|
|
145
|
-
--overlay-width-xlarge: 60rem;
|
|
146
|
-
--overlay-height-small: 16rem;
|
|
147
|
-
--overlay-height-medium: 20rem;
|
|
127
|
+
--controlStack-medium-gap-condensed: 0.5rem;
|
|
128
|
+
--controlStack-medium-gap-spacious: 0.75rem;
|
|
129
|
+
--controlStack-small-gap-condensed: 0.5rem;
|
|
130
|
+
--controlStack-small-gap-spacious: 1rem;
|
|
131
|
+
--overlay-borderRadius: 0.375rem;
|
|
148
132
|
--overlay-height-large: 27rem;
|
|
133
|
+
--overlay-height-medium: 20rem;
|
|
134
|
+
--overlay-height-small: 16rem;
|
|
149
135
|
--overlay-height-xlarge: 37.5rem;
|
|
150
|
-
--overlay-
|
|
136
|
+
--overlay-offset: 0.25rem;
|
|
151
137
|
--overlay-padding-condensed: 0.5rem;
|
|
138
|
+
--overlay-padding-normal: 1rem;
|
|
152
139
|
--overlay-paddingBlock-condensed: 0.25rem;
|
|
153
140
|
--overlay-paddingBlock-normal: 0.75rem;
|
|
154
|
-
--overlay-
|
|
155
|
-
--overlay-
|
|
141
|
+
--overlay-width-large: 40rem;
|
|
142
|
+
--overlay-width-medium: 30rem;
|
|
143
|
+
--overlay-width-small: 20rem;
|
|
144
|
+
--overlay-width-xlarge: 60rem;
|
|
145
|
+
--overlay-width-xsmall: 12rem;
|
|
146
|
+
--spinner-size-large: 4rem;
|
|
147
|
+
--spinner-size-medium: 2rem;
|
|
148
|
+
--spinner-size-small: 1rem;
|
|
149
|
+
--spinner-strokeWidth-default: 0.125rem;
|
|
150
|
+
--stack-gap-condensed: 0.5rem;
|
|
151
|
+
--stack-gap-normal: 1rem;
|
|
152
|
+
--stack-gap-spacious: 1.5rem;
|
|
153
|
+
--stack-padding-condensed: 0.5rem;
|
|
154
|
+
--stack-padding-normal: 1rem;
|
|
155
|
+
--stack-padding-spacious: 1.5rem;
|
|
156
156
|
}
|
|
157
157
|
:root {
|
|
158
|
-
--fontStack-
|
|
158
|
+
--fontStack-monospace: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
|
|
159
159
|
--fontStack-sansSerif: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
|
160
160
|
--fontStack-sansSerifDisplay: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
|
161
|
-
--fontStack-
|
|
162
|
-
--text-display-lineBoxHeight: 1.4;
|
|
163
|
-
--text-display-size: 2.5rem;
|
|
164
|
-
--text-display-lineHeight: 1.4;
|
|
165
|
-
--text-title-size-large: 2rem;
|
|
166
|
-
--text-title-size-medium: 1.25rem;
|
|
167
|
-
--text-title-size-small: 1rem;
|
|
168
|
-
--text-title-lineHeight-large: 1.5;
|
|
169
|
-
--text-title-lineHeight-medium: 1.6;
|
|
170
|
-
--text-title-lineHeight-small: 1.5;
|
|
171
|
-
--text-subtitle-size: 1.25rem;
|
|
172
|
-
--text-subtitle-lineHeight: 1.6;
|
|
173
|
-
--text-body-size-large: 1rem;
|
|
174
|
-
--text-body-size-medium: 0.875rem;
|
|
175
|
-
--text-body-size-small: 0.75rem;
|
|
161
|
+
--fontStack-system: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
|
176
162
|
--text-body-lineHeight-large: 1.5;
|
|
177
163
|
--text-body-lineHeight-medium: 1.4285;
|
|
178
164
|
--text-body-lineHeight-small: 1.6666;
|
|
179
|
-
--text-
|
|
165
|
+
--text-body-size-large: 1rem;
|
|
166
|
+
--text-body-size-medium: 0.875rem;
|
|
167
|
+
--text-body-size-small: 0.75rem;
|
|
180
168
|
--text-caption-lineHeight: 1.3333;
|
|
181
|
-
--text-
|
|
169
|
+
--text-caption-size: 0.75rem;
|
|
182
170
|
--text-codeBlock-lineHeight: 1.5385;
|
|
171
|
+
--text-codeBlock-size: 0.8125rem;
|
|
183
172
|
--text-codeInline-size: 0.9285em;
|
|
184
|
-
--text-display-
|
|
185
|
-
--text-
|
|
186
|
-
--text-
|
|
187
|
-
--text-
|
|
188
|
-
--text-subtitle-
|
|
173
|
+
--text-display-lineBoxHeight: 1.4;
|
|
174
|
+
--text-display-lineHeight: 1.4;
|
|
175
|
+
--text-display-size: 2.5rem;
|
|
176
|
+
--text-subtitle-lineHeight: 1.6;
|
|
177
|
+
--text-subtitle-size: 1.25rem;
|
|
178
|
+
--text-title-lineHeight-large: 1.5;
|
|
179
|
+
--text-title-lineHeight-medium: 1.6;
|
|
180
|
+
--text-title-lineHeight-small: 1.5;
|
|
181
|
+
--text-title-size-large: 2rem;
|
|
182
|
+
--text-title-size-medium: 1.25rem;
|
|
183
|
+
--text-title-size-small: 1rem;
|
|
189
184
|
--text-body-weight: var(--base-text-weight-normal);
|
|
190
185
|
--text-caption-weight: var(--base-text-weight-normal);
|
|
191
186
|
--text-codeBlock-weight: var(--base-text-weight-normal);
|
|
192
187
|
--text-codeInline-weight: var(--base-text-weight-normal);
|
|
193
|
-
--text-display-
|
|
194
|
-
--text-
|
|
195
|
-
--text-title-
|
|
196
|
-
--text-title-
|
|
197
|
-
--text-
|
|
188
|
+
--text-display-weight: var(--base-text-weight-medium);
|
|
189
|
+
--text-subtitle-weight: var(--base-text-weight-normal);
|
|
190
|
+
--text-title-weight-large: var(--base-text-weight-semibold);
|
|
191
|
+
--text-title-weight-medium: var(--base-text-weight-semibold);
|
|
192
|
+
--text-title-weight-small: var(--base-text-weight-semibold);
|
|
198
193
|
--text-body-shorthand-large: var(--text-body-weight) var(--text-body-size-large) / var(--text-body-lineHeight-large) var(--fontStack-sansSerif); /* User-generated content, markdown rendering. */
|
|
199
194
|
--text-body-shorthand-medium: var(--text-body-weight) var(--text-body-size-medium) / var(--text-body-lineHeight-medium) var(--fontStack-sansSerif); /* Default UI font. Most commonly used for body text. */
|
|
200
195
|
--text-body-shorthand-small: var(--text-body-weight) var(--text-body-size-small) / var(--text-body-lineHeight-small) var(--fontStack-sansSerif); /* Small body text for discrete UI applications, such as helper, footnote text. Should be used sparingly across pages. Line-height matches Body (medium) at 20px. */
|
|
201
196
|
--text-caption-shorthand: var(--text-caption-weight) var(--text-caption-size) / var(--text-caption-lineHeight) var(--fontStack-sansSerif); /* Compact small font with a smaller line height of 16px. Use it for single-line scenarios, as the small sizing doesn’t pass accessibility requirements. */
|
|
202
197
|
--text-codeBlock-shorthand: var(--text-codeBlock-weight) var(--text-codeBlock-size) / var(--text-codeBlock-lineHeight) var(--fontStack-monospace); /* Default style for rendering code blocks. */
|
|
203
198
|
--text-codeInline-shorthand: var(--text-codeInline-weight) var(--text-codeInline-size) var(--fontStack-monospace); /* Inline code blocks using em units to inherit size from its parent. */
|
|
199
|
+
--text-display-shorthand: var(--text-display-weight) var(--text-display-size) / var(--text-display-lineHeight) var(--fontStack-sansSerifDisplay); /* Hero-style text for brand to product transition pages. Utilize Title (large) styles on narrow viewports. */
|
|
200
|
+
--text-subtitle-shorthand: var(--text-subtitle-weight) var(--text-subtitle-size) / var(--text-subtitle-lineHeight) var(--fontStack-sansSerifDisplay); /* Page sections/sub headings, or less important object names in page titles (automated action titles, for example). Same line-height as title (medium). */
|
|
201
|
+
--text-title-shorthand-large: var(--text-title-weight-large) var(--text-title-size-large) / var(--text-title-lineHeight-large) var(--fontStack-sansSerifDisplay); /* Page headings for user-created objects, such as issues or pull requests. Utilize title (medium) styles on narrow viewports. */
|
|
202
|
+
--text-title-shorthand-medium: var(--text-title-weight-medium) var(--text-title-size-medium) / var(--text-title-lineHeight-medium) var(--fontStack-sansSerifDisplay); /* Default page title. The 32px-equivalent line-height matches with button and other medium control heights. Great for page header composition. */
|
|
203
|
+
--text-title-shorthand-small: var(--text-title-weight-small) var(--text-title-size-small) / var(--text-title-lineHeight-small) var(--fontStack-sansSerif); /* Uses the same size as body (large) with a heavier weight of semibold (600). */
|
|
204
204
|
}
|
|
@@ -1,31 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"topicTag-borderColor": {
|
|
3
|
-
"$extensions": {
|
|
4
|
-
"org.primer.figma": {
|
|
5
|
-
"collection": "mode",
|
|
6
|
-
"group": "component",
|
|
7
|
-
"scopes": ["borderColor"]
|
|
8
|
-
}
|
|
9
|
-
},
|
|
10
|
-
"filePath": "src/tokens/functional/color/dark/app-dark.json5",
|
|
11
|
-
"isSource": true,
|
|
12
|
-
"original": {
|
|
13
|
-
"$value": "{base.color.transparent}",
|
|
14
|
-
"$type": "color",
|
|
15
|
-
"$extensions": {
|
|
16
|
-
"org.primer.figma": {
|
|
17
|
-
"collection": "mode",
|
|
18
|
-
"group": "component",
|
|
19
|
-
"scopes": ["borderColor"]
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"name": "topicTag-borderColor",
|
|
24
|
-
"attributes": {},
|
|
25
|
-
"path": ["topicTag", "borderColor"],
|
|
26
|
-
"value": "#00000000",
|
|
27
|
-
"type": "color"
|
|
28
|
-
},
|
|
29
2
|
"highlight-neutral-bgColor": {
|
|
30
3
|
"$extensions": {
|
|
31
4
|
"org.primer.figma": {
|
|
@@ -376,17 +349,13 @@
|
|
|
376
349
|
"type": "color"
|
|
377
350
|
},
|
|
378
351
|
"diffBlob-hunkLine-bgColor": {
|
|
379
|
-
"
|
|
380
|
-
"alpha": 1
|
|
381
|
-
},
|
|
352
|
+
"alpha": 1,
|
|
382
353
|
"filePath": "src/tokens/functional/color/dark/overrides/dark.protanopia-deuteranopia.json5",
|
|
383
354
|
"isSource": true,
|
|
384
355
|
"original": {
|
|
385
356
|
"$value": "{base.color.neutral.3}",
|
|
386
357
|
"$type": "color",
|
|
387
|
-
"
|
|
388
|
-
"alpha": 1
|
|
389
|
-
}
|
|
358
|
+
"alpha": 1
|
|
390
359
|
},
|
|
391
360
|
"name": "diffBlob-hunkLine-bgColor",
|
|
392
361
|
"attributes": {},
|
|
@@ -449,17 +418,13 @@
|
|
|
449
418
|
"type": "color"
|
|
450
419
|
},
|
|
451
420
|
"diffBlob-hunkNum-bgColor-rest": {
|
|
452
|
-
"
|
|
453
|
-
"alpha": 1
|
|
454
|
-
},
|
|
421
|
+
"alpha": 1,
|
|
455
422
|
"filePath": "src/tokens/functional/color/dark/overrides/dark.protanopia-deuteranopia.json5",
|
|
456
423
|
"isSource": true,
|
|
457
424
|
"original": {
|
|
458
425
|
"$value": "{base.color.neutral.6}",
|
|
459
426
|
"$type": "color",
|
|
460
|
-
"
|
|
461
|
-
"alpha": 1
|
|
462
|
-
}
|
|
427
|
+
"alpha": 1
|
|
463
428
|
},
|
|
464
429
|
"name": "diffBlob-hunkNum-bgColor-rest",
|
|
465
430
|
"attributes": {},
|
|
@@ -468,17 +433,13 @@
|
|
|
468
433
|
"type": "color"
|
|
469
434
|
},
|
|
470
435
|
"diffBlob-hunkNum-bgColor-hover": {
|
|
471
|
-
"
|
|
472
|
-
"alpha": 1
|
|
473
|
-
},
|
|
436
|
+
"alpha": 1,
|
|
474
437
|
"filePath": "src/tokens/functional/color/dark/overrides/dark.protanopia-deuteranopia.json5",
|
|
475
438
|
"isSource": true,
|
|
476
439
|
"original": {
|
|
477
440
|
"$value": "{base.color.neutral.8}",
|
|
478
441
|
"$type": "color",
|
|
479
|
-
"
|
|
480
|
-
"alpha": 1
|
|
481
|
-
}
|
|
442
|
+
"alpha": 1
|
|
482
443
|
},
|
|
483
444
|
"name": "diffBlob-hunkNum-bgColor-hover",
|
|
484
445
|
"attributes": {},
|
|
@@ -11930,8 +11891,8 @@
|
|
|
11930
11891
|
"type": "color"
|
|
11931
11892
|
},
|
|
11932
11893
|
"fgColor-disabled": {
|
|
11894
|
+
"alpha": 0.6,
|
|
11933
11895
|
"$extensions": {
|
|
11934
|
-
"alpha": 0.6,
|
|
11935
11896
|
"org.primer.figma": {
|
|
11936
11897
|
"collection": "mode",
|
|
11937
11898
|
"group": "semantic",
|
|
@@ -11943,8 +11904,8 @@
|
|
|
11943
11904
|
"original": {
|
|
11944
11905
|
"$value": "{base.color.neutral.8}",
|
|
11945
11906
|
"$type": "color",
|
|
11907
|
+
"alpha": 0.6,
|
|
11946
11908
|
"$extensions": {
|
|
11947
|
-
"alpha": 0.6,
|
|
11948
11909
|
"org.primer.figma": {
|
|
11949
11910
|
"collection": "mode",
|
|
11950
11911
|
"group": "semantic",
|
|
@@ -12886,17 +12847,13 @@
|
|
|
12886
12847
|
"type": "color"
|
|
12887
12848
|
},
|
|
12888
12849
|
"bgColor-closed-muted": {
|
|
12889
|
-
"
|
|
12890
|
-
"alpha": 0.1
|
|
12891
|
-
},
|
|
12850
|
+
"alpha": 0.1,
|
|
12892
12851
|
"filePath": "src/tokens/functional/color/dark/overrides/dark.protanopia-deuteranopia.json5",
|
|
12893
12852
|
"isSource": true,
|
|
12894
12853
|
"original": {
|
|
12895
12854
|
"$value": "{bgColor.neutral.muted}",
|
|
12896
12855
|
"$type": "color",
|
|
12897
|
-
"
|
|
12898
|
-
"alpha": 0.1
|
|
12899
|
-
}
|
|
12856
|
+
"alpha": 0.1
|
|
12900
12857
|
},
|
|
12901
12858
|
"name": "bgColor-closed-muted",
|
|
12902
12859
|
"attributes": {},
|
|
@@ -13644,17 +13601,13 @@
|
|
|
13644
13601
|
"type": "color"
|
|
13645
13602
|
},
|
|
13646
13603
|
"borderColor-closed-muted": {
|
|
13647
|
-
"
|
|
13648
|
-
"alpha": 0.4
|
|
13649
|
-
},
|
|
13604
|
+
"alpha": 0.4,
|
|
13650
13605
|
"filePath": "src/tokens/functional/color/dark/overrides/dark.protanopia-deuteranopia.json5",
|
|
13651
13606
|
"isSource": true,
|
|
13652
13607
|
"original": {
|
|
13653
13608
|
"$value": "{borderColor.muted}",
|
|
13654
13609
|
"$type": "color",
|
|
13655
|
-
"
|
|
13656
|
-
"alpha": 0.4
|
|
13657
|
-
}
|
|
13610
|
+
"alpha": 0.4
|
|
13658
13611
|
},
|
|
13659
13612
|
"name": "borderColor-closed-muted",
|
|
13660
13613
|
"attributes": {},
|
|
@@ -15705,5 +15658,40 @@
|
|
|
15705
15658
|
"path": ["border", "sponsors", "muted"],
|
|
15706
15659
|
"value": "0.0625rem solid #db61a266",
|
|
15707
15660
|
"type": "border"
|
|
15661
|
+
},
|
|
15662
|
+
"topicTag-borderColor": {
|
|
15663
|
+
"$extensions": {
|
|
15664
|
+
"org.primer.figma": {
|
|
15665
|
+
"collection": "mode",
|
|
15666
|
+
"group": "component",
|
|
15667
|
+
"scopes": ["borderColor"]
|
|
15668
|
+
},
|
|
15669
|
+
"org.primer.overrides": {
|
|
15670
|
+
"light-high-contrast": "#1f6feb",
|
|
15671
|
+
"dark-high-contrast": "#1f6feb"
|
|
15672
|
+
}
|
|
15673
|
+
},
|
|
15674
|
+
"filePath": "src/tokens/component/topicTag.json5",
|
|
15675
|
+
"isSource": true,
|
|
15676
|
+
"original": {
|
|
15677
|
+
"$value": "{base.color.transparent}",
|
|
15678
|
+
"$type": "color",
|
|
15679
|
+
"$extensions": {
|
|
15680
|
+
"org.primer.figma": {
|
|
15681
|
+
"collection": "mode",
|
|
15682
|
+
"group": "component",
|
|
15683
|
+
"scopes": ["borderColor"]
|
|
15684
|
+
},
|
|
15685
|
+
"org.primer.overrides": {
|
|
15686
|
+
"light-high-contrast": "{borderColor.accent.emphasis}",
|
|
15687
|
+
"dark-high-contrast": "{borderColor.accent.emphasis}"
|
|
15688
|
+
}
|
|
15689
|
+
}
|
|
15690
|
+
},
|
|
15691
|
+
"name": "topicTag-borderColor",
|
|
15692
|
+
"attributes": {},
|
|
15693
|
+
"path": ["topicTag", "borderColor"],
|
|
15694
|
+
"value": "#00000000",
|
|
15695
|
+
"type": "color"
|
|
15708
15696
|
}
|
|
15709
15697
|
}
|
|
@@ -5,9 +5,13 @@
|
|
|
5
5
|
"collection": "mode",
|
|
6
6
|
"group": "component",
|
|
7
7
|
"scopes": ["borderColor"]
|
|
8
|
+
},
|
|
9
|
+
"org.primer.overrides": {
|
|
10
|
+
"light-high-contrast": "#316dca",
|
|
11
|
+
"dark-high-contrast": "#316dca"
|
|
8
12
|
}
|
|
9
13
|
},
|
|
10
|
-
"filePath": "src/tokens/
|
|
14
|
+
"filePath": "src/tokens/component/topicTag.json5",
|
|
11
15
|
"isSource": true,
|
|
12
16
|
"original": {
|
|
13
17
|
"$value": "{base.color.transparent}",
|
|
@@ -17,6 +21,10 @@
|
|
|
17
21
|
"collection": "mode",
|
|
18
22
|
"group": "component",
|
|
19
23
|
"scopes": ["borderColor"]
|
|
24
|
+
},
|
|
25
|
+
"org.primer.overrides": {
|
|
26
|
+
"light-high-contrast": "{borderColor.accent.emphasis}",
|
|
27
|
+
"dark-high-contrast": "{borderColor.accent.emphasis}"
|
|
20
28
|
}
|
|
21
29
|
}
|
|
22
30
|
},
|
|
@@ -12616,8 +12624,8 @@
|
|
|
12616
12624
|
"type": "color"
|
|
12617
12625
|
},
|
|
12618
12626
|
"bgColor-danger-muted": {
|
|
12627
|
+
"alpha": 0.1,
|
|
12619
12628
|
"$extensions": {
|
|
12620
|
-
"alpha": 0.1,
|
|
12621
12629
|
"org.primer.figma": {
|
|
12622
12630
|
"collection": "mode",
|
|
12623
12631
|
"group": "semantic",
|
|
@@ -12632,8 +12640,8 @@
|
|
|
12632
12640
|
"original": {
|
|
12633
12641
|
"$value": "{base.color.red.4}",
|
|
12634
12642
|
"$type": "color",
|
|
12643
|
+
"alpha": 0.1,
|
|
12635
12644
|
"$extensions": {
|
|
12636
|
-
"alpha": 0.1,
|
|
12637
12645
|
"org.primer.figma": {
|
|
12638
12646
|
"collection": "mode",
|
|
12639
12647
|
"group": "semantic",
|
|
@@ -12684,8 +12692,8 @@
|
|
|
12684
12692
|
"type": "color"
|
|
12685
12693
|
},
|
|
12686
12694
|
"bgColor-closed-muted": {
|
|
12695
|
+
"alpha": 0.1,
|
|
12687
12696
|
"$extensions": {
|
|
12688
|
-
"alpha": 0.1,
|
|
12689
12697
|
"org.primer.figma": {
|
|
12690
12698
|
"collection": "mode",
|
|
12691
12699
|
"group": "semantic",
|
|
@@ -12700,8 +12708,8 @@
|
|
|
12700
12708
|
"original": {
|
|
12701
12709
|
"$value": "{bgColor.danger.muted}",
|
|
12702
12710
|
"$type": "color",
|
|
12711
|
+
"alpha": 0.1,
|
|
12703
12712
|
"$extensions": {
|
|
12704
|
-
"alpha": 0.1,
|
|
12705
12713
|
"org.primer.figma": {
|
|
12706
12714
|
"collection": "mode",
|
|
12707
12715
|
"group": "semantic",
|