@atlaskit/tokens 0.6.3 → 0.7.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 (53) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/css/atlassian-dark.css +43 -3
  3. package/css/atlassian-light.css +40 -0
  4. package/dist/cjs/artifacts/rename-mapping.js +77 -13
  5. package/dist/cjs/artifacts/token-default-values.js +40 -0
  6. package/dist/cjs/artifacts/token-names.js +40 -0
  7. package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +936 -144
  8. package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +922 -130
  9. package/dist/cjs/figma/synchronize-figma-tokens.js +34 -9
  10. package/dist/cjs/get-token.js +1 -1
  11. package/dist/cjs/tokens/atlassian-dark/color/accent.js +120 -32
  12. package/dist/cjs/tokens/atlassian-dark/deprecated/deprecated.js +69 -3
  13. package/dist/cjs/tokens/atlassian-light/color/accent.js +112 -24
  14. package/dist/cjs/tokens/atlassian-light/deprecated/deprecated.js +66 -0
  15. package/dist/cjs/tokens/default/color/accent.js +234 -50
  16. package/dist/cjs/tokens/default/deprecated/deprecated.js +159 -13
  17. package/dist/cjs/version.json +1 -1
  18. package/dist/es2019/artifacts/rename-mapping.js +77 -13
  19. package/dist/es2019/artifacts/token-default-values.js +40 -0
  20. package/dist/es2019/artifacts/token-names.js +40 -0
  21. package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +936 -144
  22. package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +922 -130
  23. package/dist/es2019/figma/synchronize-figma-tokens.js +32 -9
  24. package/dist/es2019/get-token.js +1 -1
  25. package/dist/es2019/tokens/atlassian-dark/color/accent.js +120 -32
  26. package/dist/es2019/tokens/atlassian-dark/deprecated/deprecated.js +69 -3
  27. package/dist/es2019/tokens/atlassian-light/color/accent.js +112 -24
  28. package/dist/es2019/tokens/atlassian-light/deprecated/deprecated.js +66 -0
  29. package/dist/es2019/tokens/default/color/accent.js +234 -50
  30. package/dist/es2019/tokens/default/deprecated/deprecated.js +159 -13
  31. package/dist/es2019/version.json +1 -1
  32. package/dist/esm/artifacts/rename-mapping.js +77 -13
  33. package/dist/esm/artifacts/token-default-values.js +40 -0
  34. package/dist/esm/artifacts/token-names.js +40 -0
  35. package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +936 -144
  36. package/dist/esm/artifacts/tokens-raw/atlassian-light.js +922 -130
  37. package/dist/esm/figma/synchronize-figma-tokens.js +34 -9
  38. package/dist/esm/get-token.js +1 -1
  39. package/dist/esm/tokens/atlassian-dark/color/accent.js +120 -32
  40. package/dist/esm/tokens/atlassian-dark/deprecated/deprecated.js +69 -3
  41. package/dist/esm/tokens/atlassian-light/color/accent.js +112 -24
  42. package/dist/esm/tokens/atlassian-light/deprecated/deprecated.js +66 -0
  43. package/dist/esm/tokens/default/color/accent.js +234 -50
  44. package/dist/esm/tokens/default/deprecated/deprecated.js +159 -13
  45. package/dist/esm/version.json +1 -1
  46. package/dist/types/artifacts/token-default-values.d.ts +40 -0
  47. package/dist/types/artifacts/token-names.d.ts +80 -0
  48. package/dist/types/artifacts/types-internal.d.ts +1 -1
  49. package/dist/types/artifacts/types.d.ts +1 -1
  50. package/dist/types/figma/synchronize-figma-tokens.d.ts +9 -1
  51. package/dist/types/tokens/default/utility/utility.d.ts +10 -10
  52. package/dist/types/types.d.ts +98 -24
  53. package/package.json +1 -1
