@primer/primitives 10.2.0-rc.356b5bb4 → 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.
Files changed (31) hide show
  1. package/dist/build/formats/cssAdvanced.js +2 -2
  2. package/dist/css/base/motion/motion.css +6 -6
  3. package/dist/css/base/size/size.css +6 -6
  4. package/dist/css/base/typography/typography.css +1 -1
  5. package/dist/css/functional/motion/motion.css +1 -1
  6. package/dist/css/functional/size/border.css +9 -9
  7. package/dist/css/functional/size/breakpoints.css +3 -3
  8. package/dist/css/functional/size/size-coarse.css +1 -1
  9. package/dist/css/functional/size/size-fine.css +1 -1
  10. package/dist/css/functional/size/size.css +49 -49
  11. package/dist/css/functional/themes/dark-colorblind.css +1122 -1122
  12. package/dist/css/functional/themes/dark-dimmed.css +1124 -1124
  13. package/dist/css/functional/themes/dark-high-contrast.css +1122 -1122
  14. package/dist/css/functional/themes/dark-tritanopia.css +1122 -1122
  15. package/dist/css/functional/themes/dark.css +1122 -1122
  16. package/dist/css/functional/themes/light-colorblind.css +1122 -1122
  17. package/dist/css/functional/themes/light-high-contrast.css +1122 -1122
  18. package/dist/css/functional/themes/light-tritanopia.css +1122 -1122
  19. package/dist/css/functional/themes/light.css +1122 -1122
  20. package/dist/css/functional/typography/typography.css +28 -28
  21. package/dist/css/primitives.css +105 -105
  22. package/dist/internalCss/dark-colorblind.css +1563 -1563
  23. package/dist/internalCss/dark-dimmed.css +1594 -1594
  24. package/dist/internalCss/dark-high-contrast.css +1563 -1563
  25. package/dist/internalCss/dark-tritanopia.css +1563 -1563
  26. package/dist/internalCss/dark.css +1563 -1563
  27. package/dist/internalCss/light-colorblind.css +1558 -1558
  28. package/dist/internalCss/light-high-contrast.css +1558 -1558
  29. package/dist/internalCss/light-tritanopia.css +1558 -1558
  30. package/dist/internalCss/light.css +1558 -1558
  31. package/package.json +1 -1
@@ -1,48 +1,48 @@
1
1
  :root {
2
- --fontStack-system: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
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-monospace: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
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-caption-size: 0.75rem;
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-codeBlock-size: 0.8125rem;
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-weight: var(--base-text-weight-medium);
29
- --text-title-weight-large: var(--base-text-weight-semibold);
30
- --text-title-weight-medium: var(--base-text-weight-semibold);
31
- --text-title-weight-small: var(--base-text-weight-semibold);
32
- --text-subtitle-weight: var(--base-text-weight-normal);
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-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. */
38
- --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. */
39
- --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. */
40
- --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). */
41
- --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). */
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
  }
@@ -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-75: 75ms;
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-duration-1000: 1s;
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-2: 0.125rem;
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
- --boxShadow-thin: inset 0 0 0 0.0625rem; /* Thin shadow for borders */
53
- --boxShadow-thick: inset 0 0 0 0.125rem;
54
- --boxShadow-thicker: inset 0 0 0 0.25rem;
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
- --borderRadius-small: 0.1875rem;
60
- --borderRadius-medium: 0.375rem;
61
- --borderRadius-large: 0.75rem;
62
- --borderRadius-full: 624.9375rem; /* Use this border radius for pill shaped elements */
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-minTarget-fine: 1rem;
91
- --control-minTarget-coarse: 2.75rem;
92
- --control-xsmall-size: 1.5rem;
93
- --control-xsmall-lineBoxHeight: 1.25rem;
94
- --control-xsmall-paddingBlock: 0.125rem;
95
- --control-xsmall-paddingInline-condensed: 0.25rem;
96
- --control-xsmall-paddingInline-normal: 0.5rem;
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-gap: 0.5rem;
112
- --control-large-size: 2.5rem;
113
- --control-large-lineBoxHeight: 1.25rem;
114
- --control-large-paddingBlock: 0.625rem;
115
- --control-large-paddingInline-normal: 0.75rem;
116
- --control-large-paddingInline-spacious: 1rem;
117
- --control-large-gap: 0.5rem;
118
- --control-xlarge-size: 3rem;
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-gap: 0.5rem;
124
- --controlStack-small-gap-condensed: 0.5rem;
125
- --controlStack-small-gap-spacious: 1rem;
126
- --controlStack-medium-gap-condensed: 0.5rem;
127
- --controlStack-medium-gap-spacious: 0.75rem;
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
- --spinner-strokeWidth-default: 0.125rem;
132
- --spinner-size-small: 1rem;
133
- --spinner-size-medium: 2rem;
134
- --spinner-size-large: 4rem;
135
- --stack-padding-condensed: 0.5rem;
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-padding-normal: 1rem;
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-borderRadius: 0.375rem;
155
- --overlay-offset: 0.25rem;
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-system: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
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-monospace: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
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-caption-size: 0.75rem;
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-codeBlock-size: 0.8125rem;
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-weight: var(--base-text-weight-medium);
185
- --text-title-weight-large: var(--base-text-weight-semibold);
186
- --text-title-weight-medium: var(--base-text-weight-semibold);
187
- --text-title-weight-small: var(--base-text-weight-semibold);
188
- --text-subtitle-weight: var(--base-text-weight-normal);
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-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. */
194
- --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. */
195
- --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. */
196
- --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). */
197
- --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). */
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
  }