@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
@@ -4,76 +4,93 @@ const 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: `
30
+ Use 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).
31
+
32
+ Also use for the background of raised cards in a dragged state.
33
+
34
+ Combine with shadow.overlay.`
26
35
  }
27
36
  },
28
37
  selected: {
29
38
  resting: {
30
39
  attributes: {
31
40
  group: 'paint',
32
- description: ''
41
+ state: 'active',
42
+ description: 'Use for backgrounds of elements in a selected state'
33
43
  }
34
44
  },
35
45
  hover: {
36
46
  attributes: {
37
47
  group: 'paint',
38
- description: ''
48
+ state: 'active',
49
+ description: 'Hover state of background.selected'
39
50
  }
40
51
  },
41
52
  pressed: {
42
53
  attributes: {
43
54
  group: 'paint',
44
- description: ''
55
+ state: 'active',
56
+ description: 'Pressed state of background.selected'
45
57
  }
46
58
  }
47
59
  },
48
60
  blanket: {
49
61
  attributes: {
50
62
  group: 'paint',
51
- description: ''
63
+ state: 'active',
64
+ description: 'Use for the screen overlay that appears with modal dialogs'
52
65
  }
53
66
  },
54
67
  disabled: {
55
68
  attributes: {
56
69
  group: 'paint',
57
- description: ''
70
+ state: 'active',
71
+ description: 'Use for backgrounds of elements in a disabled state'
58
72
  }
59
73
  },
60
74
  boldBrand: {
61
75
  resting: {
62
76
  attributes: {
63
77
  group: 'paint',
64
- description: ''
78
+ state: 'active',
79
+ description: 'A vibrant background for small UI elements like primary buttons and bold in progress lozenges.'
65
80
  }
66
81
  },
67
82
  hover: {
68
83
  attributes: {
69
84
  group: 'paint',
70
- description: ''
85
+ state: 'active',
86
+ description: 'Hover state of background.boldBrand'
71
87
  }
72
88
  },
73
89
  pressed: {
74
90
  attributes: {
75
91
  group: 'paint',
76
- description: ''
92
+ state: 'active',
93
+ description: 'Pressed state of background.boldBrand'
77
94
  }
78
95
  }
79
96
  },
@@ -81,19 +98,22 @@ const color = {
81
98
  resting: {
82
99
  attributes: {
83
100
  group: 'paint',
84
- description: ''
101
+ state: 'active',
102
+ description: 'Use for subdued backgrounds of UI elements like information section messages and in progress lozenges.'
85
103
  }
86
104
  },
87
105
  hover: {
88
106
  attributes: {
89
107
  group: 'paint',
90
- description: ''
108
+ state: 'active',
109
+ description: 'Hover state for background.subtleBrand'
91
110
  }
92
111
  },
93
112
  pressed: {
94
113
  attributes: {
95
114
  group: 'paint',
96
- description: ''
115
+ state: 'active',
116
+ description: 'Pressed state for background.subtleBrand'
97
117
  }
98
118
  }
99
119
  },
@@ -101,19 +121,22 @@ const color = {
101
121
  resting: {
102
122
  attributes: {
103
123
  group: 'paint',
104
- description: ''
124
+ state: 'active',
125
+ description: 'A vibrant background for small UI elements like danger buttons and bold removed lozenges.'
105
126
  }
106
127
  },
107
128
  hover: {
108
129
  attributes: {
109
130
  group: 'paint',
110
- description: ''
131
+ state: 'active',
132
+ description: 'Hover state of background.boldDanger'
111
133
  }
112
134
  },
113
135
  pressed: {
114
136
  attributes: {
115
137
  group: 'paint',
116
- description: ''
138
+ state: 'active',
139
+ description: 'Pressed state of background.boldDanger'
117
140
  }
118
141
  }
119
142
  },
@@ -121,19 +144,22 @@ const color = {
121
144
  resting: {
122
145
  attributes: {
123
146
  group: 'paint',
124
- description: ''
147
+ state: 'active',
148
+ description: 'Use for subdued backgrounds of UI elements like error section messages and removed lozenges.'
125
149
  }
126
150
  },
127
151
  hover: {
128
152
  attributes: {
129
153
  group: 'paint',
130
- description: ''
154
+ state: 'active',
155
+ description: 'Hover state for background.subtleDanger'
131
156
  }
132
157
  },
133
158
  pressed: {
134
159
  attributes: {
135
160
  group: 'paint',
136
- description: ''
161
+ state: 'active',
162
+ description: 'Pressed state for background.subtleDanger'
137
163
  }
138
164
  }
139
165
  },
