@atlaskit/tokens 0.2.0 → 0.4.1

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 (120) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/README.md +28 -0
  3. package/babel-plugin/package.json +7 -0
  4. package/css/atlassian-dark.css +89 -88
  5. package/css/atlassian-light.css +89 -88
  6. package/dist/cjs/artifacts/rename-mapping.js +23 -0
  7. package/dist/cjs/{tokens → artifacts}/token-default-values.js +22 -21
  8. package/dist/cjs/artifacts/token-names.js +101 -0
  9. package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +1786 -0
  10. package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +1766 -0
  11. package/dist/cjs/artifacts/types.js +5 -0
  12. package/dist/cjs/{entry-points/token-default-values.js → babel-plugin/index.js} +2 -2
  13. package/dist/cjs/babel-plugin/plugin.js +176 -0
  14. package/dist/cjs/entry-points/rename-mapping.js +1 -1
  15. package/dist/cjs/entry-points/token-names.js +1 -1
  16. package/dist/cjs/figma/synchronize-figma-tokens.js +43 -41
  17. package/dist/cjs/get-token.js +1 -1
  18. package/dist/cjs/index.js +4 -4
  19. package/dist/cjs/tokens/atlassian-dark/utility/utility.js +3 -0
  20. package/dist/cjs/tokens/atlassian-light/utility/utility.js +3 -0
  21. package/dist/cjs/tokens/default/color/accent.js +26 -13
  22. package/dist/cjs/tokens/default/color/background.js +98 -49
  23. package/dist/cjs/tokens/default/color/border.js +4 -2
  24. package/dist/cjs/tokens/default/color/icon-border.js +10 -5
  25. package/dist/cjs/tokens/default/color/overlay.js +4 -2
  26. package/dist/cjs/tokens/default/color/text.js +28 -14
  27. package/dist/cjs/tokens/default/shadow/shadow.js +4 -2
  28. package/dist/cjs/tokens/default/utility/utility.js +10 -2
  29. package/dist/cjs/tokens/palette.js +145 -260
  30. package/dist/cjs/version.json +1 -1
  31. package/dist/es2019/artifacts/rename-mapping.js +16 -0
  32. package/dist/es2019/{tokens → artifacts}/token-default-values.js +22 -21
  33. package/dist/es2019/artifacts/token-names.js +94 -0
  34. package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +1779 -0
  35. package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +1759 -0
  36. package/dist/es2019/artifacts/types.js +1 -0
  37. package/dist/es2019/babel-plugin/index.js +1 -0
  38. package/dist/es2019/babel-plugin/plugin.js +151 -0
  39. package/dist/es2019/entry-points/rename-mapping.js +1 -1
  40. package/dist/es2019/entry-points/token-names.js +1 -1
  41. package/dist/es2019/figma/synchronize-figma-tokens.js +43 -41
  42. package/dist/es2019/get-token.js +1 -1
  43. package/dist/es2019/tokens/atlassian-dark/utility/utility.js +3 -0
  44. package/dist/es2019/tokens/atlassian-light/utility/utility.js +3 -0
  45. package/dist/es2019/tokens/default/color/accent.js +26 -13
  46. package/dist/es2019/tokens/default/color/background.js +103 -49
  47. package/dist/es2019/tokens/default/color/border.js +4 -2
  48. package/dist/es2019/tokens/default/color/icon-border.js +28 -5
  49. package/dist/es2019/tokens/default/color/overlay.js +4 -2
  50. package/dist/es2019/tokens/default/color/text.js +35 -14
  51. package/dist/es2019/tokens/default/shadow/shadow.js +12 -2
  52. package/dist/es2019/tokens/default/utility/utility.js +10 -2
  53. package/dist/es2019/tokens/palette.js +145 -260
  54. package/dist/es2019/version.json +1 -1
  55. package/dist/esm/artifacts/rename-mapping.js +16 -0
  56. package/dist/esm/{tokens → artifacts}/token-default-values.js +22 -21
  57. package/dist/esm/artifacts/token-names.js +94 -0
  58. package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +1779 -0
  59. package/dist/esm/artifacts/tokens-raw/atlassian-light.js +1759 -0
  60. package/dist/esm/artifacts/types.js +1 -0
  61. package/dist/esm/babel-plugin/index.js +1 -0
  62. package/dist/esm/babel-plugin/plugin.js +158 -0
  63. package/dist/esm/entry-points/rename-mapping.js +1 -1
  64. package/dist/esm/entry-points/token-names.js +1 -1
  65. package/dist/esm/figma/synchronize-figma-tokens.js +43 -41
  66. package/dist/esm/get-token.js +1 -1
  67. package/dist/esm/tokens/atlassian-dark/utility/utility.js +3 -0
  68. package/dist/esm/tokens/atlassian-light/utility/utility.js +3 -0
  69. package/dist/esm/tokens/default/color/accent.js +26 -13
  70. package/dist/esm/tokens/default/color/background.js +98 -49
  71. package/dist/esm/tokens/default/color/border.js +4 -2
  72. package/dist/esm/tokens/default/color/icon-border.js +10 -5
  73. package/dist/esm/tokens/default/color/overlay.js +4 -2
  74. package/dist/esm/tokens/default/color/text.js +28 -14
  75. package/dist/esm/tokens/default/shadow/shadow.js +4 -2
  76. package/dist/esm/tokens/default/utility/utility.js +10 -2
  77. package/dist/esm/tokens/palette.js +145 -260
  78. package/dist/esm/version.json +1 -1
  79. package/dist/types/artifacts/rename-mapping.d.ts +17 -0
  80. package/dist/types/{tokens → artifacts}/token-default-values.d.ts +21 -20
  81. package/dist/types/artifacts/token-names.d.ts +184 -0
  82. package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +80 -0
  83. package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +56 -0
  84. package/dist/types/artifacts/types.d.ts +4 -0
  85. package/dist/types/babel-plugin/index.d.ts +1 -0
  86. package/dist/types/babel-plugin/plugin.d.ts +14 -0
  87. package/dist/types/entry-points/babel-plugin.d.ts +1 -0
  88. package/dist/types/entry-points/rename-mapping.d.ts +1 -1
  89. package/dist/types/entry-points/token-names.d.ts +2 -2
  90. package/dist/types/get-token.d.ts +1 -1
  91. package/dist/types/index.d.ts +1 -1
  92. package/dist/types/tokens/atlassian-dark/utility/utility.d.ts +10 -2
  93. package/dist/types/tokens/atlassian-light/utility/utility.d.ts +10 -2
  94. package/dist/types/tokens/default/utility/utility.d.ts +138 -2
  95. package/dist/types/types.d.ts +49 -14
  96. package/package.json +17 -6
  97. package/tokens-browser-extension/README.md +28 -0
  98. package/tokens-browser-extension/atlassian-theme.css +449 -0
  99. package/tokens-browser-extension/background.js +75 -0
  100. package/tokens-browser-extension/content-script.js +75 -0
  101. package/tokens-browser-extension/devtools.html +1 -0
  102. package/tokens-browser-extension/devtools.js +14 -0
  103. package/tokens-browser-extension/manifest.json +36 -0
  104. package/tokens-browser-extension/messageback-script.js +10 -0
  105. package/tokens-browser-extension/messaging.js +36 -0
  106. package/tokens-browser-extension/panel.html +25 -0
  107. package/tokens-browser-extension/panel.js +46 -0
  108. package/tokens-browser-extension/toast.png +0 -0
  109. package/dist/cjs/tokens/rename-mapping.js +0 -29
  110. package/dist/cjs/tokens/token-names.js +0 -100
  111. package/dist/es2019/entry-points/token-default-values.js +0 -1
  112. package/dist/es2019/tokens/rename-mapping.js +0 -21
  113. package/dist/es2019/tokens/token-names.js +0 -93
  114. package/dist/esm/entry-points/token-default-values.js +0 -1
  115. package/dist/esm/tokens/rename-mapping.js +0 -21
  116. package/dist/esm/tokens/token-names.js +0 -93
  117. package/dist/types/entry-points/token-default-values.d.ts +0 -1
  118. package/dist/types/tokens/rename-mapping.d.ts +0 -24
  119. package/dist/types/tokens/token-names.d.ts +0 -182
  120. package/token-default-values/package.json +0 -7
