@primer/primitives 7.6.0 → 7.8.0-rc.b3d89b6

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 (58) hide show
  1. package/CHANGELOG.md +15 -1
  2. package/README.md +2 -2
  3. package/dist/js/colors/dark_tritanopia.d.ts +479 -0
  4. package/dist/js/colors/dark_tritanopia.js +579 -0
  5. package/dist/js/colors/index.d.ts +959 -3
  6. package/dist/js/colors/index.js +3 -1
  7. package/dist/js/colors/light_tritanopia.d.ts +479 -0
  8. package/dist/js/colors/light_tritanopia.js +579 -0
  9. package/dist/js/index.d.ts +959 -3
  10. package/dist/json/colors/dark_tritanopia.json +577 -0
  11. package/dist/json/colors/light_tritanopia.json +577 -0
  12. package/dist/scss/colors/_dark_tritanopia.scss +437 -0
  13. package/dist/scss/colors/_light_tritanopia.scss +437 -0
  14. package/dist/ts/colors/dark_tritanopia.ts +577 -0
  15. package/dist/ts/colors/index.ts +3 -1
  16. package/dist/ts/colors/light_tritanopia.ts +577 -0
  17. package/package.json +14 -8
  18. package/tokens-v2-private/css/tokens/base/size/size.css +24 -0
  19. package/tokens-v2-private/css/tokens/base/typography/typography.css +11 -0
  20. package/tokens-v2-private/css/tokens/functional/size/border.css +17 -0
  21. package/tokens-v2-private/css/tokens/functional/size/breakpoints.css +13 -0
  22. package/tokens-v2-private/css/tokens/functional/size/size-fine.css +10 -0
  23. package/tokens-v2-private/css/tokens/functional/size/size.css +54 -0
  24. package/tokens-v2-private/css/tokens/functional/size/viewport.css +6 -0
  25. package/tokens-v2-private/css/tokens/functional/typography/typography.css +47 -0
  26. package/tokens-v2-private/docs/docValues.json +2210 -0
  27. package/tokens-v2-private/js/module/tokens/base/size/size.js +266 -0
  28. package/tokens-v2-private/js/module/tokens/base/typography/typography.js +77 -0
  29. package/tokens-v2-private/js/module/tokens/functional/size/border.js +165 -0
  30. package/tokens-v2-private/js/module/tokens/functional/size/breakpoints.js +101 -0
  31. package/tokens-v2-private/js/module/tokens/functional/size/size-fine.js +73 -0
  32. package/tokens-v2-private/js/module/tokens/functional/size/size.js +824 -0
  33. package/tokens-v2-private/js/module/tokens/functional/size/viewport.js +101 -0
  34. package/tokens-v2-private/js/module/tokens/functional/typography/typography.js +811 -0
  35. package/tokens-v2-private/js/tokens/base/size/size.js +22 -0
  36. package/tokens-v2-private/js/tokens/base/typography/typography.js +9 -0
  37. package/tokens-v2-private/js/tokens/functional/size/border.js +15 -0
  38. package/tokens-v2-private/js/tokens/functional/size/breakpoints.js +11 -0
  39. package/tokens-v2-private/js/tokens/functional/size/size-fine.js +8 -0
  40. package/tokens-v2-private/js/tokens/functional/size/size.js +52 -0
  41. package/tokens-v2-private/js/tokens/functional/size/viewport.js +11 -0
  42. package/tokens-v2-private/js/tokens/functional/typography/typography.js +45 -0
  43. package/tokens-v2-private/ts/tokens/base/size/size.d.ts +29 -0
  44. package/tokens-v2-private/ts/tokens/base/size/size.js +28 -0
  45. package/tokens-v2-private/ts/tokens/base/typography/typography.d.ts +18 -0
  46. package/tokens-v2-private/ts/tokens/base/typography/typography.js +17 -0
  47. package/tokens-v2-private/ts/tokens/functional/size/border.d.ts +26 -0
  48. package/tokens-v2-private/ts/tokens/functional/size/border.js +25 -0
  49. package/tokens-v2-private/ts/tokens/functional/size/breakpoints.d.ts +18 -0
  50. package/tokens-v2-private/ts/tokens/functional/size/breakpoints.js +17 -0
  51. package/tokens-v2-private/ts/tokens/functional/size/size-fine.d.ts +27 -0
  52. package/tokens-v2-private/ts/tokens/functional/size/size-fine.js +26 -0
  53. package/tokens-v2-private/ts/tokens/functional/size/size.d.ts +101 -0
  54. package/tokens-v2-private/ts/tokens/functional/size/size.js +100 -0
  55. package/tokens-v2-private/ts/tokens/functional/size/viewport.d.ts +18 -0
  56. package/tokens-v2-private/ts/tokens/functional/size/viewport.js +17 -0
  57. package/tokens-v2-private/ts/tokens/functional/typography/typography.d.ts +130 -0
  58. package/tokens-v2-private/ts/tokens/functional/typography/typography.js +129 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @primer/primitives