@@ -141,19 +167,22 @@ const color = {
141
167
  resting: {
142
168
  attributes: {
143
169
  group: 'paint',
144
- description: ''
170
+ state: 'active',
171
+ description: 'A vibrant background for small UI elements like warning buttons and bold moved lozenges.'
145
172
  }
146
173
  },
147
174
  hover: {
148
175
  attributes: {
149
176
  group: 'paint',
150
- description: ''
177
+ state: 'active',
178
+ description: 'Hover state of background.boldWarning'
151
179
  }
152
180
  },
153
181
  pressed: {
154
182
  attributes: {
155
183
  group: 'paint',
156
- description: ''
184
+ state: 'active',
185
+ description: 'Pressed state of background.boldWarning'
157
186
  }
158
187
  }
159
188
  },
@@ -161,19 +190,22 @@ const color = {
161
190
  resting: {
162
191
  attributes: {
163
192
  group: 'paint',
164
- description: ''
193
+ state: 'active',
194
+ description: 'Use for subdued backgrounds of UI elements like warning section messages and moved lozenges.'
165
195
  }
166
196
  },
167
197
  hover: {
168
198
  attributes: {
169
199
  group: 'paint',
170
- description: ''
200
+ state: 'active',
201
+ description: 'Hover state for background.subtleWarning'
171
202
  }
172
203
  },
173
204
  pressed: {
174
205
  attributes: {
175
206
  group: 'paint',
176
- description: ''
207
+ state: 'active',
208
+ description: 'Pressed state for background.subtleWarning'
177
209
  }
178
210
  }
179
211
  },
@@ -181,19 +213,22 @@ const color = {
181
213
  resting: {
182
214
  attributes: {
183
215
  group: 'paint',
184
- description: ''
216
+ state: 'active',
217
+ description: 'A vibrant background for small UI elements like checked toggles and bold success lozenges.'
185
218
  }
186
219
  },
187
220
  hover: {
188
221
  attributes: {
189
222
  group: 'paint',
190
- description: ''
223
+ state: 'active',
224
+ description: 'Hover state of background.boldSuccess'
191
225
  }
192
226
  },
193
227
  pressed: {
194
228
  attributes: {
195
229
  group: 'paint',
196
- description: ''
230
+ state: 'active',
231
+ description: 'Pressed state of background.boldSuccess'
197
232
  }
198
233
  }
199
234
  },
@@ -201,19 +236,22 @@ const color = {
201
236
  resting: {
202
237
  attributes: {
203
238
  group: 'paint',
204
- description: ''
239
+ state: 'active',
240
+ description: 'Use for subdued backgrounds of UI elements like success section messages and success lozenges. '
205
241
  }
206
242
  },
207
243
  hover: {
208
244
  attributes: {
209
245
  group: 'paint',
210
- description: ''
246
+ state: 'active',
247
+ description: 'Hover state for background.subtleSuccess'
211
248
  }
212
249
  },
213
250
  pressed: {
214
251
  attributes: {
215
252
  group: 'paint',
216
- description: ''
253
+ state: 'active',
254
+ description: 'Pressed state for background.subtleSuccess'
217
255
  }
218
256
  }
219
257
  },
@@ -221,19 +259,22 @@ const color = {
221
259
  resting: {
222
260
  attributes: {
223
261
  group: 'paint',
224
- description: ''
262
+ state: 'active',
263
+ description: 'A vibrant background for small UI elements like onboarding buttons and bold new lozenges.'
225
264
  }
226
265
  },
227
266
  hover: {
228
267
  attributes: {
229
268
  group: 'paint',
230
- description: ''
269
+ state: 'active',
270
+ description: 'Hover state of background.boldDiscovery'
231
271
  }
232
272
  },
233
273
  pressed: {
234
274
  attributes: {
235
275
  group: 'paint',
236
- description: ''
276
+ state: 'active',
277
+ description: 'Pressed state of background.boldDiscovery'
237
278
  }
238
279
  }
239
280
  },
