@atlaskit/tokens 0.10.4 → 0.10.7

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 (51) hide show
  1. package/.eslintrc.js +35 -0
  2. package/CHANGELOG.md +39 -0
  3. package/README.md +1 -1
  4. package/css/atlassian-dark.css +9 -1
  5. package/css/atlassian-light.css +9 -1
  6. package/dist/cjs/artifacts/rename-mapping.js +10 -10
  7. package/dist/cjs/artifacts/token-default-values.js +9 -1
  8. package/dist/cjs/artifacts/token-names.js +9 -1
  9. package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +211 -25
  10. package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +211 -25
  11. package/dist/cjs/babel-plugin/plugin.js +57 -53
  12. package/dist/cjs/get-token.js +1 -1
  13. package/dist/cjs/tokens/atlassian-dark/color/accent.js +28 -0
  14. package/dist/cjs/tokens/atlassian-light/color/accent.js +28 -0
  15. package/dist/cjs/tokens/default/color/accent.js +70 -2
  16. package/dist/cjs/tokens/default/deprecated/deprecated.js +19 -10
  17. package/dist/cjs/version.json +1 -1
  18. package/dist/es2019/artifacts/rename-mapping.js +10 -10
  19. package/dist/es2019/artifacts/token-default-values.js +9 -1
  20. package/dist/es2019/artifacts/token-names.js +9 -1
  21. package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +211 -25
  22. package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +211 -25
  23. package/dist/es2019/babel-plugin/plugin.js +50 -45
  24. package/dist/es2019/get-token.js +1 -1
  25. package/dist/es2019/tokens/atlassian-dark/color/accent.js +28 -0
  26. package/dist/es2019/tokens/atlassian-light/color/accent.js +28 -0
  27. package/dist/es2019/tokens/default/color/accent.js +70 -2
  28. package/dist/es2019/tokens/default/deprecated/deprecated.js +19 -10
  29. package/dist/es2019/version.json +1 -1
  30. package/dist/esm/artifacts/rename-mapping.js +10 -10
  31. package/dist/esm/artifacts/token-default-values.js +9 -1
  32. package/dist/esm/artifacts/token-names.js +9 -1
  33. package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +211 -25
  34. package/dist/esm/artifacts/tokens-raw/atlassian-light.js +211 -25
  35. package/dist/esm/babel-plugin/plugin.js +57 -53
  36. package/dist/esm/get-token.js +1 -1
  37. package/dist/esm/tokens/atlassian-dark/color/accent.js +28 -0
  38. package/dist/esm/tokens/atlassian-light/color/accent.js +28 -0
  39. package/dist/esm/tokens/default/color/accent.js +70 -2
  40. package/dist/esm/tokens/default/deprecated/deprecated.js +19 -10
  41. package/dist/esm/version.json +1 -1
  42. package/dist/types/artifacts/rename-mapping.d.ts +1 -1
  43. package/dist/types/artifacts/token-default-values.d.ts +9 -1
  44. package/dist/types/artifacts/token-names.d.ts +17 -1
  45. package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +1 -28
  46. package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +1 -28
  47. package/dist/types/artifacts/types-internal.d.ts +2 -2
  48. package/dist/types/artifacts/types.d.ts +2 -2
  49. package/dist/types/babel-plugin/plugin.d.ts +5 -5
  50. package/dist/types/types.d.ts +12 -0
  51. package/package.json +4 -1
@@ -65,6 +65,14 @@ const color = {
65
65
  bolder: {
66
66
  value: 'M900'
67
67
  }
68
+ },
69
+ gray: {
70
+ '[default]': {
71
+ value: 'N800'
72
+ },
73
+ bolder: {
74
+ value: 'N1000'
75
+ }
68
76
  }
69
77
  }
70
78
  },
@@ -93,6 +101,9 @@ const color = {
93
101
  },
94
102
  magenta: {
95
103
  value: 'M600'
104
+ },
105
+ gray: {
106
+ value: 'N600'
96
107
  }
97
108
  }
98
109
  },
@@ -121,6 +132,9 @@ const color = {
121
132
  },
122
133
  magenta: {
123
134
  value: 'M600'
135
+ },
136
+ gray: {
137
+ value: 'N600'
124
138
  }
125
139
  }
126
140
  },
