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