2
2
 
3
+ ## 7.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#317](https://github.com/primer/primitives/pull/317) [`45359ea`](https://github.com/primer/primitives/commit/45359eab4613edacfad331858128f187a01ce49c) Thanks [@langermank](https://github.com/langermank)! - - Initial design tokens release for interal Primer team use only
8
+ - Private docs that can be accessed at /typography and /size
9
+ - Separate dist for testing purposes only
10
+
11
+ ## 7.7.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [#310](https://github.com/primer/primitives/pull/310) [`3a72849`](https://github.com/primer/primitives/commit/3a728498f352f737b8d257d1f70bd7d40e39d8db) Thanks [@simurai](https://github.com/simurai)! - Add Tritanopia theme
16
+
3
17
  ## 7.6.0
4
18
 
5
19
  ### Minor Changes
@@ -286,7 +300,7 @@
286
300
  Each JSON file in the `deprecations` directory contains a mapping of deprecated variables to replacement variables. Example:
287
301
 
288
302
  ```js
289
- // dist/decprecations/colors.json
303
+ // dist/deprecations/colors.json
290
304
  {
291
305
  "text.primary": "fg.default", // this means: `text.primary` is deprecated. Use `fg.default` instead
292
306
  "auto.blue.4": ["accent.fg, accent.emphasis"], // this means: `auto.blue.4` is deprecated. Use `accent.fg` or `accent.emphasis` instead
package/README.md CHANGED
@@ -25,7 +25,7 @@ Primitive data is served in several formats from the `dist/` folder:
25
25
 
26
26
  ## Deprecating variables
27
27
 
28
- To deprecate a variable, define a mapping from the deprecated variable to its replacement(s) in a file called `deprecated.json` in the approriate subdirectory of `data`:
28
+ To deprecate a variable, define a mapping from the deprecated variable to its replacement(s) in a file called `deprecated.json` in the appropriate subdirectory of `data`:
29
29
 
30
30
  ```diff
31
31
  data/
@@ -46,7 +46,7 @@ To deprecate a variable, define a mapping from the deprecated variable to its re
46
46
  }
47
47
  ```
48
48
 
49
- During the build process, the `deprecated.json` files will be added to a `dist/deprected` directory organized by variable category:
49
+ During the build process, the `deprecated.json` files will be added to a `dist/deprecated` directory organized by variable category:
50
50
 
51
51
  ```diff
52
52
  dist/
