@primer/primitives 10.2.0-rc.a47cfce9 → 10.2.0-rc.fcf6bd37
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/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 +35 -27
- package/dist/docs/functional/themes/dark-dimmed.json +9 -1
- package/dist/docs/functional/themes/dark-high-contrast.json +35 -13
- package/dist/docs/functional/themes/dark-tritanopia.json +35 -27
- package/dist/docs/functional/themes/dark.json +35 -27
- package/dist/docs/functional/themes/light-colorblind.json +35 -27
- package/dist/docs/functional/themes/light-high-contrast.json +35 -13
- package/dist/docs/functional/themes/light-tritanopia.json +35 -27
- package/dist/docs/functional/themes/light.json +35 -27
- package/dist/figma/themes/dark-colorblind.json +16 -16
- package/dist/figma/themes/dark-high-contrast.json +16 -0
- package/dist/figma/themes/dark-tritanopia.json +16 -16
- package/dist/figma/themes/dark.json +16 -16
- 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 +35 -27
- package/dist/styleLint/functional/themes/dark-dimmed.json +9 -1
- package/dist/styleLint/functional/themes/dark-high-contrast.json +35 -13
- package/dist/styleLint/functional/themes/dark-tritanopia.json +35 -27
- package/dist/styleLint/functional/themes/dark.json +35 -27
- package/dist/styleLint/functional/themes/light-colorblind.json +35 -27
- package/dist/styleLint/functional/themes/light-high-contrast.json +35 -13
- package/dist/styleLint/functional/themes/light-tritanopia.json +35 -27
- package/dist/styleLint/functional/themes/light.json +35 -27
- package/package.json +1 -1
- 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/light/app-light.json5 +0 -13
- package/src/tokens/functional/color/light/overrides/light.high-contrast.json5 +0 -6
|
@@ -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": {
|
|
@@ -15685,5 +15658,40 @@
|
|
|
15685
15658
|
"path": ["border", "sponsors", "muted"],
|
|
15686
15659
|
"value": "0.0625rem solid #db61a266",
|
|
15687
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"
|
|
15688
15696
|
}
|
|
15689
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
|
},
|
|
@@ -1,17 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"topicTag-borderColor": {
|
|
3
|
-
"filePath": "src/tokens/functional/color/dark/overrides/dark.high-contrast.json5",
|
|
4
|
-
"isSource": true,
|
|
5
|
-
"original": {
|
|
6
|
-
"$value": "{borderColor.accent.emphasis}",
|
|
7
|
-
"$type": "color"
|
|
8
|
-
},
|
|
9
|
-
"name": "topicTag-borderColor",
|
|
10
|
-
"attributes": {},
|
|
11
|
-
"path": ["topicTag", "borderColor"],
|
|
12
|
-
"value": "#409eff",
|
|
13
|
-
"type": "color"
|
|
14
|
-
},
|
|
15
2
|
"highlight-neutral-bgColor": {
|
|
16
3
|
"$extensions": {
|
|
17
4
|
"org.primer.figma": {
|
|
@@ -14181,5 +14168,40 @@
|
|
|
14181
14168
|
"path": ["border", "sponsors", "muted"],
|
|
14182
14169
|
"value": "0.0625rem solid #f87cbd",
|
|
14183
14170
|
"type": "border"
|
|
14171
|
+
},
|
|
14172
|
+
"topicTag-borderColor": {
|
|
14173
|
+
"$extensions": {
|
|
14174
|
+
"org.primer.figma": {
|
|
14175
|
+
"collection": "mode",
|
|
14176
|
+
"group": "component",
|
|
14177
|
+
"scopes": ["borderColor"]
|
|
14178
|
+
},
|
|
14179
|
+
"org.primer.overrides": {
|
|
14180
|
+
"light-high-contrast": "#409eff",
|
|
14181
|
+
"dark-high-contrast": "#409eff"
|
|
14182
|
+
}
|
|
14183
|
+
},
|
|
14184
|
+
"filePath": "src/tokens/component/topicTag.json5",
|
|
14185
|
+
"isSource": true,
|
|
14186
|
+
"original": {
|
|
14187
|
+
"$value": "{borderColor.accent.emphasis}",
|
|
14188
|
+
"$type": "color",
|
|
14189
|
+
"$extensions": {
|
|
14190
|
+
"org.primer.figma": {
|
|
14191
|
+
"collection": "mode",
|
|
14192
|
+
"group": "component",
|
|
14193
|
+
"scopes": ["borderColor"]
|
|
14194
|
+
},
|
|
14195
|
+
"org.primer.overrides": {
|
|
14196
|
+
"light-high-contrast": "{borderColor.accent.emphasis}",
|
|
14197
|
+
"dark-high-contrast": "{borderColor.accent.emphasis}"
|
|
14198
|
+
}
|
|
14199
|
+
}
|
|
14200
|
+
},
|
|
14201
|
+
"name": "topicTag-borderColor",
|
|
14202
|
+
"attributes": {},
|
|
14203
|
+
"path": ["topicTag", "borderColor"],
|
|
14204
|
+
"value": "#409eff",
|
|
14205
|
+
"type": "color"
|
|
14184
14206
|
}
|
|
14185
14207
|
}
|
|
@@ -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": {
|
|
@@ -15807,5 +15780,40 @@
|
|
|
15807
15780
|
"path": ["border", "sponsors", "muted"],
|
|
15808
15781
|
"value": "0.0625rem solid #db61a266",
|
|
15809
15782
|
"type": "border"
|
|
15783
|
+
},
|
|
15784
|
+
"topicTag-borderColor": {
|
|
15785
|
+
"$extensions": {
|
|
15786
|
+
"org.primer.figma": {
|
|
15787
|
+
"collection": "mode",
|
|
15788
|
+
"group": "component",
|
|
15789
|
+
"scopes": ["borderColor"]
|
|
15790
|
+
},
|
|
15791
|
+
"org.primer.overrides": {
|
|
15792
|
+
"light-high-contrast": "#1f6feb",
|
|
15793
|
+
"dark-high-contrast": "#1f6feb"
|
|
15794
|
+
}
|
|
15795
|
+
},
|
|
15796
|
+
"filePath": "src/tokens/component/topicTag.json5",
|
|
15797
|
+
"isSource": true,
|
|
15798
|
+
"original": {
|
|
15799
|
+
"$value": "{base.color.transparent}",
|
|
15800
|
+
"$type": "color",
|
|
15801
|
+
"$extensions": {
|
|
15802
|
+
"org.primer.figma": {
|
|
15803
|
+
"collection": "mode",
|
|
15804
|
+
"group": "component",
|
|
15805
|
+
"scopes": ["borderColor"]
|
|
15806
|
+
},
|
|
15807
|
+
"org.primer.overrides": {
|
|
15808
|
+
"light-high-contrast": "{borderColor.accent.emphasis}",
|
|
15809
|
+
"dark-high-contrast": "{borderColor.accent.emphasis}"
|
|
15810
|
+
}
|
|
15811
|
+
}
|
|
15812
|
+
},
|
|
15813
|
+
"name": "topicTag-borderColor",
|
|
15814
|
+
"attributes": {},
|
|
15815
|
+
"path": ["topicTag", "borderColor"],
|
|
15816
|
+
"value": "#00000000",
|
|
15817
|
+
"type": "color"
|
|
15810
15818
|
}
|
|
15811
15819
|
}
|