@primer/primitives 7.10.0-rc.ff1c1d9 → 7.10.0

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 (89) hide show
  1. package/build.js +2 -2
  2. package/package.json +7 -3
  3. package/tokens/base/color/dark-colorblind.json +44 -0
  4. package/tokens/base/color/dark-dimmed.json +124 -0
  5. package/tokens/base/color/dark-high-contrast.json +124 -0
  6. package/tokens/base/color/dark-tritanopia.json +92 -0
  7. package/tokens/base/color/dark.json +129 -0
  8. package/tokens/base/color/light-colorblind.json +134 -0
  9. package/tokens/base/color/light-high-contrast.json +390 -0
  10. package/tokens/base/color/light-tritanopia.json +92 -0
  11. package/tokens/base/color/light.json +399 -0
  12. package/tokens/functional/color/ansi-dark.json +74 -0
  13. package/tokens/functional/color/ansi-light.json +74 -0
  14. package/tokens/functional/color/checks-dark.json +289 -0
  15. package/tokens/functional/color/checks-light.json +296 -0
  16. package/tokens/functional/color/components-dark.json +556 -0
  17. package/tokens/functional/color/components-light.json +469 -0
  18. package/tokens/functional/color/diff-dark.json +78 -0
  19. package/tokens/functional/color/diff-light.json +76 -0
  20. package/tokens/functional/color/exceptions-dark-colorblind.json +45 -0
  21. package/tokens/functional/color/exceptions-dark-dimmed.json +12 -0
  22. package/tokens/functional/color/exceptions-dark-high-contrast.json +271 -0
  23. package/tokens/functional/color/exceptions-dark-tritanopia.json +44 -0
  24. package/tokens/functional/color/exceptions-light-colorblind.json +87 -0
  25. package/tokens/functional/color/exceptions-light-high-contrast.json +327 -0
  26. package/tokens/functional/color/exceptions-light-tritanopia.json +87 -0
  27. package/tokens/functional/color/marketing-dark.json +24 -0
  28. package/tokens/functional/color/marketing-light.json +24 -0
  29. package/tokens/functional/color/misc-dark.json +38 -0
  30. package/tokens/functional/color/misc-light.json +37 -0
  31. package/tokens/functional/color/primitives-dark.json +322 -0
  32. package/tokens/functional/color/primitives-light.json +313 -0
  33. package/tokens/functional/color/scales.json +582 -0
  34. package/tokens/functional/color/syntax-dark.json +208 -0
  35. package/tokens/functional/color/syntax-light.json +208 -0
  36. package/tokens/removed/color.json +421 -0
  37. package/tokens-v2-private/css/tokens/base/size/size.css +1 -1
  38. package/tokens-v2-private/css/tokens/base/typography/typography.css +1 -1
  39. package/tokens-v2-private/css/tokens/functional/size/border.css +1 -1
  40. package/tokens-v2-private/css/tokens/functional/size/breakpoints.css +1 -1
  41. package/tokens-v2-private/css/tokens/functional/size/size-coarse.css +1 -1
  42. package/tokens-v2-private/css/tokens/functional/size/size-fine.css +1 -1
  43. package/tokens-v2-private/css/tokens/functional/size/size.css +1 -1
  44. package/tokens-v2-private/css/tokens/functional/typography/typography.css +1 -1
  45. package/tokens-v2-private/js/module/tokens/base/size/size.js +1 -1
  46. package/tokens-v2-private/js/module/tokens/base/typography/typography.js +1 -1
  47. package/tokens-v2-private/js/module/tokens/functional/size/border.js +1 -1
  48. package/tokens-v2-private/js/module/tokens/functional/size/breakpoints.js +1 -1
  49. package/tokens-v2-private/js/module/tokens/functional/size/size-coarse.js +1 -1
  50. package/tokens-v2-private/js/module/tokens/functional/size/size-fine.js +1 -1
  51. package/tokens-v2-private/js/module/tokens/functional/size/size.js +1 -1
  52. package/tokens-v2-private/js/module/tokens/functional/size/viewport.js +1 -1
  53. package/tokens-v2-private/js/module/tokens/functional/typography/typography.js +1 -1
  54. package/tokens-v2-private/js/tokens/base/size/size.js +1 -1
  55. package/tokens-v2-private/js/tokens/base/typography/typography.js +1 -1
  56. package/tokens-v2-private/js/tokens/functional/size/border.js +1 -1
  57. package/tokens-v2-private/js/tokens/functional/size/breakpoints.js +1 -1
  58. package/tokens-v2-private/js/tokens/functional/size/size-coarse.js +1 -1
  59. package/tokens-v2-private/js/tokens/functional/size/size-fine.js +1 -1
  60. package/tokens-v2-private/js/tokens/functional/size/size.js +1 -1
  61. package/tokens-v2-private/js/tokens/functional/size/viewport.js +1 -1
  62. package/tokens-v2-private/js/tokens/functional/typography/typography.js +1 -1
  63. package/tokens-v2-private/scss/tokens/base/size/size.scss +1 -1
  64. package/tokens-v2-private/scss/tokens/base/typography/typography.scss +1 -1
  65. package/tokens-v2-private/scss/tokens/functional/size/border.scss +1 -1
  66. package/tokens-v2-private/scss/tokens/functional/size/breakpoints.scss +1 -1
  67. package/tokens-v2-private/scss/tokens/functional/size/size-coarse.scss +1 -1
  68. package/tokens-v2-private/scss/tokens/functional/size/size-fine.scss +1 -1
  69. package/tokens-v2-private/scss/tokens/functional/size/size.scss +1 -1
  70. package/tokens-v2-private/scss/tokens/functional/size/viewport.scss +1 -1
  71. package/tokens-v2-private/scss/tokens/functional/typography/typography.scss +1 -1
  72. package/tokens-v2-private/ts/tokens/base/size/size.d.ts +1 -1
  73. package/tokens-v2-private/ts/tokens/base/size/size.js +1 -1
  74. package/tokens-v2-private/ts/tokens/base/typography/typography.d.ts +1 -1
  75. package/tokens-v2-private/ts/tokens/base/typography/typography.js +1 -1
  76. package/tokens-v2-private/ts/tokens/functional/size/border.d.ts +1 -1
  77. package/tokens-v2-private/ts/tokens/functional/size/border.js +1 -1
  78. package/tokens-v2-private/ts/tokens/functional/size/breakpoints.d.ts +1 -1
  79. package/tokens-v2-private/ts/tokens/functional/size/breakpoints.js +1 -1
  80. package/tokens-v2-private/ts/tokens/functional/size/size-coarse.d.ts +1 -1
  81. package/tokens-v2-private/ts/tokens/functional/size/size-coarse.js +1 -1
  82. package/tokens-v2-private/ts/tokens/functional/size/size-fine.d.ts +1 -1
  83. package/tokens-v2-private/ts/tokens/functional/size/size-fine.js +1 -1
  84. package/tokens-v2-private/ts/tokens/functional/size/size.d.ts +1 -1
  85. package/tokens-v2-private/ts/tokens/functional/size/size.js +1 -1
  86. package/tokens-v2-private/ts/tokens/functional/size/viewport.d.ts +1 -1
  87. package/tokens-v2-private/ts/tokens/functional/size/viewport.js +1 -1
  88. package/tokens-v2-private/ts/tokens/functional/typography/typography.d.ts +1 -1
  89. package/tokens-v2-private/ts/tokens/functional/typography/typography.js +1 -1