@@ -237,6 +251,20 @@ const color = {
237
251
  bolder: {
238
252
  value: 'M700'
239
253
  }
254
+ },
255
+ gray: {
256
+ subtlest: {
257
+ value: 'N200'
258
+ },
259
+ subtler: {
260
+ value: 'N300'
261
+ },
262
+ subtle: {
263
+ value: 'N500'
264
+ },
265
+ bolder: {
266
+ value: 'N700'
267
+ }
240
268
  }
241
269
  }
242
270
  }
@@ -145,6 +145,24 @@ const color = {
145
145
  description: 'Use on bold magenta accent backgrounds.'
146
146
  }
147
147
  }
148
+ },
149
+ gray: {
150
+ '[default]': {
151
+ attributes: {
152
+ group: 'paint',
153
+ state: 'active',
154
+ introduced: '0.10.5',
155
+ description: 'Use for text on non-bold gray accent backgrounds, such as colored tags.'
156
+ }
157
+ },
158
+ bolder: {
159
+ attributes: {
160
+ group: 'paint',
161
+ state: 'active',
162
+ introduced: '0.10.5',
163
+ description: 'Use for text and icons on gray subtle accent backgrounds.'
164
+ }
165
+ }
148
166
  }
149
167
  }
150
168
  },
@@ -213,6 +231,14 @@ const color = {
213
231
  introduced: '0.6.0',
214
232
  description: 'Use for magenta icons on non-bold backgrounds when there is no meaning tied to the color, such as file type icons.'
215
233
  }
234
+ },
235
+ gray: {
236
+ attributes: {
237
+ group: 'paint',
238
+ state: 'active',
239
+ introduced: '0.10.5',
240
+ description: 'Use for icons on non-bold gray accent backgrounds, such as file type icons.'
241
+ }
216
242
  }
217
243
  }
218
244
  },
@@ -281,6 +307,14 @@ const color = {
281
307
  introduced: '0.6.0',
282
308
  description: 'Use for magenta borders on non-bold backgrounds when there is no meaning tied to the color.'
283
309
  }
310
+ },
311
+ gray: {
312
+ attributes: {
313
+ group: 'paint',
314
+ state: 'active',
315
+ introduced: '0.10.5',
316
+ description: 'Use for borders on non-bold gray accent backgrounds.'
317
+ }
284
318
  }
285
319
  }
286
320
  },
@@ -300,7 +334,7 @@ const color = {
300
334
  group: 'paint',
301
335
  state: 'active',
302
336
  introduced: '0.7.0',
303
- description: 'Use for blue backgrounds when there is no meaning tied to the color, such as coloured tags.'
337
+ description: 'Use for blue backgrounds when there is no meaning tied to the color, such as colored tags.'
304
338
  }
305
339
  },
306
340
  subtle: {
@@ -308,7 +342,7 @@ const color = {
308
342
  group: 'paint',
309
343
  state: 'active',
310
344
  introduced: '0.7.0',
311
- description: 'Use for vibrant blue backgrounds when there is no meaning tied to the color, such as coloured tags.'
345
+ description: 'Use for vibrant blue backgrounds when there is no meaning tied to the color, such as colored tags.'
312
346
  }
313
347
  },
314
348
  bolder: {
@@ -557,6 +591,40 @@ const color = {
557
591
  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.'
558
592
  }
559
593
  }
594
+ },
595
+ gray: {
596
+ subtlest: {
597
+ attributes: {
598
+ group: 'paint',
599
+ state: 'active',
600
+ introduced: '0.7.0',
601
+ description: 'Use for gray backgrounds when there is no meaning tied to the color. Reserved for when you only want a hint of color.'
602
+ }
603
+ },
604
+ subtler: {
605
+ attributes: {
606
+ group: 'paint',
607
+ state: 'active',
608
+ introduced: '0.7.0',
609
+ description: 'Use for gray backgrounds when there is no meaning tied to the color, such as colored tags.'
610
+ }
611
+ },
612
+ subtle: {
613
+ attributes: {
614
+ group: 'paint',
615
+ state: 'active',
616
+ introduced: '0.7.0',
617
+ description: 'Use for vibrant gray backgrounds when there is no meaning tied to the color, such as colored tags.'
618
+ }
619
+ },
620
+ bolder: {
621
+ attributes: {
622
+ group: 'paint',
623
+ state: 'active',
624
+ introduced: '0.7.0',
625
+ description: 'Use for gray backgrounds when there is no meaning tied to the color, and the background needs to pass min 3:1 contrast requirements.'
626
+ }
627
+ }
560
628
  }
561
629
  }
562
630
  }