@@ -4,76 +4,88 @@ var color = {
4
4
  sunken: {
5
5
  attributes: {
6
6
  group: 'paint',
7
- description: ''
7
+ state: 'active',
8
+ description: 'Use as a secondary background for the UI'
8
9
  }
9
10
  },
10
11
  default: {
11
12
  attributes: {
12
13
  group: 'paint',
13
- description: ''
14
+ state: 'active',
15
+ description: 'Use as the primary background for the UI'
14
16
  }
15
17
  },
16
18
  card: {
17
19
  attributes: {
18
20
  group: 'paint',
19
- description: ''
21
+ state: 'active',
22
+ description: 'Use for the background of raised cards, such as Jira cards on a Kanban board.\nCombine with shadow.card.'
20
23
  }
21
24
  },
22
25
  overlay: {
23
26
  attributes: {
24
27
  group: 'paint',
25
- description: ''
28
+ state: 'active',
29
+ description: "\nUse for the background of overlay elements, such as modals, dropdown menus, flags, and inline dialogs (i.e. elements that sit on top of the UI).\n\nAlso use for the background of raised cards in a dragged state.\n\nCombine with shadow.overlay."
26
30
  }
27
31
  },
28
32
  selected: {
29
33
  resting: {
30
34
  attributes: {
31
35
  group: 'paint',
32
- description: ''
36
+ state: 'active',
37
+ description: 'Use for backgrounds of elements in a selected state'
33
38
  }
34
39
  },
35
40
  hover: {
36
41
  attributes: {
37
42
  group: 'paint',
38
- description: ''
43
+ state: 'active',
44
+ description: 'Hover state of background.selected'
39
45
  }
40
46
  },
41
47
  pressed: {
42
48
  attributes: {
43
49
  group: 'paint',
44
- description: ''
50
+ state: 'active',
51
+ description: 'Pressed state of background.selected'
45
52
  }
46
53
  }
47
54
  },
48
55
  blanket: {
49
56
  attributes: {
50
57
  group: 'paint',
51
- description: ''
58
+ state: 'active',
59
+ description: 'Use for the screen overlay that appears with modal dialogs'
52
60
  }
53
61
  },
54
62
  disabled: {
55
63
  attributes: {
56
64
  group: 'paint',
57
- description: ''
65
+ state: 'active',
66
+ description: 'Use for backgrounds of elements in a disabled state'
58
67
  }
59
68
  },
60
69
  boldBrand: {
61
70
  resting: {
62
71
  attributes: {
63
72
  group: 'paint',
64
- description: ''
73
+ state: 'active',
74
+ description: 'A vibrant background for small UI elements like primary buttons and bold in progress lozenges.'
65
75
  }
66
76
  },
67
77
  hover: {
68
78
  attributes: {
69
79
  group: 'paint',
70
- description: ''
80
+ state: 'active',
81
+ description: 'Hover state of background.boldBrand'
71
82
  }
72
83
  },
73
84
  pressed: {
74
85
  attributes: {
75
86
  group: 'paint',
76
- description: ''
87
+ state: 'active',
88
+ description: 'Pressed state of background.boldBrand'
77
89
  }
78
90
  }
79
91
  },
@@ -81,19 +93,22 @@ var color = {
81
93
  resting: {
82
94
  attributes: {
83
95
  group: 'paint',
84
- description: ''
96
+ state: 'active',
97
+ description: 'Use for subdued backgrounds of UI elements like information section messages and in progress lozenges.'
85
98
  }
86
99
  },
87
100
  hover: {
88
101
  attributes: {
89
102
  group: 'paint',
90
- description: ''
103
+ state: 'active',
104
+ description: 'Hover state for background.subtleBrand'
91
105
  }
92
106
  },
93
107
  pressed: {
94
108
  attributes: {
95
109
  group: 'paint',
96
- description: ''
110
+ state: 'active',
111
+ description: 'Pressed state for background.subtleBrand'
97
112
  }
98
113
  }
99
114
  },
@@ -101,19 +116,22 @@ var color = {
101
116
  resting: {
102
117
  attributes: {
103
118
  group: 'paint',
104
- description: ''
119
+ state: 'active',
120
+ description: 'A vibrant background for small UI elements like danger buttons and bold removed lozenges.'
105
121
  }
106
122
  },
107
123
  hover: {
108
124
  attributes: {
109
125
  group: 'paint',
110
- description: ''
126
+ state: 'active',
127
+ description: 'Hover state of background.boldDanger'
111
128
  }
112
129
  },
113
130
  pressed: {
114
131
  attributes: {
115
132
  group: 'paint',
116
- description: ''
133
+ state: 'active',
134
+ description: 'Pressed state of background.boldDanger'
117
135
  }
118
136
  }
119
137
  },
@@ -121,19 +139,22 @@ var color = {
121
139
  resting: {
122
140
  attributes: {
123
141
  group: 'paint',
124
- description: ''
142
+ state: 'active',
143
+ description: 'Use for subdued backgrounds of UI elements like error section messages and removed lozenges.'
125
144
  }
126
145
  },
127
146
  hover: {
128
147
  attributes: {
129
148
  group: 'paint',
130
- description: ''
149
+ state: 'active',
150
+ description: 'Hover state for background.subtleDanger'
131
151
  }
132
152
  },
133
153
  pressed: {
134
154
  attributes: {
135
155
  group: 'paint',
136
- description: ''
156
+ state: 'active',
157
+ description: 'Pressed state for background.subtleDanger'
137
158
  }
138
159
  }
139
160
  },
@@ -141,19 +162,22 @@ var color = {
141
162
  resting: {
142
163
  attributes: {
143
164
  group: 'paint',
144
- description: ''
165
+ state: 'active',
166
+ description: 'A vibrant background for small UI elements like warning buttons and bold moved lozenges.'
145
167
  }
146
168
  },
147
169
  hover: {
148
170
  attributes: {
149
171
  group: 'paint',
150
- description: ''
172
+ state: 'active',
173
+ description: 'Hover state of background.boldWarning'
151
174
  }
152
175
  },
153
176
  pressed: {
154
177
  attributes: {
155
178
  group: 'paint',
156
- description: ''
179
+ state: 'active',
180
+ description: 'Pressed state of background.boldWarning'
157
181
  }
158
182
  }
159
183
  },
@@ -161,19 +185,22 @@ var color = {
161
185
  resting: {
162
186
  attributes: {
163
187
  group: 'paint',
164
- description: ''
188
+ state: 'active',
189
+ description: 'Use for subdued backgrounds of UI elements like warning section messages and moved lozenges.'
165
190
  }
166
191
  },
167
192
  hover: {
168
193
  attributes: {
169
194
  group: 'paint',
170
- description: ''
195
+ state: 'active',
196
+ description: 'Hover state for background.subtleWarning'
171
197
  }
172
198
  },
173
199
  pressed: {
174
200
  attributes: {
175
201
  group: 'paint',
176
- description: ''
202
+ state: 'active',
203
+ description: 'Pressed state for background.subtleWarning'
177
204
  }
178
205
  }
179
206
  },
@@ -181,19 +208,22 @@ var color = {
181
208
  resting: {
182
209
  attributes: {
183
210
  group: 'paint',
184
- description: ''
211
+ state: 'active',
212
+ description: 'A vibrant background for small UI elements like checked toggles and bold success lozenges.'
185
213
  }
186
214
  },
187
215
  hover: {
188
216
  attributes: {
189
217
  group: 'paint',
190
- description: ''
218
+ state: 'active',
219
+ description: 'Hover state of background.boldSuccess'
191
220
  }
192
221
  },
193
222
  pressed: {
194
223
  attributes: {
195
224
  group: 'paint',
196
- description: ''
225
+ state: 'active',
226
+ description: 'Pressed state of background.boldSuccess'
197
227
  }
198
228
  }
199
229
  },
@@ -201,19 +231,22 @@ var color = {
201
231
  resting: {
202
232
  attributes: {
203
233
  group: 'paint',
204
- description: ''
234
+ state: 'active',
235
+ description: 'Use for subdued backgrounds of UI elements like success section messages and success lozenges. '
205
236
  }
206
237
  },
207
238
  hover: {
208
239
  attributes: {
209
240
  group: 'paint',
210
- description: ''
241
+ state: 'active',
242
+ description: 'Hover state for background.subtleSuccess'
211
243
  }
212
244
  },
213
245
  pressed: {
214
246
  attributes: {
215
247
  group: 'paint',
216
- description: ''
248
+ state: 'active',
249
+ description: 'Pressed state for background.subtleSuccess'
217
250
  }
218
251
  }
219
252
  },
@@ -221,19 +254,22 @@ var color = {
221
254
  resting: {
222
255
  attributes: {
223
256
  group: 'paint',
224
- description: ''
257
+ state: 'active',
258
+ description: 'A vibrant background for small UI elements like onboarding buttons and bold new lozenges.'
225
259
  }
226
260
  },
227
261
  hover: {
228
262
  attributes: {
229
263
  group: 'paint',
230
- description: ''
264
+ state: 'active',
265
+ description: 'Hover state of background.boldDiscovery'
231
266
  }
232
267
  },
233
268
  pressed: {
234
269
  attributes: {
235
270
  group: 'paint',
236
- description: ''
271
+ state: 'active',
272
+ description: 'Pressed state of background.boldDiscovery'
237
273
  }
238
274
  }
239
275
  },
@@ -241,19 +277,22 @@ var color = {
241
277
  resting: {
242
278
  attributes: {
243
279
  group: 'paint',
244
- description: ''
280
+ state: 'active',
281
+ description: 'Use for subdued backgrounds of UI elements like discovery section messages and new lozenges.'
245
282
  }
246
283
  },
247
284
  hover: {
248
285
  attributes: {
249
286
  group: 'paint',
250
- description: ''
287
+ state: 'active',
288
+ description: 'Hover state for background.subtleDiscovery'
251
289
  }
252
290
  },
253
291
  pressed: {
254
292
  attributes: {
255
293
  group: 'paint',
256
- description: ''
294
+ state: 'active',
295
+ description: 'Pressed state for background.subtleDiscovery'
257
296
  }
258
297
  }
259
298
  },
@@ -261,19 +300,22 @@ var color = {
261
300
  resting: {
262
301
  attributes: {
263
302
  group: 'paint',
264
- description: ''
303
+ state: 'active',
304
+ description: 'A vibrant background for small UI elements like unchecked toggles and bold default lozenges.'
265
305
  }
266
306
  },
267
307
  hover: {
268
308
  attributes: {
269
309
  group: 'paint',
270
- description: ''
310
+ state: 'active',
311
+ description: 'Hover state of background.boldNeutral'
271
312
  }
272
313
  },
273
314
  pressed: {
274
315
  attributes: {
275
316
  group: 'paint',
276
- description: ''
317
+ state: 'active',
318
+ description: 'Pressed state of background.boldNeutral'
277
319
  }
278
320
  }
279
321
  },
@@ -281,13 +323,15 @@ var color = {
281
323
  hover: {
282
324
  attributes: {
283
325
  group: 'paint',
284
- description: ''
326
+ state: 'active',
327
+ description: 'Hover state for UIs that don’t have a default background, such as menu items or subtle buttons.'
285
328
  }
286
329
  },
287
330
  pressed: {
288
331
  attributes: {
289
332
  group: 'paint',
290
- description: ''
333
+ state: 'active',
334
+ description: 'Pressed state for UIs that don’t have a default background, such as menu items or subtle buttons.'
291
335
  }
292
336
  }
293
337
  },
@@ -295,19 +339,22 @@ var color = {
295
339
  resting: {
296
340
  attributes: {
297
341
  group: 'paint',
298
- description: ''
342
+ state: 'active',
343
+ description: 'Use as the default background of UI elements like buttons, lozenges, and tags.'
299
344
  }
300
345
  },
301
346
  hover: {
302
347
  attributes: {
303
348
  group: 'paint',
304
- description: ''
349
+ state: 'active',
350
+ description: 'Hover state for background.subtleNeutral'
305
351
  }
306
352
  },
307
353
  pressed: {
308
354
  attributes: {
309
355
  group: 'paint',
310
- description: ''
356
+ state: 'active',
357
+ description: 'Pressed state for background.subtleNeutral'
311
358
  }
312
359
  }
313
360
  },
@@ -315,13 +362,15 @@ var color = {
315
362
  resting: {
316
363
  attributes: {
317
364
  group: 'paint',
318
- description: ''
365
+ state: 'active',
366
+ description: 'Hover state for background.subtleBorderedNeutral'
319
367
  }
320
368
  },
321
369
  pressed: {
322
370
  attributes: {
323
371
  group: 'paint',
324
- description: ''
372
+ state: 'active',
373
+ description: 'Pressed state for background.subtleBorderedNeutral'
325
374
  }
326
375
  }
327
376
  }
@@ -4,13 +4,15 @@ var color = {
4
4
  focus: {
5
5
  attributes: {
6
6
  group: 'paint',
7
- description: ''
7
+ state: 'active',
8
+ description: 'Use for focus rings of elements in a focus state'
8
9
  }
9
10
  },
10
11
  neutral: {
11
12
  attributes: {
12
13
  group: 'paint',
13
- description: ''
14
+ state: 'active',
15
+ description: 'Use to create borders around UI elements such as text fields, checkboxes, and radio buttons, or to visually group or separate UI elements, such as flat cards or side panel dividers'
14
16
  }
15
17
  }
16
18
  }
@@ -4,31 +4,36 @@ var color = {
4
4
  brand: {
5
5
  attributes: {
6
6
  group: 'paint',
7
- description: ''
7
+ state: 'active',
8
+ description: "\nUse rarely for icons or borders representing brand, in-progress, or information, such as the icons in information sections messages.\n\nAlso use for blue icons or borders when there is no meaning tied to the color, such as file type icons."
8
9
  }
9
10
  },
10
11
  danger: {
11
12
  attributes: {
12
13
  group: 'paint',
13
- description: ''
14
+ state: 'active',
15
+ description: "\nUse rarely for icons and borders representing critical information, such the icons in error section messages or the borders on invalid text fields.\n\nAlso use for red icons or borders when there is no meaning tied to the color, such as file type icons."
14
16
  }
15
17
  },
16
18
  warning: {
17
19
  attributes: {
18
20
  group: 'paint',
19
- description: ''
21
+ state: 'active',
22
+ description: "\nUse rarely for icons and borders representing semi-urgent information, such as the icons in warning section messages.\n\nAlso use for yellow icons or borders when there is no meaning tied to the color, such as file type icons.\n"
20
23
  }
21
24
  },
22
25
  success: {
23
26
  attributes: {
24
27
  group: 'paint',
25
- description: ''
28
+ state: 'active',
29
+ description: "\nUse rarely for icons and borders representing positive information, such as the icons in success section messages or the borders on validated text fields.\n\nAlso use for green icons or borders when there is no meaning tied to the color, such as file type icons.\n"
26
30
  }
27
31
  },
28
32
  discovery: {
29
33
  attributes: {
30
34
  group: 'paint',
31
- description: ''
35
+ state: 'active',
36
+ description: "\nUse rarely for icons and borders representing new information, such as the icons in discovery section mesages or the borders in onboarding spotlights.\n\nAlso use for purple icons or borders when there is no meaning tied to the color, such as file type icons.\n"
32
37
  }
33
38
  }
34
39
  }
@@ -4,13 +4,15 @@ var color = {
4
4
  hover: {
5
5
  attributes: {
6
6
  group: 'paint',
7
- description: ''
7
+ state: 'active',
8
+ description: 'Use as a background overlay for elements in a hover state when their background color cannot change, such as avatars.'
8
9
  }
9
10
  },
10
11
  pressed: {
11
12
  attributes: {
12
13
  group: 'paint',
13
- description: ''
14
+ state: 'active',
15
+ description: 'Use as a background overlay for elements in a pressed state when their background color cannot change, such as avatars.'
14
16
  }
15
17
  }
16
18
  }
@@ -4,87 +4,101 @@ var color = {
4
4
  selected: {
5
5
  attributes: {
6
6
  group: 'paint',
7
- description: ''
7
+ state: 'active',
8
+ description: 'Use for text, icons, borders, or other visual indicators in selected states'
8
9
  }
9
10
  },
10
11
  highEmphasis: {
11
12
  attributes: {
12
13
  group: 'paint',
13
- description: ''
14
+ state: 'active',
15
+ description: 'Use for primary text, such as body copy, sentence case headers, and buttons'
14
16
  }
15
17
  },
16
18
  mediumEmphasis: {
17
19
  attributes: {
18
20
  group: 'paint',
19
- description: ''
21
+ state: 'active',
22
+ description: "\nUse for secondary text, such navigation, subtle button links, input field labels, and all caps subheadings.\n\nUse for icon-only buttons, or icons paired with text.highEmphasis text\n "
20
23
  }
21
24
  },
22
25
  lowEmphasis: {
23
26
  attributes: {
24
27
  group: 'paint',
25
- description: ''
28
+ state: 'active',
29
+ description: "\nUse for tertiary text, such as meta-data, breadcrumbs, input field placeholder and helper text.\n\nUse for icons that are paired with text.medEmphasis text"
26
30
  }
27
31
  },
28
32
  onBold: {
29
33
  attributes: {
30
34
  group: 'paint',
31
- description: ''
35
+ state: 'active',
36
+ description: 'Use for text and icons when on bold backgrounds'
32
37
  }
33
38
  },
34
39
  onBoldWarning: {
35
40
  attributes: {
36
41
  group: 'paint',
37
- description: ''
42
+ state: 'active',
43
+ description: 'Use for text and icons when on bold warning backgrounds'
38
44
  }
39
45
  },
40
46
  link: {
41
47
  resting: {
42
48
  attributes: {
43
49
  group: 'paint',
44
- description: ''
50
+ state: 'active',
51
+ description: 'Use for links in a resting or hover state. Add an underline for hover states'
45
52
  }
46
53
  },
47
54
  pressed: {
48
55
  attributes: {
49
56
  group: 'paint',
50
- description: ''
57
+ state: 'active',
58
+ description: 'Use for links in a pressed state'
51
59
  }
52
60
  }
53
61
  },
54
62
  brand: {
55
63
  attributes: {
56
64
  group: 'paint',
57
- description: ''
65
+ state: 'active',
66
+ description: 'Use rarely for text on subtle brand backgrounds, such as in progress lozenges, or on subtle blue accent backgrounds, such as colored tags.'
58
67
  }
59
68
  },
60
69
  warning: {
61
70
  attributes: {
62
71
  group: 'paint',
63
- description: ''
72
+ state: 'active',
73
+ description: 'Use rarely for text on subtle warning backgrounds, such as in lozenges, or text on subtle warning backgrounds, such as in moved lozenges'
64
74
  }
65
75
  },
66
76
  danger: {
67
77
  attributes: {
68
78
  group: 'paint',
69
- description: ''
79
+ state: 'active',
80
+ description: 'Use rarely for critical text, such as input field error messaging, or text on subtle danger backgrounds, such as in removed lozenges, or text on subtle red accent backgrounds, such as colored tags.'
70
81
  }
71
82
  },
72
83
  success: {
73
84
  attributes: {
74
85
  group: 'paint',
75
- description: ''
86
+ state: 'active',
87
+ description: 'Use rarely for positive text, such as input field success messaging, or text on subtle success backgrounds, such as in success lozenges, or text on subtle green accent backgrounds, such as colored tags.'
76
88
  }
77
89
  },
78
90
  discovery: {
79
91
  attributes: {
80
92
  group: 'paint',
81
- description: ''
93
+ state: 'active',
94
+ description: 'Use rarely for text on subtle discovery backgrounds, such as in new lozenges, or text on subtle purple accent backgrounds, such as colored tags.'
82
95
  }
83
96
  },
84
97
  disabled: {
85
98
  attributes: {
86
99
  group: 'paint',
87
- description: ''
100
+ state: 'active',
101
+ description: 'Use for text and icons in disabled states'
88
102
  }
89
103
  }
90
104
  }
@@ -3,13 +3,15 @@ var shadow = {
3
3
  card: {
4
4
  attributes: {
5
5
  group: 'shadow',
6
- description: ''
6
+ state: 'active',
7
+ description: "\nUse for the box shadow of raised card elements, such as Jira cards on a Kanban board.\n\nCombine with background.overlay"
7
8
  }
8
9
  },
9
10
  overlay: {
10
11
  attributes: {
11
12
  group: 'shadow',
12
- description: ''
13
+ state: 'active',
14
+ description: "\nUse for the box shadow of overlay elements, such as modals, dropdown menus, flags, and inline dialogs (i.e. elements that sit on top of the UI).\n\nAlso use for the box shadow of raised cards in a dragged state.\n\nCombine with background.overlay"
13
15
  }
14
16
  }
15
17
  }
@@ -2,8 +2,16 @@ var utility = {
2
2
  UNSAFE_util: {
3
3
  transparent: {
4
4
  attributes: {
5
- description: '',
6
- group: 'raw'
5
+ group: 'raw',
6
+ state: 'active',
7
+ description: 'Transparent token used for backwards compatibility between new and old theming solutions'
8
+ }
9
+ },
10
+ MISSING_TOKEN: {
11
+ attributes: {
12
+ group: 'raw',
13
+ state: 'active',
14
+ description: 'Used as a placeholder when a suitable token does not exist'
7
15
  }
8
16
  }
9
17
  }