@@ -0,0 +1,327 @@
1
+ {
2
+ "color": {
3
+ "fg": {
4
+ "muted": {
5
+ "$value": "{base.color.scale.gray.9}",
6
+ "$type": "color"
7
+ }
8
+ },
9
+ "canvas": {
10
+ "inset": {
11
+ "$value": "{base.color.scale.white}",
12
+ "$type": "color"
13
+ },
14
+ "subtle": {
15
+ "$value": "{base.color.scale.gray.1}",
16
+ "$type": "color"
17
+ }
18
+ },
19
+ "border": {
20
+ "default": {
21
+ "$value": "{base.color.scale.gray.8}",
22
+ "$type": "color"
23
+ },
24
+ "muted": {
25
+ "$value": "{base.color.scale.gray.4}",
26
+ "$type": "color"
27
+ },
28
+ "subtle": {
29
+ "$value": "{base.color.scale.black}",
30
+ "$type": "color",
31
+ "alpha": 0.8
32
+ }
33
+ },
34
+ "neutral": {
35
+ "subtle": {
36
+ "$value": "{base.color.scale.gray.1}",
37
+ "$type": "color"
38
+ }
39
+ },
40
+ "accent": {
41
+ "muted": {
42
+ "$value": "{base.color.scale.blue.3}",
43
+ "$type": "color"
44
+ }
45
+ },
46
+ "success": {
47
+ "emphasis": {
48
+ "$value": "{base.color.scale.green.5}",
49
+ "$type": "color"
50
+ },
51
+ "muted": {
52
+ "$value": "{base.color.scale.green.3}",
53
+ "$type": "color"
54
+ }
55
+ },
56
+ "attention": {
57
+ "emphasis": {
58
+ "$value": "{base.color.scale.yellow.5}",
59
+ "$type": "color"
60
+ },
61
+ "muted": {
62
+ "$value": "{base.color.scale.yellow.3}",
63
+ "$type": "color"
64
+ }
65
+ },
66
+ "severe": {
67
+ "muted": {
68
+ "$value": "{base.color.scale.orange.3}",
69
+ "$type": "color"
70
+ }
71
+ },
72
+ "danger": {
73
+ "muted": {
74
+ "$value": "{base.color.scale.red.3}",
75
+ "$type": "color"
76
+ }
77
+ },
78
+ "done": {
79
+ "muted": {
80
+ "$value": "{base.color.scale.purple.3}",
81
+ "$type": "color"
82
+ }
83
+ },
84
+ "sponsors": {
85
+ "muted": {
86
+ "$value": "{base.color.scale.pink.3}",
87
+ "$type": "color"
88
+ }
89
+ },
90
+ "topicTag": {
91
+ "border": {
92
+ "$value": "{color.accent.emphasis}",
93
+ "$type": "color"
94
+ }
95
+ },
96
+ "counter": {
97
+ "border": {
98
+ "$value": "{color.border.default}",
99
+ "$type": "color"
100
+ }
101
+ },
102
+ "btn": {
103
+ "bg": {
104
+ "$value": "{base.color.scale.gray.1}",
105
+ "$type": "color"
106
+ },
107
+ "border": {
108
+ "$value": "{color.border.subtle}",
109
+ "$type": "color"
110
+ },
111
+ "hover": {
112
+ "bg": {
113
+ "$value": "{base.color.scale.gray.2}",
114
+ "$type": "color"
115
+ }
116
+ },
117
+ "activeBg": {
118
+ "$value": "{base.color.scale.gray.3}",
119
+ "$type": "color"
120
+ },
121
+ "selectedBg": {
122
+ "$value": "{base.color.scale.gray.3}",
123
+ "$type": "color"
124
+ },
125
+ "focusBg": {
126
+ "$value": "{base.color.scale.gray.2}",
127
+ "$type": "color"
128
+ },
129
+ "primary": {
130
+ "bg": {
131
+ "$value": "{color.success.emphasis}",
132
+ "$type": "color"
133
+ },
134
+ "border": {
135
+ "$value": "{base.color.scale.green.7}",
136
+ "$type": "color"
137
+ },
138
+ "hoverBg": {
139
+ "$value": "{base.color.scale.green.6}",
140
+ "$type": "color"
141
+ },
142
+ "hoverBorder": {
143
+ "$value": "{base.color.scale.green.7}",
144
+ "$type": "color"
145
+ },
146
+ "focusBg": {
147
+ "$value": "{base.color.scale.green.7}",
148
+ "$type": "color"
149
+ },
150
+ "focusBorder": {
151
+ "$value": "{base.color.scale.green.7}",
152
+ "$type": "color"
153
+ }
154
+ },
155
+ "outline": {
156
+ "text": {
157
+ "$value": "{base.color.scale.blue.6}",
158
+ "$type": "color"
159
+ },
160
+ "hoverBg": {
161
+ "$value": "{color.accent.emphasis}",
162
+ "$type": "color"
163
+ },
164
+ "hoverBorder": {
165
+ "$value": "{base.color.scale.blue.7}",
166
+ "$type": "color"
167
+ },
168
+ "selectedBg": {
169
+ "$value": "{base.color.scale.blue.7}",
170
+ "$type": "color"
171
+ },
172
+ "selectedBorder": {
173
+ "$value": "{base.color.scale.blue.7}",
174
+ "$type": "color"
175
+ },
176
+ "focusBorder": {
177
+ "$value": "{base.color.scale.blue.7}",
178
+ "$type": "color"
179
+ },
180
+ "disabledText": {
181
+ "$value": "{base.color.scale.blue.5}",
182
+ "$type": "color",
183
+ "alpha": 0.5
184
+ },
185
+ "disabledBg": {
186
+ "$value": "{base.color.scale.gray.1}",
187
+ "$type": "color"
188
+ }
189
+ },
190
+ "danger": {
191
+ "text": {
192
+ "$value": "{base.color.scale.red.6}",
193
+ "$type": "color"
194
+ },
195
+ "hoverBg": {
196
+ "$value": "{color.danger.emphasis}",
197
+ "$type": "color"
198
+ },
199
+ "hoverBorder": {
200
+ "$value": "{base.color.scale.red.7}",
201
+ "$type": "color"
202
+ },
203
+ "selectedBg": {
204
+ "$value": "{base.color.scale.red.7}",
205
+ "$type": "color"
206
+ },
207
+ "selectedBorder": {
208
+ "$value": "{base.color.scale.red.7}",
209
+ "$type": "color"
210
+ },
211
+ "focusBorder": {
212
+ "$value": "{base.color.scale.red.7}",
213
+ "$type": "color"
214
+ },
215
+ "disabledBg": {
216
+ "$value": "{base.color.scale.gray.1}",
217
+ "$type": "color"
218
+ },
219
+ "icon": {
220
+ "$value": "{base.color.scale.red.6}",
221
+ "$type": "color"
222
+ }
223
+ }
224
+ },
225
+ "diffBlob": {
226
+ "addition": {
227
+ "fg": {
228
+ "$value": "{color.fg.onEmphasis}",
229
+ "$type": "color"
230
+ },
231
+ "wordBg": {
232
+ "$value": "{color.success.emphasis}",
233
+ "$type": "color"
234
+ }
235
+ },
236
+ "deletion": {
237
+ "fg": {
238
+ "$value": "{color.fg.onEmphasis}",
239
+ "$type": "color"
240
+ },
241
+ "wordBg": {
242
+ "$value": "{color.danger.emphasis}",
243
+ "$type": "color"
244
+ }
245
+ },
246
+ "hunk": {
247
+ "numBg": {
248
+ "$value": "{base.color.scale.blue.1}",
249
+ "$type": "color"
250
+ }
251
+ }
252
+ },
253
+ "header": {
254
+ "divider": {
255
+ "$value": "{base.color.scale.gray.3}",
256
+ "$type": "color"
257
+ }
258
+ },
259
+ "actionListItem": {
260
+ "inlineDivider": {
261
+ "$value": "{color.border.muted}",
262
+ "$type": "color"
263
+ },
264
+ "default": {
265
+ "hoverBg": {
266
+ "$value": "{base.color.scale.gray.1}",
267
+ "$type": "color"
268
+ },
269
+ "hoverBorder": {
270
+ "$value": "{color.border.muted}",
271
+ "$type": "color"
272
+ },
273
+ "activeBg": {
274
+ "$value": "{base.color.scale.gray.2}",
275
+ "$type": "color"
276
+ },
277
+ "activeBorder": {
278
+ "$value": "{color.border.default}",
279
+ "$type": "color"
280
+ },
281
+ "selectedBg": {
282
+ "$value": "{base.color.scale.gray.2}",
283
+ "$type": "color"
284
+ }
285
+ },
286
+ "danger": {
287
+ "hoverBg": {
288
+ "$value": "{color.danger.emphasis}",
289
+ "$type": "color"
290
+ },
291
+ "activeBg": {
292
+ "$value": "{base.color.scale.red.7}",
293
+ "$type": "color"
294
+ },
295
+ "hoverText": {
296
+ "$value": "{color.fg.onEmphasis}",
297
+ "$type": "color"
298
+ }
299
+ }
300
+ },
301
+ "page": {
302
+ "header": {
303
+ "bg": {
304
+ "$value": "{color.canvas.default}",
305
+ "$type": "color"
306
+ }
307
+ }
308
+ },
309
+ "switchTrack": {
310
+ "bg": {
311
+ "$value": "{base.color.scale.white}",
312
+ "$type": "color"
313
+ },
314
+ "border": {
315
+ "$value": "{color.border.default}",
316
+ "$type": "color"
317
+ },
318
+
319
+ "checked": {
320
+ "border": {
321
+ "$value": "{base.color.scale.blue.5}",
322
+ "$type": "color"
323
+ }
324
+ }
325
+ }
326
+ }
327
+ }
@@ -0,0 +1,87 @@
1
+ {
2
+ "color": {
3
+ "open": {
4
+ "fg": {
5
+ "$value": "{base.color.scale.orange.5}",
6
+ "$type": "color"
7
+ },
8
+ "emphasis": {
9
+ "$value": "{base.color.scale.orange.4}",
10
+ "$type": "color"
11
+ },
12
+ "muted": {
13
+ "$value": "{base.color.scale.orange.3}",
14
+ "$type": "color",
15
+ "alpha": 0.4
16
+ },
17
+ "subtle": {
18
+ "$value": "{base.color.scale.orange.0}",
19
+ "$type": "color"
20
+ }
21
+ },
22
+ "closed": {
23
+ "fg": {
24
+ "$value": "{base.color.scale.gray.5}",
25
+ "$type": "color"
26
+ },
27
+ "emphasis": {
28
+ "$value": "{base.color.scale.gray.5}",
29
+ "$type": "color"
30
+ },
31
+ "muted": {
32
+ "$value": "{base.color.scale.gray.3}",
33
+ "$type": "color",
34
+ "alpha": 0.4
35
+ },
36
+ "subtle": {
37
+ "$value": "{base.color.scale.gray.0}",
38
+ "$type": "color"
39
+ }
40
+ },
41
+ "diffBlob": {
42
+ "addition": {
43
+ "numBg": {
44
+ "$value": "{color.success.muted}",
45
+ "$type": "color"
46
+ },
47
+ "lineBg": {
48
+ "$value": "{base.color.scale.green.0}",
49
+ "$type": "color",
50
+ "alpha": 0.5
51
+ },
52
+ "wordBg": {
53
+ "$value": "{color.success.muted}",
54
+ "$type": "color"
55
+ }
56
+ },
57
+ "deletion": {
58
+ "numBg": {
59
+ "$value": "{color.danger.muted}",
60
+ "$type": "color"
61
+ },
62
+ "lineBg": {
63
+ "$value": "{base.color.scale.red.0}",
64
+ "$type": "color",
65
+ "alpha": 0.5
66
+ },
67
+ "wordBg": {
68
+ "$value": "{base.color.scale.red.2}",
69
+ "$type": "color",
70
+ "alpha": 0.5
71
+ }
72
+ }
73
+ },
74
+ "btn": {
75
+ "primary": {
76
+ "hoverBg": {
77
+ "$value": "{base.color.scale.green.5}",
78
+ "$type": "color"
79
+ },
80
+ "disabledBg": {
81
+ "$value": "{base.color.scale.green.2}",
82
+ "$type": "color"
83
+ }
84
+ }
85
+ }
86
+ }
87
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "color": {
3
+ "mktg": {
4
+ "btn": {
5
+ "bg": {
6
+ "$value": "#f6f8fa",
7
+ "$type": "color"
8
+ }
9
+ }
10
+ },
11
+ "marketing": {
12
+ "icon": {
13
+ "primary": {
14
+ "$value": "{base.color.scale.blue.2}",
15
+ "$type": "color"
16
+ },
17
+ "secondary": {
18
+ "$value": "{base.color.scale.blue.5}",
19
+ "$type": "color"
20
+ }
21
+ }
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "color": {
3
+ "mktg": {
4
+ "btn": {
5
+ "bg": {
6
+ "$value": "#1b1f23",
7
+ "$type": "color"
8
+ }
9
+ }
10
+ },
11
+ "marketing": {
12
+ "icon": {
13
+ "primary": {
14
+ "$value": "{base.color.scale.blue.4}",
15
+ "$type": "color"
16
+ },
17
+ "secondary": {
18
+ "$value": "{base.color.scale.blue.3}",
19
+ "$type": "color"
20
+ }
21
+ }
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "color": {
3
+ "page": {
4
+ "header": {
5
+ "bg": {
6
+ "$value": "{color.canvas.default}",
7
+ "$type": "color"
8
+ }
9
+ }
10
+ },
11
+ "searchKeyword": {
12
+ "hl": {
13
+ "$value": "{base.color.scale.yellow.3}",
14
+ "$type": "color",
15
+ "alpha": 0.4
16
+ }
17
+ },
18
+ "project": {
19
+ "headerBg": {
20
+ "$value": "{base.color.scale.gray.9}",
21
+ "$type": "color"
22
+ },
23
+ "sidebarBg": {
24
+ "$value": "{base.color.scale.gray.8}",
25
+ "$type": "color"
26
+ },
27
+ "gradientIn": {
28
+ "$value": "{base.color.scale.gray.8}",
29
+ "$type": "color"
30
+ },
31
+ "gradientOut": {
32
+ "$value": "{base.color.scale.gray.8}",
33
+ "$type": "color",
34
+ "alpha": 0
35
+ }
36
+ }
37
+ }
38
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "color": {
3
+ "page": {
4
+ "header": {
5
+ "bg": {
6
+ "$value": "{color.canvas.subtle}",
7
+ "$type": "color"
8
+ }
9
+ }
10
+ },
11
+ "searchKeyword": {
12
+ "hl": {
13
+ "$value": "{base.color.scale.yellow.0}",
14
+ "$type": "color"
15
+ }
16
+ },
17
+ "project": {
18
+ "headerBg": {
19
+ "$value": "{base.color.scale.gray.9}",
20
+ "$type": "color"
21
+ },
22
+ "sidebarBg": {
23
+ "$value": "{base.color.scale.white}",
24
+ "$type": "color"
25
+ },
26
+ "gradientIn": {
27
+ "$value": "{base.color.scale.white}",
28
+ "$type": "color"
29
+ },
30
+ "gradientOut": {
31
+ "$value": "{base.color.scale.white}",
32
+ "$type": "color",
33
+ "alpha": 0
34
+ }
35
+ }
36
+ }
37
+ }