@@ -241,19 +282,22 @@ const color = {
241
282
  resting: {
242
283
  attributes: {
243
284
  group: 'paint',
244
- description: ''
285
+ state: 'active',
286
+ description: 'Use for subdued backgrounds of UI elements like discovery section messages and new lozenges.'
245
287
  }
246
288
  },
247
289
  hover: {
248
290
  attributes: {
249
291
  group: 'paint',
250
- description: ''
292
+ state: 'active',
293
+ description: 'Hover state for background.subtleDiscovery'
251
294
  }
252
295
  },
253
296
  pressed: {
254
297
  attributes: {
255
298
  group: 'paint',
256
- description: ''
299
+ state: 'active',
300
+ description: 'Pressed state for background.subtleDiscovery'
257
301
  }
258
302
  }
259
303
  },
@@ -261,19 +305,22 @@ const color = {
261
305
  resting: {
262
306
  attributes: {
263
307
  group: 'paint',
264
- description: ''
308
+ state: 'active',
309
+ description: 'A vibrant background for small UI elements like unchecked toggles and bold default lozenges.'
265
310
  }
266
311
  },
267
312
  hover: {
268
313
  attributes: {
269
314
  group: 'paint',
270
- description: ''
315
+ state: 'active',
316
+ description: 'Hover state of background.boldNeutral'
271
317
  }
272
318
  },
273
319
  pressed: {
274
320
  attributes: {
275
321
  group: 'paint',
276
- description: ''
322
+ state: 'active',
323
+ description: 'Pressed state of background.boldNeutral'
277
324
  }
278
325
  }
279
326
  },
@@ -281,13 +328,15 @@ const color = {
281
328
  hover: {
282
329
  attributes: {
283
330
  group: 'paint',
284
- description: ''
331
+ state: 'active',
332
+ description: 'Hover state for UIs that don’t have a default background, such as menu items or subtle buttons.'
285
333
  }
286
334
  },
287
335
  pressed: {
288
336
  attributes: {
289
337
  group: 'paint',
290
- description: ''
338
+ state: 'active',
339
+ description: 'Pressed state for UIs that don’t have a default background, such as menu items or subtle buttons.'
291
340
  }
292
341
  }
293
342
  },
@@ -295,19 +344,22 @@ const color = {
295
344
  resting: {
296
345
  attributes: {
297
346
  group: 'paint',
298
- description: ''
347
+ state: 'active',
348
+ description: 'Use as the default background of UI elements like buttons, lozenges, and tags.'
299
349
  }
300
350
  },
301
351
  hover: {
302
352
  attributes: {
303
353
  group: 'paint',
304
- description: ''
354
+ state: 'active',
355
+ description: 'Hover state for background.subtleNeutral'
305
356
  }
306
357
  },
307
358
  pressed: {
308
359
  attributes: {
309
360
  group: 'paint',
310
- description: ''
361
+ state: 'active',
362
+ description: 'Pressed state for background.subtleNeutral'
311
363
  }
312
364
  }
313
365
  },
@@ -315,13 +367,15 @@ const color = {
315
367
  resting: {
316
368
  attributes: {
317
369
  group: 'paint',
318
- description: ''
370
+ state: 'active',
371
+ description: 'Hover state for background.subtleBorderedNeutral'
319
372
  }
320
373
  },
321
374
  pressed: {
322
375
  attributes: {
323
376
  group: 'paint',
324
- description: ''
377
+ state: 'active',
378
+ description: 'Pressed state for background.subtleBorderedNeutral'
325
379
  }
326
380
  }
327
381
  }
@@ -4,13 +4,15 @@ const 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,54 @@ const color = {
4
4
  brand: {
5
5
  attributes: {
6
6
  group: 'paint',
7
- description: ''
7
+ state: 'active',
8
+ description: `
9
+ Use rarely for icons or borders representing brand, in-progress, or information, such as the icons in information sections messages.
10
+
11
+ Also use for blue icons or borders when there is no meaning tied to the color, such as file type icons.`
8
12
  }
9
13
  },
10
14
  danger: {
11
15
  attributes: {
12
16
  group: 'paint',
13
- description: ''
17
+ state: 'active',
18
+ description: `
19
+ Use rarely for icons and borders representing critical information, such the icons in error section messages or the borders on invalid text fields.
20
+
21
+ Also use for red icons or borders when there is no meaning tied to the color, such as file type icons.`
14
22
  }
15
23
  },
16
24
  warning: {
17
25
  attributes: {
18
26
  group: 'paint',
19
- description: ''
27
+ state: 'active',
28
+ description: `
29
+ Use rarely for icons and borders representing semi-urgent information, such as the icons in warning section messages.
30
+
31
+ Also use for yellow icons or borders when there is no meaning tied to the color, such as file type icons.
32
+ `
20
33
  }
21
34
  },
22
35
  success: {
23
36
  attributes: {
24
37
  group: 'paint',
25
- description: ''
38
+ state: 'active',
39
+ description: `
40
+ Use rarely for icons and borders representing positive information, such as the icons in success section messages or the borders on validated text fields.
41
+
42
+ Also use for green icons or borders when there is no meaning tied to the color, such as file type icons.
43
+ `
26
44
  }
27
45
  },
28
46
  discovery: {
29
47
  attributes: {
30
48
  group: 'paint',
31
- description: ''
49
+ state: 'active',
50
+ description: `
51
+ Use rarely for icons and borders representing new information, such as the icons in discovery section mesages or the borders in onboarding spotlights.
52
+
53
+ Also use for purple icons or borders when there is no meaning tied to the color, such as file type icons.
54
+ `
32
55
  }
33
56
  }
34
57
  }