@@ -156,7 +156,7 @@ const color = {
156
156
  deprecated: '0.7.0',
157
157
  deleted: '0.8.0',
158
158
  replacement: 'color.background.accent.blue.subtler',
159
- description: 'Use for blue backgrounds when there is no meaning tied to the color, such as coloured tags.'
159
+ description: 'Use for blue backgrounds when there is no meaning tied to the color, such as colored tags.'
160
160
  }
161
161
  },
162
162
  bold: {
@@ -356,9 +356,10 @@ const color = {
356
356
  '[default]': {
357
357
  attributes: {
358
358
  group: 'paint',
359
- state: 'deprecated',
359
+ state: 'deleted',
360
360
  introduced: '0.6.0',
361
361
  deprecated: '0.6.2',
362
+ deleted: '0.10.5',
362
363
  replacement: 'color.background.selected.[default].[default]',
363
364
  description: 'Use for the background of elements used to reinforce our brand.'
364
365
  }
@@ -366,9 +367,10 @@ const color = {
366
367
  hovered: {
367
368
  attributes: {
368
369
  group: 'paint',
369
- state: 'deprecated',
370
+ state: 'deleted',
370
371
  introduced: '0.6.0',
371
372
  deprecated: '0.6.2',
373
+ deleted: '0.10.5',
372
374
  replacement: 'color.background.selected.[default].hovered',
373
375
  description: 'Hovered state for color.background.brand'
374
376
  }
@@ -376,9 +378,10 @@ const color = {
376
378
  pressed: {
377
379
  attributes: {
378
380
  group: 'paint',
379
- state: 'deprecated',
381
+ state: 'deleted',
380
382
  introduced: '0.6.0',
381
383
  deprecated: '0.6.2',
384
+ deleted: '0.10.5',
382
385
  replacement: 'color.background.selected.[default].pressed',
383
386
  description: 'Pressed state for color.background.brand'
384
387
  }
@@ -621,9 +624,10 @@ const color = {
621
624
  '[default]': {
622
625
  attributes: {
623
626
  group: 'paint',
624
- state: 'deprecated',
627
+ state: 'deleted',
625
628
  introduced: '0.1.0',
626
629
  deprecated: '0.8.3',
630
+ deleted: '0.10.5',
627
631
  replacement: 'color.background.inverse.subtle.[default]',
628
632
  description: 'Use for backgrounds of elements on a bold background, such as in the buttons on spotlight cards.'
629
633
  }
@@ -649,9 +653,10 @@ Combine with shadow.overlay.`
649
653
  resting: {
650
654
  attributes: {
651
655
  group: 'paint',
652
- state: 'deprecated',
656
+ state: 'deleted',
653
657
  introduced: '0.1.0',
654
658
  deprecated: '0.6.0',
659
+ deleted: '0.10.5',
655
660
  replacement: 'color.background.selected.[default].[default]',
656
661
  description: 'Use for backgrounds of elements in a selected state'
657
662
  }
@@ -659,9 +664,10 @@ Combine with shadow.overlay.`
659
664
  hover: {
660
665
  attributes: {
661
666
  group: 'paint',
662
- state: 'deprecated',
667
+ state: 'deleted',
663
668
  introduced: '0.1.0',
664
669
  deprecated: '0.6.0',
670
+ deleted: '0.10.5',
665
671
  replacement: 'color.background.selected.[default].hovered',
666
672
  description: 'Hover state for color.background.selected'
667
673
  }
@@ -695,9 +701,10 @@ Combine with shadow.overlay.`
695
701
  hover: {
696
702
  attributes: {
697
703
  group: 'paint',
698
- state: 'deprecated',
704
+ state: 'deleted',
699
705
  introduced: '0.0.15',
700
706
  deprecated: '0.6.0',
707
+ deleted: '0.10.5',
701
708
  replacement: 'color.background.selected.[default].hovered',
702
709
  description: 'Hover state for background.subtleBrand'
703
710
  }
@@ -705,9 +712,10 @@ Combine with shadow.overlay.`
705
712
  pressed: {
706
713
  attributes: {
707
714
  group: 'paint',
708
- state: 'deprecated',
715
+ state: 'deleted',
709
716
  introduced: '0.0.15',
710
717
  deprecated: '0.6.0',
718
+ deleted: '0.10.5',
711
719
  replacement: 'color.background.selected.[default].pressed',
712
720
  description: 'Pressed state for background.subtleBrand'
713
721
  }
@@ -715,9 +723,10 @@ Combine with shadow.overlay.`
715
723
  resting: {
716
724
  attributes: {
717
725
  group: 'paint',
718
- state: 'deprecated',
726
+ state: 'deleted',
719
727
  introduced: '0.0.15',
720
728
  deprecated: '0.6.0',
729
+ deleted: '0.10.5',
721
730
  replacement: 'color.background.selected.[default].[default]',
722
731
  description: 'Use for subdued backgrounds of UI elements like information section messages and in progress lozenges.'
723
732
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tokens",
3
- "version": "0.10.4",
3
+ "version": "0.10.7",
4
4
  "sideEffects": [
5
5
  "**/*.css"
6
6
  ]
@@ -12,7 +12,7 @@
12
12
  * These changes will then be picked up by our tooling which will attempt to
13
13
  * migrate as many of these renames as possible.
14
14
  *
15
- * @codegen <<SignedSource::dd934162c3393bce214d694d47bbcf2a>>
15
+ * @codegen <<SignedSource::51fbaf5510a3fead6a2844d4df866a77>>
16
16
  * @codegenCommand yarn build tokens
17
17
  */
18
18
  var renameMapper = [{
@@ -117,27 +117,27 @@ var renameMapper = [{
117
117
  "replacement": "color.background.accent.magenta.subtle"
118
118
  }, {
119
119
  "path": "color.background.inverse.[default]",
120
- "state": "deprecated",
120
+ "state": "deleted",
121
121
  "replacement": "color.background.inverse.subtle.[default]"
122
122
  }, {
123
123
  "path": "color.background.brand.[default].[default]",
124
- "state": "deprecated",
124
+ "state": "deleted",
125
125
  "replacement": "color.background.selected.[default].[default]"
126
126
  }, {
127
127
  "path": "color.background.brand.[default].hovered",
128
- "state": "deprecated",
128
+ "state": "deleted",
129
129
  "replacement": "color.background.selected.[default].hovered"
130
130
  }, {
131
131
  "path": "color.background.brand.[default].pressed",
132
- "state": "deprecated",
132
+ "state": "deleted",
133
133
  "replacement": "color.background.selected.[default].pressed"
134
134
  }, {
135
135
  "path": "color.background.selected.resting",
136
- "state": "deprecated",
136
+ "state": "deleted",
137
137
  "replacement": "color.background.selected.[default].[default]"
138
138
  }, {
139
139
  "path": "color.background.selected.hover",
140
- "state": "deprecated",
140
+ "state": "deleted",
141
141
  "replacement": "color.background.selected.[default].hovered"
142
142
  }, {
143
143
  "path": "color.background.blanket",
@@ -237,15 +237,15 @@ var renameMapper = [{
237
237
  "replacement": "color.background.input.[default]"
238
238
  }, {
239
239
  "path": "color.background.subtleBrand.hover",
240
- "state": "deprecated",
240
+ "state": "deleted",
241
241
  "replacement": "color.background.selected.[default].hovered"
242
242
  }, {
243
243
  "path": "color.background.subtleBrand.pressed",
244
- "state": "deprecated",
244
+ "state": "deleted",
245
245
  "replacement": "color.background.selected.[default].pressed"
246
246
  }, {
247
247
  "path": "color.background.subtleBrand.resting",
248
- "state": "deprecated",
248
+ "state": "deleted",
249
249
  "replacement": "color.background.selected.[default].[default]"
250
250
  }, {
251
251
  "path": "color.background.subtleDanger.hover",
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Token names mapped to their value in the default Atlassian theme ('light')
5
5
  *
6
- * @codegen <<SignedSource::3dd78c77e87d6557a4bade2368be7eb8>>
6
+ * @codegen <<SignedSource::a819b31f00d394be417445acd67bd024>>
7
7
  * @codegenCommand yarn build tokens
8
8
  */
9
9
  var defaultTokenValues = {
@@ -23,6 +23,8 @@ var defaultTokenValues = {
23
23
  'color.text.accent.teal.bolder': '#1D474C',
24
24
  'color.text.accent.magenta': '#943D73',
25
25
  'color.text.accent.magenta.bolder': '#50253F',
26
+ 'color.text.accent.gray': '#44546F',
27
+ 'color.text.accent.gray.bolder': '#172B4D',
26
28
  'color.text': '#172B4D',
27
29
  'color.text.subtle': '#44546F',
28
30
  'color.text.subtlest': '#626F86',
@@ -51,6 +53,7 @@ var defaultTokenValues = {
51
53
  'color.icon.accent.purple': '#8270DB',
52
54
  'color.icon.accent.teal': '#1D9AAA',
53
55
  'color.icon.accent.magenta': '#CD519D',
56
+ 'color.icon.accent.gray': '#758195',
54
57
  'color.icon': '#44546F',
55
58
  'color.icon.subtle': '#626F86',
56
59
  'color.icon.inverse': '#FFFFFF',
@@ -71,6 +74,7 @@ var defaultTokenValues = {
71
74
  'color.border.accent.purple': '#8270DB',
72
75
  'color.border.accent.teal': '#1D9AAA',
73
76
  'color.border.accent.magenta': '#CD519D',
77
+ 'color.border.accent.gray': '#758195',
74
78
  'color.border': '#091E4224',
75
79
  'color.border.inverse': '#FFFFFF',
76
80
  'color.border.focused': '#388BFF',
@@ -133,6 +137,10 @@ var defaultTokenValues = {
133
137
  'color.background.accent.magenta.bolder': '#AE4787',
134
138
  'color.background.accent.magenta': '#FDD0EC',
135
139
  'color.background.accent.magenta.bold': '#E774BB',
140
+ 'color.background.accent.gray.subtlest': '#F1F2F4',
141
+ 'color.background.accent.gray.subtler': '#DCDFE4',
142
+ 'color.background.accent.gray.subtle': '#8993A5',
143
+ 'color.background.accent.gray.bolder': '#626F86',
136
144
  'color.background.disabled': '#091E420F',
137
145
  'color.background.inverse.subtle': '#00000029',
138
146
  'color.background.inverse.subtle.hovered': '#0000003D',
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::1ab44c57c547c6cb7bb389b286bdd50f>>
3
+ * @codegen <<SignedSource::b251fc1793ba7f689b4c3707310c1556>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  var tokens = {
@@ -20,6 +20,8 @@ var tokens = {
20
20
  'color.text.accent.teal.bolder': '--ds-text-accent-teal-bolder',
21
21
  'color.text.accent.magenta': '--ds-text-accent-magenta',
22
22
  'color.text.accent.magenta.bolder': '--ds-text-accent-magenta-bolder',
23
+ 'color.text.accent.gray': '--ds-text-accent-gray',
24
+ 'color.text.accent.gray.bolder': '--ds-text-accent-gray-bolder',
23
25
  'color.text': '--ds-text',
24
26
  'color.text.subtle': '--ds-text-subtle',
25
27
  'color.text.subtlest': '--ds-text-subtlest',
@@ -48,6 +50,7 @@ var tokens = {
48
50
  'color.icon.accent.purple': '--ds-icon-accent-purple',
49
51
  'color.icon.accent.teal': '--ds-icon-accent-teal',
50
52
  'color.icon.accent.magenta': '--ds-icon-accent-magenta',
53
+ 'color.icon.accent.gray': '--ds-icon-accent-gray',
51
54
  'color.icon': '--ds-icon',
52
55
  'color.icon.subtle': '--ds-icon-subtle',
53
56
  'color.icon.inverse': '--ds-icon-inverse',
@@ -68,6 +71,7 @@ var tokens = {
68
71
  'color.border.accent.purple': '--ds-border-accent-purple',
69
72
  'color.border.accent.teal': '--ds-border-accent-teal',
70
73
  'color.border.accent.magenta': '--ds-border-accent-magenta',
74
+ 'color.border.accent.gray': '--ds-border-accent-gray',
71
75
  'color.border': '--ds-border',
72
76
  'color.border.inverse': '--ds-border-inverse',
73
77
  'color.border.focused': '--ds-border-focused',
@@ -130,6 +134,10 @@ var tokens = {
130
134
  'color.background.accent.magenta.bolder': '--ds-background-accent-magenta-bolder',
131
135
  'color.background.accent.magenta': '--ds-background-accent-magenta',
132
136
  'color.background.accent.magenta.bold': '--ds-background-accent-magenta-bold',
137
+ 'color.background.accent.gray.subtlest': '--ds-background-accent-gray-subtlest',
138
+ 'color.background.accent.gray.subtler': '--ds-background-accent-gray-subtler',
139
+ 'color.background.accent.gray.subtle': '--ds-background-accent-gray-subtle',
140
+ 'color.background.accent.gray.bolder': '--ds-background-accent-gray-bolder',
133
141
  'color.background.disabled': '--ds-background-disabled',
134
142
  'color.background.inverse.subtle': '--ds-background-inverse-subtle',
135
143
  'color.background.inverse.subtle.hovered': '--ds-background-inverse-subtle-hovered',