@@ -0,0 +1,479 @@
1
+ declare const _default: {
2
+ canvasDefaultTransparent: string;
3
+ pageHeaderBg: string;
4
+ marketingIcon: {
5
+ primary: string;
6
+ secondary: string;
7
+ };
8
+ diffBlob: {
9
+ addition: {
10
+ numText: string;
11
+ fg: string;
12
+ numBg: string;
13
+ lineBg: string;
14
+ wordBg: string;
15
+ };
16
+ deletion: {
17
+ numText: string;
18
+ fg: string;
19
+ numBg: string;
20
+ lineBg: string;
21
+ wordBg: string;
22
+ };
23
+ hunk: {
24
+ numBg: string;
25
+ };
26
+ expander: {
27
+ icon: string;
28
+ };
29
+ selectedLineHighlightMixBlendMode: string;
30
+ };
31
+ diffstat: {
32
+ deletionBorder: string;
33
+ additionBorder: string;
34
+ additionBg: string;
35
+ };
36
+ searchKeyword: {
37
+ hl: string;
38
+ };
39
+ prettylights: {
40
+ syntax: {
41
+ comment: string;
42
+ constant: string;
43
+ entity: string;
44
+ storageModifierImport: string;
45
+ entityTag: string;
46
+ keyword: string;
47
+ string: string;
48
+ variable: string;
49
+ brackethighlighterUnmatched: string;
50
+ invalidIllegalText: string;
51
+ invalidIllegalBg: string;
52
+ carriageReturnText: string;
53
+ carriageReturnBg: string;
54
+ stringRegexp: string;
55
+ markupList: string;
56
+ markupHeading: string;
57
+ markupItalic: string;
58
+ markupBold: string;
59
+ markupDeletedText: string;
60
+ markupDeletedBg: string;
61
+ markupInsertedText: string;
62
+ markupInsertedBg: string;
63
+ markupChangedText: string;
64
+ markupChangedBg: string;
65
+ markupIgnoredText: string;
66
+ markupIgnoredBg: string;
67
+ metaDiffRange: string;
68
+ brackethighlighterAngle: string;
69
+ sublimelinterGutterMark: string;
70
+ constantOtherReferenceLink: string;
71
+ };
72
+ };
73
+ codemirror: {
74
+ text: string;
75
+ bg: string;
76
+ guttersBg: string;
77
+ guttermarkerText: string;
78
+ guttermarkerSubtleText: string;
79
+ linenumberText: string;
80
+ cursor: string;
81
+ selectionBg: string;
82
+ activelineBg: string;
83
+ matchingbracketText: string;
84
+ linesBg: string;
85
+ syntax: {
86
+ comment: string;
87
+ constant: string;
88
+ entity: string;
89
+ keyword: string;
90
+ storage: string;
91
+ string: string;
92
+ support: string;
93
+ variable: string;
94
+ };
95
+ };
96
+ checks: {
97
+ bg: string;
98
+ runBorderWidth: string;
99
+ containerBorderWidth: string;
100
+ textPrimary: string;
101
+ textSecondary: string;
102
+ textLink: string;
103
+ btnIcon: string;
104
+ btnHoverIcon: string;
105
+ btnHoverBg: string;
106
+ inputText: string;
107
+ inputPlaceholderText: string;
108
+ inputFocusText: string;
109
+ inputBg: string;
110
+ inputShadow: string;
111
+ donutError: string;
112
+ donutPending: string;
113
+ donutSuccess: string;
114
+ donutNeutral: string;
115
+ dropdownText: string;
116
+ dropdownBg: string;
117
+ dropdownBorder: string;
118
+ dropdownShadow: string;
119
+ dropdownHoverText: string;
120
+ dropdownHoverBg: string;
121
+ dropdownBtnHoverText: string;
122
+ dropdownBtnHoverBg: string;
123
+ scrollbarThumbBg: string;
124
+ headerLabelText: string;
125
+ headerLabelOpenText: string;
126
+ headerBorder: string;
127
+ headerIcon: string;
128
+ lineText: string;
129
+ lineNumText: string;
130
+ lineTimestampText: string;
131
+ lineHoverBg: string;
132
+ lineSelectedBg: string;
133
+ lineSelectedNumText: string;
134
+ lineDtFmText: string;
135
+ lineDtFmBg: string;
136
+ gateBg: string;
137
+ gateText: string;
138
+ gateWaitingText: string;
139
+ stepHeaderOpenBg: string;
140
+ stepErrorText: string;
141
+ stepWarningText: string;
142
+ loglineText: string;
143
+ loglineNumText: string;
144
+ loglineDebugText: string;
145
+ loglineErrorText: string;
146
+ loglineErrorNumText: string;
147
+ loglineErrorBg: string;
148
+ loglineWarningText: string;
149
+ loglineWarningNumText: string;
150
+ loglineWarningBg: string;
151
+ loglineCommandText: string;
152
+ loglineSectionText: string;
153
+ ansi: {
154
+ black: string;
155
+ blackBright: string;
156
+ white: string;
157
+ whiteBright: string;
158
+ gray: string;
159
+ red: string;
160
+ redBright: string;
161
+ green: string;
162
+ greenBright: string;
163
+ yellow: string;
164
+ yellowBright: string;
165
+ blue: string;
166
+ blueBright: string;
167
+ magenta: string;
168
+ magentaBright: string;
169
+ cyan: string;
170
+ cyanBright: string;
171
+ };
172
+ };
173
+ project: {
174
+ headerBg: string;
175
+ sidebarBg: string;
176
+ gradientIn: string;
177
+ gradientOut: string;
178
+ };
179
+ mktg: {
180
+ btn: {
181
+ bg: string;
182
+ shadow: {
183
+ outline: string;
184
+ focus: string;
185
+ hover: string;
186
+ hoverMuted: string;
187
+ };
188
+ };
189
+ };
190
+ avatar: {
191
+ bg: string;
192
+ border: string;
193
+ stackFade: string;
194
+ stackFadeMore: string;
195
+ childShadow: string;
196
+ };
197
+ topicTag: {
198
+ border: string;
199
+ };
200
+ counter: {
201
+ border: string;
202
+ };
203
+ selectMenu: {
204
+ backdropBorder: string;
205
+ tapHighlight: string;
206
+ tapFocusBg: string;
207
+ };
208
+ overlay: {
209
+ shadow: string;
210
+ };
211
+ header: {
212
+ text: string;
213
+ bg: string;
214
+ divider: string;
215
+ logo: string;
216
+ };
217
+ headerSearch: {
218
+ bg: string;
219
+ border: string;
220
+ };
221
+ sidenav: {
222
+ selectedBg: string;
223
+ };
224
+ menu: {
225
+ bgActive: string;
226
+ };
227
+ input: {
228
+ disabledBg: string;
229
+ };
230
+ timeline: {
231
+ badgeBg: string;
232
+ };
233
+ ansi: {
234
+ black: string;
235
+ blackBright: string;
236
+ white: string;
237
+ whiteBright: string;
238
+ gray: string;
239
+ red: string;
240
+ redBright: string;
241
+ green: string;
242
+ greenBright: string;
243
+ yellow: string;
244
+ yellowBright: string;
245
+ blue: string;
246
+ blueBright: string;
247
+ magenta: string;
248
+ magentaBright: string;
249
+ cyan: string;
250
+ cyanBright: string;
251
+ };
252
+ btn: {
253
+ text: string;
254
+ bg: string;
255
+ border: string;
256
+ shadow: string;
257
+ insetShadow: string;
258
+ hoverBg: string;
259
+ hoverBorder: string;
260
+ activeBg: string;
261
+ activeBorder: string;
262
+ selectedBg: string;
263
+ focusBg: string;
264
+ focusBorder: string;
265
+ focusShadow: string;
266
+ shadowActive: string;
267
+ shadowInputFocus: string;
268
+ counterBg: string;
269
+ primary: {
270
+ text: string;
271
+ bg: string;
272
+ border: string;
273
+ shadow: string;
274
+ insetShadow: string;
275
+ hoverBg: string;
276
+ hoverBorder: string;
277
+ selectedBg: string;
278
+ selectedShadow: string;
279
+ disabledText: string;
280
+ disabledBg: string;
281
+ disabledBorder: string;
282
+ focusBg: string;
283
+ focusBorder: string;
284
+ focusShadow: string;
285
+ icon: string;
286
+ counterBg: string;
287
+ };
288
+ outline: {
289
+ text: string;
290
+ hoverText: string;
291
+ hoverBg: string;
292
+ hoverBorder: string;
293
+ hoverShadow: string;
294
+ hoverInsetShadow: string;
295
+ hoverCounterBg: string;
296
+ selectedText: string;
297
+ selectedBg: string;
298
+ selectedBorder: string;
299
+ selectedShadow: string;
300
+ disabledText: string;
301
+ disabledBg: string;
302
+ disabledCounterBg: string;
303
+ focusBorder: string;
304
+ focusShadow: string;
305
+ counterBg: string;
306
+ };
307
+ danger: {
308
+ text: string;
309
+ hoverText: string;
310
+ hoverBg: string;
311
+ hoverBorder: string;
312
+ hoverShadow: string;
313
+ hoverInsetShadow: string;
314
+ hoverIcon: string;
315
+ hoverCounterBg: string;
316
+ selectedText: string;
317
+ selectedBg: string;
318
+ selectedBorder: string;
319
+ selectedShadow: string;
320
+ disabledText: string;
321
+ disabledBg: string;
322
+ disabledCounterBg: string;
323
+ focusBorder: string;
324
+ focusShadow: string;
325
+ counterBg: string;
326
+ icon: string;
327
+ };
328
+ };
329
+ underlinenav: {
330
+ icon: string;
331
+ borderHover: string;
332
+ };
333
+ actionListItem: {
334
+ inlineDivider: string;
335
+ default: {
336
+ hoverBg: string;
337
+ hoverBorder: string;
338
+ activeBg: string;
339
+ activeBorder: string;
340
+ selectedBg: string;
341
+ };
342
+ danger: {
343
+ hoverBg: string;
344
+ activeBg: string;
345
+ hoverText: string;
346
+ };
347
+ };
348
+ switchTrack: {
349
+ bg: string;
350
+ border: string;
351
+ checked: {
352
+ bg: string;
353
+ hoverBg: string;
354
+ activeBg: string;
355
+ border: string;
356
+ };
357
+ };
358
+ switchKnob: {
359
+ checked: {
360
+ bg: string;
361
+ disabledBg: string;
362
+ };
363
+ };
364
+ fg: {
365
+ default: string;
366
+ muted: string;
367
+ subtle: string;
368
+ onEmphasis: string;
369
+ };
370
+ canvas: {
371
+ default: string;
372
+ overlay: string;
373
+ inset: string;
374
+ subtle: string;
375
+ };
376
+ border: {
377
+ default: string;
378
+ muted: string;
379
+ subtle: string;
380
+ };
381
+ shadow: {
382
+ small: string;
383
+ medium: string;
384
+ large: string;
385
+ extraLarge: string;
386
+ };
387
+ neutral: {
388
+ emphasisPlus: string;
389
+ emphasis: string;
390
+ muted: string;
391
+ subtle: string;
392
+ };
393
+ accent: {
394
+ fg: string;
395
+ emphasis: string;
396
+ muted: string;
397
+ subtle: string;
398
+ };
399
+ success: {
400
+ fg: string;
401
+ emphasis: string;
402
+ muted: string;
403
+ subtle: string;
404
+ };
405
+ attention: {
406
+ fg: string;
407
+ emphasis: string;
408
+ muted: string;
409
+ subtle: string;
410
+ };
411
+ severe: {
412
+ fg: string;
413
+ emphasis: string;
414
+ muted: string;
415
+ subtle: string;
416
+ };
417
+ danger: {
418
+ fg: string;
419
+ emphasis: string;
420
+ muted: string;
421
+ subtle: string;
422
+ };
423
+ open: {
424
+ fg: string;
425
+ emphasis: string;
426
+ muted: string;
427
+ subtle: string;
428
+ };
429
+ closed: {
430
+ fg: string;
431
+ emphasis: string;
432
+ muted: string;
433
+ subtle: string;
434
+ };
435
+ done: {
436
+ fg: string;
437
+ emphasis: string;
438
+ muted: string;
439
+ subtle: string;
440
+ };
441
+ sponsors: {
442
+ fg: string;
443
+ emphasis: string;
444
+ muted: string;
445
+ subtle: string;
446
+ };
447
+ primer: {
448
+ fg: {
449
+ disabled: string;
450
+ };
451
+ canvas: {
452
+ backdrop: string;
453
+ sticky: string;
454
+ };
455
+ border: {
456
+ active: string;
457
+ contrast: string;
458
+ };
459
+ shadow: {
460
+ highlight: string;
461
+ inset: string;
462
+ focus: string;
463
+ };
464
+ };
465
+ scale: {
466
+ black: string;
467
+ white: string;
468
+ gray: string[];
469
+ blue: string[];
470
+ green: string[];
471
+ yellow: string[];
472
+ orange: string[];
473
+ red: string[];
474
+ purple: string[];
475
+ pink: string[];
476
+ coral: string[];
477
+ };
478
+ };
479
+ export default _default;