@@ -4,13 +4,15 @@ const 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,108 @@ const 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: `
23
+ Use for secondary text, such navigation, subtle button links, input field labels, and all caps subheadings.
24
+
25
+ Use for icon-only buttons, or icons paired with text.highEmphasis text
26
+ `
20
27
  }
21
28
  },
22
29
  lowEmphasis: {
23
30
  attributes: {
24
31
  group: 'paint',
25
- description: ''
32
+ state: 'active',
33
+ description: `
34
+ Use for tertiary text, such as meta-data, breadcrumbs, input field placeholder and helper text.
35
+
36
+ Use for icons that are paired with text.medEmphasis text`
26
37
  }
27
38
  },
28
39
  onBold: {
29
40
  attributes: {
30
41
  group: 'paint',
31
- description: ''
42
+ state: 'active',
43
+ description: 'Use for text and icons when on bold backgrounds'
32
44
  }
33
45
  },
34
46
  onBoldWarning: {
35
47
  attributes: {
36
48
  group: 'paint',
37
- description: ''
49
+ state: 'active',
50
+ description: 'Use for text and icons when on bold warning backgrounds'
38
51
  }
39
52
  },
40
53
  link: {
41
54
  resting: {
42
55
  attributes: {
43
56
  group: 'paint',
44
- description: ''
57
+ state: 'active',
58
+ description: 'Use for links in a resting or hover state. Add an underline for hover states'
45
59
  }
46
60
  },
47
61
  pressed: {
48
62
  attributes: {
49
63
  group: 'paint',
50
- description: ''
64
+ state: 'active',
65
+ description: 'Use for links in a pressed state'
51
66
  }
52
67
  }
53
68
  },
54
69
  brand: {
55
70
  attributes: {
56
71
  group: 'paint',
57
- description: ''
72
+ state: 'active',
73
+ 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
74
  }
59
75
  },
60
76
  warning: {
61
77
  attributes: {
62
78
  group: 'paint',
63
- description: ''
79
+ state: 'active',
80
+ 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
81
  }
65
82
  },
66
83
  danger: {
67
84
  attributes: {
68
85
  group: 'paint',
69
- description: ''
86
+ state: 'active',
87
+ 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
88
  }
71
89
  },
72
90
  success: {
73
91
  attributes: {
74
92
  group: 'paint',
75
- description: ''
93
+ state: 'active',
94
+ 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
95
  }
77
96
  },
78
97
  discovery: {
79
98
  attributes: {
80
99
  group: 'paint',
81
- description: ''
100
+ state: 'active',
101
+ 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
102
  }
83
103
  },
84
104
  disabled: {
85
105
  attributes: {
86
106
  group: 'paint',
87
- description: ''
107
+ state: 'active',
108
+ description: 'Use for text and icons in disabled states'
88
109
  }
89
110
  }
90
111
  }
@@ -3,13 +3,23 @@ const shadow = {
3
3
  card: {
4
4
  attributes: {
5
5
  group: 'shadow',
6
- description: ''
6
+ state: 'active',
7
+ description: `
8
+ Use for the box shadow of raised card elements, such as Jira cards on a Kanban board.
9
+
10
+ Combine with background.overlay`
7
11
  }
8
12
  },
9
13
  overlay: {
10
14
  attributes: {
11
15
  group: 'shadow',
12
- description: ''
16
+ state: 'active',
17
+ description: `
18
+ Use 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).
19
+
20
+ Also use for the box shadow of raised cards in a dragged state.
21
+
22
+ Combine with background.overlay`
13
23
  }
14
24
  }
15
25
  }