@@ -9,59 +9,131 @@ var color = {
9
9
  text: {
10
10
  accent: {
11
11
  blue: {
12
- attributes: {
13
- group: 'paint',
14
- state: 'active',
15
- description: 'Use for blue text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags.'
12
+ '[default]': {
13
+ attributes: {
14
+ group: 'paint',
15
+ state: 'active',
16
+ description: 'Use for blue text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags.'
17
+ }
18
+ },
19
+ bolder: {
20
+ attributes: {
21
+ group: 'paint',
22
+ state: 'active',
23
+ description: 'Use on bold blue accent backgrounds.'
24
+ }
16
25
  }
17
26
  },
18
27
  red: {
19
- attributes: {
20
- group: 'paint',
21
- state: 'active',
22
- description: 'Use for red text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags.'
28
+ '[default]': {
29
+ attributes: {
30
+ group: 'paint',
31
+ state: 'active',
32
+ description: 'Use for red text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags.'
33
+ }
34
+ },
35
+ bolder: {
36
+ attributes: {
37
+ group: 'paint',
38
+ state: 'active',
39
+ description: 'Use on bold red accent backgrounds.'
40
+ }
23
41
  }
24
42
  },
25
43
  orange: {
26
- attributes: {
27
- group: 'paint',
28
- state: 'active',
29
- description: 'Use for orange text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags.'
44
+ '[default]': {
45
+ attributes: {
46
+ group: 'paint',
47
+ state: 'active',
48
+ description: 'Use for orange text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags.'
49
+ }
50
+ },
51
+ bolder: {
52
+ attributes: {
53
+ group: 'paint',
54
+ state: 'active',
55
+ description: 'Use on bold orange accent backgrounds.'
56
+ }
30
57
  }
31
58
  },
32
59
  yellow: {
33
- attributes: {
34
- group: 'paint',
35
- state: 'active',
36
- description: 'Use for yellow text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags.'
60
+ '[default]': {
61
+ attributes: {
62
+ group: 'paint',
63
+ state: 'active',
64
+ description: 'Use for yellow text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags.'
65
+ }
66
+ },
67
+ bolder: {
68
+ attributes: {
69
+ group: 'paint',
70
+ state: 'active',
71
+ description: 'Use on bold yellow accent backgrounds.'
72
+ }
37
73
  }
38
74
  },
39
75
  green: {
40
- attributes: {
41
- group: 'paint',
42
- state: 'active',
43
- description: 'Use for green text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags.'
76
+ '[default]': {
77
+ attributes: {
78
+ group: 'paint',
79
+ state: 'active',
80
+ description: 'Use for green text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags.'
81
+ }
82
+ },
83
+ bolder: {
84
+ attributes: {
85
+ group: 'paint',
86
+ state: 'active',
87
+ description: 'Use on bold green accent backgrounds.'
88
+ }
44
89
  }
45
90
  },
46
91
  purple: {
47
- attributes: {
48
- group: 'paint',
49
- state: 'active',
50
- description: 'Use for purple text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags.'
92
+ '[default]': {
93
+ attributes: {
94
+ group: 'paint',
95
+ state: 'active',
96
+ description: 'Use for purple text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags.'
97
+ }
98
+ },
99
+ bolder: {
100
+ attributes: {
101
+ group: 'paint',
102
+ state: 'active',
103
+ description: 'Use on bold purple accent backgrounds.'
104
+ }
51
105
  }
52
106
  },
53
107
  teal: {
54
- attributes: {
55
- group: 'paint',
56
- state: 'active',
57
- description: 'Use for teal text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags.'
108
+ '[default]': {
109
+ attributes: {
110
+ group: 'paint',
111
+ state: 'active',
112
+ description: 'Use for teal text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags.'
113
+ }
114
+ },
115
+ bolder: {
116
+ attributes: {
117
+ group: 'paint',
118
+ state: 'active',
119
+ description: 'Use on bold teal accent backgrounds.'
120
+ }
58
121
  }
59
122
  },
60
123
  magenta: {
61
- attributes: {
62
- group: 'paint',
63
- state: 'active',
64
- description: 'Use for megenta text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags.'
124
+ '[default]': {
125
+ attributes: {
126
+ group: 'paint',
127
+ state: 'active',
128
+ description: 'Use for megenta text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags.'
129
+ }
130
+ },
131
+ bolder: {
132
+ attributes: {
133
+ group: 'paint',
134
+ state: 'active',
135
+ description: 'Use on bold magenta accent backgrounds.'
136
+ }
65
137
  }
66
138
  }
67
139
  }
@@ -132,14 +204,14 @@ var color = {
132
204
  attributes: {
133
205
  group: 'paint',
134
206
  state: 'active',
135
- description: 'Use for blue borders on non-bold backgrounds when there is no meaning tied to the color, such as file type icons.'
207
+ description: 'Use for blue borders on non-bold backgrounds when there is no meaning tied to the color.'
136
208
  }
137
209
  },
138
210
  red: {
139
211
  attributes: {
140
212
  group: 'paint',
141
213
  state: 'active',
142
- description: 'Use for red borders on non-bold backgrounds when there is no meaning tied to the color, such as file type icons.'
214
+ description: 'Use for red borders on non-bold backgrounds when there is no meaning tied to the color.'
143
215
  }
144
216
  },
145
217
  orange: {
@@ -189,131 +261,243 @@ var color = {
189
261
  background: {
190
262
  accent: {
191
263
  blue: {
192
- '[default]': {
264
+ subtlest: {
265
+ attributes: {
266
+ group: 'paint',
267
+ state: 'active',
268
+ description: 'Use for blue backgrounds when there is no meaning tied to the color. Reserved for when you only want a hint of color.'
269
+ }
270
+ },
271
+ subtler: {
193
272
  attributes: {
194
273
  group: 'paint',
195
274
  state: 'active',
196
275
  description: 'Use for blue backgrounds when there is no meaning tied to the color, such as coloured tags.'
197
276
  }
198
277
  },
199
- bold: {
278
+ subtle: {
200
279
  attributes: {
201
280
  group: 'paint',
202
281
  state: 'active',
203
282
  description: 'Use for vibrant blue backgrounds when there is no meaning tied to the color, such as coloured tags.'
204
283
  }
284
+ },
285
+ bolder: {
286
+ attributes: {
287
+ group: 'paint',
288
+ state: 'active',
289
+ description: 'Use for blue backgrounds when there is no meaning tied to the color, and the background needs to pass min 3:1 contrast requirements.'
290
+ }
205
291
  }
206
292
  },
207
293
  red: {
208
- '[default]': {
294
+ subtlest: {
295
+ attributes: {
296
+ group: 'paint',
297
+ state: 'active',
298
+ description: 'Use for red backgrounds when there is no meaning tied to the color. Reserved for when you only want a hint of color.'
299
+ }
300
+ },
301
+ subtler: {
209
302
  attributes: {
210
303
  group: 'paint',
211
304
  state: 'active',
212
305
  description: 'Use for red backgrounds when there is no meaning tied to the color, such as colored tags.'
213
306
  }
214
307
  },
215
- bold: {
308
+ subtle: {
216
309
  attributes: {
217
310
  group: 'paint',
218
311
  state: 'active',
219
312
  description: 'Use for vibrant red backgrounds when there is no meaning tied to the color, such as colored tags.'
220
313
  }
314
+ },
315
+ bolder: {
316
+ attributes: {
317
+ group: 'paint',
318
+ state: 'active',
319
+ description: 'Use for red backgrounds when there is no meaning tied to the color, and the background needs to pass min 3:1 contrast requirements.'
320
+ }
221
321
  }
222
322
  },
223
323
  orange: {
224
- '[default]': {
324
+ subtlest: {
325
+ attributes: {
326
+ group: 'paint',
327
+ state: 'active',
328
+ description: 'Use for orange backgrounds when there is no meaning tied to the color. Reserved for when you only want a hint of color.'
329
+ }
330
+ },
331
+ subtler: {
225
332
  attributes: {
226
333
  group: 'paint',
227
334
  state: 'active',
228
335
  description: 'Use for orange backgrounds when there is no meaning tied to the color, such as colored tags.'
229
336
  }
230
337
  },
231
- bold: {
338
+ subtle: {
232
339
  attributes: {
233
340
  group: 'paint',
234
341
  state: 'active',
235
342
  description: 'Use for vibrant orange backgrounds when there is no meaning tied to the color, such as colored tags.'
236
343
  }
344
+ },
345
+ bolder: {
346
+ attributes: {
347
+ group: 'paint',
348
+ state: 'active',
349
+ description: 'Use for orange backgrounds when there is no meaning tied to the color, and the background needs to pass min 3:1 contrast requirements.'
350
+ }
237
351
  }
238
352
  },
239
353
  yellow: {
240
- '[default]': {
354
+ subtlest: {
355
+ attributes: {
356
+ group: 'paint',
357
+ state: 'active',
358
+ description: 'Use for yellow backgrounds when there is no meaning tied to the color. Reserved for when you only want a hint of color.'
359
+ }
360
+ },
361
+ subtler: {
241
362
  attributes: {
242
363
  group: 'paint',
243
364
  state: 'active',
244
365
  description: 'Use for yellow backgrounds when there is no meaning tied to the color, such as colored tags.'
245
366
  }
246
367
  },
247
- bold: {
368
+ subtle: {
248
369
  attributes: {
249
370
  group: 'paint',
250
371
  state: 'active',
251
372
  description: 'Use for vibrant yellow backgrounds when there is no meaning tied to the color, such as colored tags.'
252
373
  }
374
+ },
375
+ bolder: {
376
+ attributes: {
377
+ group: 'paint',
378
+ state: 'active',
379
+ description: 'Use for yellow backgrounds when there is no meaning tied to the color, and the background needs to pass min 3:1 contrast requirements.'
380
+ }
253
381
  }
254
382
  },
255
383
  green: {
256
- '[default]': {
384
+ subtlest: {
385
+ attributes: {
386
+ group: 'paint',
387
+ state: 'active',
388
+ description: 'Use for green backgrounds when there is no meaning tied to the color. Reserved for when you only want a hint of color.'
389
+ }
390
+ },
391
+ subtler: {
257
392
  attributes: {
258
393
  group: 'paint',
259
394
  state: 'active',
260
395
  description: 'Use for green backgrounds when there is no meaning tied to the color, such as colored tags.'
261
396
  }
262
397
  },
263
- bold: {
398
+ subtle: {
264
399
  attributes: {
265
400
  group: 'paint',
266
401
  state: 'active',
267
402
  description: 'Use for vibrant green backgrounds when there is no meaning tied to the color, such as colored tags.'
268
403
  }
404
+ },
405
+ bolder: {
406
+ attributes: {
407
+ group: 'paint',
408
+ state: 'active',
409
+ description: 'Use for green backgrounds when there is no meaning tied to the color, and the background needs to pass min 3:1 contrast requirements.'
410
+ }
269
411
  }
270
412
  },
271
413
  teal: {
272
- '[default]': {
414
+ subtlest: {
415
+ attributes: {
416
+ group: 'paint',
417
+ state: 'active',
418
+ description: 'Use for teal backgrounds when there is no meaning tied to the color. Reserved for when you only want a hint of color.'
419
+ }
420
+ },
421
+ subtler: {
273
422
  attributes: {
274
423
  group: 'paint',
275
424
  state: 'active',
276
425
  description: 'Use for teal backgrounds when there is no meaning tied to the color, such as colored tags.'
277
426
  }
278
427
  },
279
- bold: {
428
+ subtle: {
280
429
  attributes: {
281
430
  group: 'paint',
282
431
  state: 'active',
283
432
  description: 'Use for vibrant teal backgrounds when there is no meaning tied to the color, such as colored tags.'
284
433
  }
434
+ },
435
+ bolder: {
436
+ attributes: {
437
+ group: 'paint',
438
+ state: 'active',
439
+ description: 'Use for teal backgrounds when there is no meaning tied to the color, and the background needs to pass min 3:1 contrast requirements.'
440
+ }
285
441
  }
286
442
  },
287
443
  purple: {
288
- '[default]': {
444
+ subtlest: {
445
+ attributes: {
446
+ group: 'paint',
447
+ state: 'active',
448
+ description: 'Use for purple backgrounds when there is no meaning tied to the color. Reserved for when you only want a hint of color.'
449
+ }
450
+ },
451
+ subtler: {
289
452
  attributes: {
290
453
  group: 'paint',
291
454
  state: 'active',
292
455
  description: 'Use for purple backgrounds when there is no meaning tied to the color, such as colored tags.'
293
456
  }
294
457
  },
295
- bold: {
458
+ subtle: {
296
459
  attributes: {
297
460
  group: 'paint',
298
461
  state: 'active',
299
462
  description: 'Use for vibrant purple backgrounds when there is no meaning tied to the color, such as colored tags.'
300
463
  }
464
+ },
465
+ bolder: {
466
+ attributes: {
467
+ group: 'paint',
468
+ state: 'active',
469
+ description: 'Use for purple backgrounds when there is no meaning tied to the color, and the background needs to pass min 3:1 contrast requirements.'
470
+ }
301
471
  }
302
472
  },
303
473
  magenta: {
304
- '[default]': {
474
+ subtlest: {
475
+ attributes: {
476
+ group: 'paint',
477
+ state: 'active',
478
+ description: 'Use for magenta backgrounds when there is no meaning tied to the color. Reserved for when you only want a hint of color.'
479
+ }
480
+ },
481
+ subtler: {
305
482
  attributes: {
306
483
  group: 'paint',
307
484
  state: 'active',
308
485
  description: 'Use for magenta backgrounds when there is no meaning tied to the color, such as colored tags.'
309
486
  }
310
487
  },
311
- bold: {
488
+ subtle: {
312
489
  attributes: {
313
490
  group: 'paint',
314
491
  state: 'active',
315
492
  description: 'Use for vibrant magenta backgrounds when there is no meaning tied to the color, such as colored tags.'
316
493
  }
494
+ },
495
+ bolder: {
496
+ attributes: {
497
+ group: 'paint',
498
+ state: 'active',
499
+ description: 'Use for magenta backgrounds when there is no meaning tied to the color, and the background needs to pass min 3:1 contrast requirements.'
500
+ }
317
501
  }
318
502
  }
319
503
  }