@atlaskit/tokens 0.3.0 → 0.5.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.
- package/CHANGELOG.md +38 -0
- package/README.md +28 -0
- package/babel-plugin/package.json +7 -0
- package/css/atlassian-dark.css +24 -23
- package/css/atlassian-light.css +21 -20
- package/dist/cjs/artifacts/rename-mapping.js +23 -0
- package/dist/cjs/{tokens → artifacts}/token-default-values.js +22 -21
- package/dist/cjs/{tokens → artifacts}/token-names.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +1786 -0
- package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +1766 -0
- package/dist/cjs/artifacts/types.js +5 -0
- package/dist/cjs/{entry-points/token-default-values.js → babel-plugin/index.js} +2 -2
- package/dist/cjs/babel-plugin/plugin.js +176 -0
- package/dist/cjs/entry-points/rename-mapping.js +1 -1
- package/dist/cjs/entry-points/token-names.js +1 -1
- package/dist/cjs/figma/synchronize-figma-tokens.js +41 -39
- package/dist/cjs/get-token.js +1 -1
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/tokens/atlassian-dark/utility/utility.js +3 -0
- package/dist/cjs/tokens/atlassian-light/utility/utility.js +3 -0
- package/dist/cjs/tokens/default/color/accent.js +13 -0
- package/dist/cjs/tokens/default/color/background.js +49 -0
- package/dist/cjs/tokens/default/color/border.js +2 -0
- package/dist/cjs/tokens/default/color/icon-border.js +5 -0
- package/dist/cjs/tokens/default/color/overlay.js +2 -0
- package/dist/cjs/tokens/default/color/text.js +14 -0
- package/dist/cjs/tokens/default/shadow/shadow.js +2 -0
- package/dist/cjs/tokens/default/utility/utility.js +10 -2
- package/dist/cjs/tokens/palette.js +145 -260
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/artifacts/rename-mapping.js +16 -0
- package/dist/es2019/{tokens → artifacts}/token-default-values.js +22 -21
- package/dist/es2019/{tokens → artifacts}/token-names.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +1779 -0
- package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +1759 -0
- package/dist/es2019/artifacts/types.js +1 -0
- package/dist/es2019/babel-plugin/index.js +1 -0
- package/dist/es2019/babel-plugin/plugin.js +151 -0
- package/dist/es2019/entry-points/rename-mapping.js +1 -1
- package/dist/es2019/entry-points/token-names.js +1 -1
- package/dist/es2019/figma/synchronize-figma-tokens.js +41 -39
- package/dist/es2019/get-token.js +1 -1
- package/dist/es2019/tokens/atlassian-dark/utility/utility.js +3 -0
- package/dist/es2019/tokens/atlassian-light/utility/utility.js +3 -0
- package/dist/es2019/tokens/default/color/accent.js +13 -0
- package/dist/es2019/tokens/default/color/background.js +49 -0
- package/dist/es2019/tokens/default/color/border.js +2 -0
- package/dist/es2019/tokens/default/color/icon-border.js +5 -0
- package/dist/es2019/tokens/default/color/overlay.js +2 -0
- package/dist/es2019/tokens/default/color/text.js +14 -0
- package/dist/es2019/tokens/default/shadow/shadow.js +2 -0
- package/dist/es2019/tokens/default/utility/utility.js +10 -2
- package/dist/es2019/tokens/palette.js +145 -260
- package/dist/es2019/version.json +1 -1
- package/dist/esm/artifacts/rename-mapping.js +16 -0
- package/dist/esm/{tokens → artifacts}/token-default-values.js +22 -21
- package/dist/esm/{tokens → artifacts}/token-names.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +1779 -0
- package/dist/esm/artifacts/tokens-raw/atlassian-light.js +1759 -0
- package/dist/esm/artifacts/types.js +1 -0
- package/dist/esm/babel-plugin/index.js +1 -0
- package/dist/esm/babel-plugin/plugin.js +158 -0
- package/dist/esm/entry-points/rename-mapping.js +1 -1
- package/dist/esm/entry-points/token-names.js +1 -1
- package/dist/esm/figma/synchronize-figma-tokens.js +41 -39
- package/dist/esm/get-token.js +1 -1
- package/dist/esm/tokens/atlassian-dark/utility/utility.js +3 -0
- package/dist/esm/tokens/atlassian-light/utility/utility.js +3 -0
- package/dist/esm/tokens/default/color/accent.js +13 -0
- package/dist/esm/tokens/default/color/background.js +49 -0
- package/dist/esm/tokens/default/color/border.js +2 -0
- package/dist/esm/tokens/default/color/icon-border.js +5 -0
- package/dist/esm/tokens/default/color/overlay.js +2 -0
- package/dist/esm/tokens/default/color/text.js +14 -0
- package/dist/esm/tokens/default/shadow/shadow.js +2 -0
- package/dist/esm/tokens/default/utility/utility.js +10 -2
- package/dist/esm/tokens/palette.js +145 -260
- package/dist/esm/version.json +1 -1
- package/dist/types/artifacts/rename-mapping.d.ts +21 -0
- package/dist/types/{tokens → artifacts}/token-default-values.d.ts +21 -20
- package/dist/types/{tokens → artifacts}/token-names.d.ts +2 -0
- package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +80 -0
- package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +56 -0
- package/dist/types/artifacts/types.d.ts +4 -0
- package/dist/types/babel-plugin/index.d.ts +1 -0
- package/dist/types/babel-plugin/plugin.d.ts +14 -0
- package/dist/types/entry-points/babel-plugin.d.ts +1 -0
- package/dist/types/entry-points/rename-mapping.d.ts +1 -1
- package/dist/types/entry-points/token-names.d.ts +2 -2
- package/dist/types/get-token.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/tokens/atlassian-dark/utility/utility.d.ts +10 -2
- package/dist/types/tokens/atlassian-light/utility/utility.d.ts +10 -2
- package/dist/types/tokens/default/utility/utility.d.ts +138 -2
- package/dist/types/types.d.ts +49 -14
- package/package.json +18 -6
- package/tokens-browser-extension/atlassian-theme.css +434 -360
- package/dist/cjs/tokens/rename-mapping.js +0 -29
- package/dist/es2019/entry-points/token-default-values.js +0 -1
- package/dist/es2019/tokens/rename-mapping.js +0 -21
- package/dist/esm/entry-points/token-default-values.js +0 -1
- package/dist/esm/tokens/rename-mapping.js +0 -21
- package/dist/types/entry-points/token-default-values.d.ts +0 -1
- package/dist/types/tokens/rename-mapping.d.ts +0 -24
- package/token-default-values/package.json +0 -7
|
@@ -10,24 +10,28 @@ var color = {
|
|
|
10
10
|
sunken: {
|
|
11
11
|
attributes: {
|
|
12
12
|
group: 'paint',
|
|
13
|
+
state: 'active',
|
|
13
14
|
description: 'Use as a secondary background for the UI'
|
|
14
15
|
}
|
|
15
16
|
},
|
|
16
17
|
default: {
|
|
17
18
|
attributes: {
|
|
18
19
|
group: 'paint',
|
|
20
|
+
state: 'active',
|
|
19
21
|
description: 'Use as the primary background for the UI'
|
|
20
22
|
}
|
|
21
23
|
},
|
|
22
24
|
card: {
|
|
23
25
|
attributes: {
|
|
24
26
|
group: 'paint',
|
|
27
|
+
state: 'active',
|
|
25
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',
|
|
34
|
+
state: 'active',
|
|
31
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
|
},
|
|
@@ -35,18 +39,21 @@ var color = {
|
|
|
35
39
|
resting: {
|
|
36
40
|
attributes: {
|
|
37
41
|
group: 'paint',
|
|
42
|
+
state: 'active',
|
|
38
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',
|
|
49
|
+
state: 'active',
|
|
44
50
|
description: 'Hover state of background.selected'
|
|
45
51
|
}
|
|
46
52
|
},
|
|
47
53
|
pressed: {
|
|
48
54
|
attributes: {
|
|
49
55
|
group: 'paint',
|
|
56
|
+
state: 'active',
|
|
50
57
|
description: 'Pressed state of background.selected'
|
|
51
58
|
}
|
|
52
59
|
}
|
|
@@ -54,12 +61,14 @@ var color = {
|
|
|
54
61
|
blanket: {
|
|
55
62
|
attributes: {
|
|
56
63
|
group: 'paint',
|
|
64
|
+
state: 'active',
|
|
57
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',
|
|
71
|
+
state: 'active',
|
|
63
72
|
description: 'Use for backgrounds of elements in a disabled state'
|
|
64
73
|
}
|
|
65
74
|
},
|
|
@@ -67,18 +76,21 @@ var color = {
|
|
|
67
76
|
resting: {
|
|
68
77
|
attributes: {
|
|
69
78
|
group: 'paint',
|
|
79
|
+
state: 'active',
|
|
70
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',
|
|
86
|
+
state: 'active',
|
|
76
87
|
description: 'Hover state of background.boldBrand'
|
|
77
88
|
}
|
|
78
89
|
},
|
|
79
90
|
pressed: {
|
|
80
91
|
attributes: {
|
|
81
92
|
group: 'paint',
|
|
93
|
+
state: 'active',
|
|
82
94
|
description: 'Pressed state of background.boldBrand'
|
|
83
95
|
}
|
|
84
96
|
}
|
|
@@ -87,18 +99,21 @@ var color = {
|
|
|
87
99
|
resting: {
|
|
88
100
|
attributes: {
|
|
89
101
|
group: 'paint',
|
|
102
|
+
state: 'active',
|
|
90
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',
|
|
109
|
+
state: 'active',
|
|
96
110
|
description: 'Hover state for background.subtleBrand'
|
|
97
111
|
}
|
|
98
112
|
},
|
|
99
113
|
pressed: {
|
|
100
114
|
attributes: {
|
|
101
115
|
group: 'paint',
|
|
116
|
+
state: 'active',
|
|
102
117
|
description: 'Pressed state for background.subtleBrand'
|
|
103
118
|
}
|
|
104
119
|
}
|
|
@@ -107,18 +122,21 @@ var color = {
|
|
|
107
122
|
resting: {
|
|
108
123
|
attributes: {
|
|
109
124
|
group: 'paint',
|
|
125
|
+
state: 'active',
|
|
110
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',
|
|
132
|
+
state: 'active',
|
|
116
133
|
description: 'Hover state of background.boldDanger'
|
|
117
134
|
}
|
|
118
135
|
},
|
|
119
136
|
pressed: {
|
|
120
137
|
attributes: {
|
|
121
138
|
group: 'paint',
|
|
139
|
+
state: 'active',
|
|
122
140
|
description: 'Pressed state of background.boldDanger'
|
|
123
141
|
}
|
|
124
142
|
}
|
|
@@ -127,18 +145,21 @@ var color = {
|
|
|
127
145
|
resting: {
|
|
128
146
|
attributes: {
|
|
129
147
|
group: 'paint',
|
|
148
|
+
state: 'active',
|
|
130
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',
|
|
155
|
+
state: 'active',
|
|
136
156
|
description: 'Hover state for background.subtleDanger'
|
|
137
157
|
}
|
|
138
158
|
},
|
|
139
159
|
pressed: {
|
|
140
160
|
attributes: {
|
|
141
161
|
group: 'paint',
|
|
162
|
+
state: 'active',
|
|
142
163
|
description: 'Pressed state for background.subtleDanger'
|
|
143
164
|
}
|
|
144
165
|
}
|
|
@@ -147,18 +168,21 @@ var color = {
|
|
|
147
168
|
resting: {
|
|
148
169
|
attributes: {
|
|
149
170
|
group: 'paint',
|
|
171
|
+
state: 'active',
|
|
150
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',
|
|
178
|
+
state: 'active',
|
|
156
179
|
description: 'Hover state of background.boldWarning'
|
|
157
180
|
}
|
|
158
181
|
},
|
|
159
182
|
pressed: {
|
|
160
183
|
attributes: {
|
|
161
184
|
group: 'paint',
|
|
185
|
+
state: 'active',
|
|
162
186
|
description: 'Pressed state of background.boldWarning'
|
|
163
187
|
}
|
|
164
188
|
}
|
|
@@ -167,18 +191,21 @@ var color = {
|
|
|
167
191
|
resting: {
|
|
168
192
|
attributes: {
|
|
169
193
|
group: 'paint',
|
|
194
|
+
state: 'active',
|
|
170
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',
|
|
201
|
+
state: 'active',
|
|
176
202
|
description: 'Hover state for background.subtleWarning'
|
|
177
203
|
}
|
|
178
204
|
},
|
|
179
205
|
pressed: {
|
|
180
206
|
attributes: {
|
|
181
207
|
group: 'paint',
|
|
208
|
+
state: 'active',
|
|
182
209
|
description: 'Pressed state for background.subtleWarning'
|
|
183
210
|
}
|
|
184
211
|
}
|
|
@@ -187,18 +214,21 @@ var color = {
|
|
|
187
214
|
resting: {
|
|
188
215
|
attributes: {
|
|
189
216
|
group: 'paint',
|
|
217
|
+
state: 'active',
|
|
190
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',
|
|
224
|
+
state: 'active',
|
|
196
225
|
description: 'Hover state of background.boldSuccess'
|
|
197
226
|
}
|
|
198
227
|
},
|
|
199
228
|
pressed: {
|
|
200
229
|
attributes: {
|
|
201
230
|
group: 'paint',
|
|
231
|
+
state: 'active',
|
|
202
232
|
description: 'Pressed state of background.boldSuccess'
|
|
203
233
|
}
|
|
204
234
|
}
|
|
@@ -207,18 +237,21 @@ var color = {
|
|
|
207
237
|
resting: {
|
|
208
238
|
attributes: {
|
|
209
239
|
group: 'paint',
|
|
240
|
+
state: 'active',
|
|
210
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',
|
|
247
|
+
state: 'active',
|
|
216
248
|
description: 'Hover state for background.subtleSuccess'
|
|
217
249
|
}
|
|
218
250
|
},
|
|
219
251
|
pressed: {
|
|
220
252
|
attributes: {
|
|
221
253
|
group: 'paint',
|
|
254
|
+
state: 'active',
|
|
222
255
|
description: 'Pressed state for background.subtleSuccess'
|
|
223
256
|
}
|
|
224
257
|
}
|
|
@@ -227,18 +260,21 @@ var color = {
|
|
|
227
260
|
resting: {
|
|
228
261
|
attributes: {
|
|
229
262
|
group: 'paint',
|
|
263
|
+
state: 'active',
|
|
230
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',
|
|
270
|
+
state: 'active',
|
|
236
271
|
description: 'Hover state of background.boldDiscovery'
|
|
237
272
|
}
|
|
238
273
|
},
|
|
239
274
|
pressed: {
|
|
240
275
|
attributes: {
|
|
241
276
|
group: 'paint',
|
|
277
|
+
state: 'active',
|
|
242
278
|
description: 'Pressed state of background.boldDiscovery'
|
|
243
279
|
}
|
|
244
280
|
}
|
|
@@ -247,18 +283,21 @@ var color = {
|
|
|
247
283
|
resting: {
|
|
248
284
|
attributes: {
|
|
249
285
|
group: 'paint',
|
|
286
|
+
state: 'active',
|
|
250
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',
|
|
293
|
+
state: 'active',
|
|
256
294
|
description: 'Hover state for background.subtleDiscovery'
|
|
257
295
|
}
|
|
258
296
|
},
|
|
259
297
|
pressed: {
|
|
260
298
|
attributes: {
|
|
261
299
|
group: 'paint',
|
|
300
|
+
state: 'active',
|
|
262
301
|
description: 'Pressed state for background.subtleDiscovery'
|
|
263
302
|
}
|
|
264
303
|
}
|
|
@@ -267,18 +306,21 @@ var color = {
|
|
|
267
306
|
resting: {
|
|
268
307
|
attributes: {
|
|
269
308
|
group: 'paint',
|
|
309
|
+
state: 'active',
|
|
270
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',
|
|
316
|
+
state: 'active',
|
|
276
317
|
description: 'Hover state of background.boldNeutral'
|
|
277
318
|
}
|
|
278
319
|
},
|
|
279
320
|
pressed: {
|
|
280
321
|
attributes: {
|
|
281
322
|
group: 'paint',
|
|
323
|
+
state: 'active',
|
|
282
324
|
description: 'Pressed state of background.boldNeutral'
|
|
283
325
|
}
|
|
284
326
|
}
|
|
@@ -287,12 +329,14 @@ var color = {
|
|
|
287
329
|
hover: {
|
|
288
330
|
attributes: {
|
|
289
331
|
group: 'paint',
|
|
332
|
+
state: 'active',
|
|
290
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',
|
|
339
|
+
state: 'active',
|
|
296
340
|
description: 'Pressed state for UIs that don’t have a default background, such as menu items or subtle buttons.'
|
|
297
341
|
}
|
|
298
342
|
}
|
|
@@ -301,18 +345,21 @@ var color = {
|
|
|
301
345
|
resting: {
|
|
302
346
|
attributes: {
|
|
303
347
|
group: 'paint',
|
|
348
|
+
state: 'active',
|
|
304
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',
|
|
355
|
+
state: 'active',
|
|
310
356
|
description: 'Hover state for background.subtleNeutral'
|
|
311
357
|
}
|
|
312
358
|
},
|
|
313
359
|
pressed: {
|
|
314
360
|
attributes: {
|
|
315
361
|
group: 'paint',
|
|
362
|
+
state: 'active',
|
|
316
363
|
description: 'Pressed state for background.subtleNeutral'
|
|
317
364
|
}
|
|
318
365
|
}
|
|
@@ -321,12 +368,14 @@ var color = {
|
|
|
321
368
|
resting: {
|
|
322
369
|
attributes: {
|
|
323
370
|
group: 'paint',
|
|
371
|
+
state: 'active',
|
|
324
372
|
description: 'Hover state for background.subtleBorderedNeutral'
|
|
325
373
|
}
|
|
326
374
|
},
|
|
327
375
|
pressed: {
|
|
328
376
|
attributes: {
|
|
329
377
|
group: 'paint',
|
|
378
|
+
state: 'active',
|
|
330
379
|
description: 'Pressed state for background.subtleBorderedNeutral'
|
|
331
380
|
}
|
|
332
381
|
}
|
|
@@ -10,12 +10,14 @@ var color = {
|
|
|
10
10
|
focus: {
|
|
11
11
|
attributes: {
|
|
12
12
|
group: 'paint',
|
|
13
|
+
state: 'active',
|
|
13
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',
|
|
20
|
+
state: 'active',
|
|
19
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
|
}
|
|
@@ -10,30 +10,35 @@ var color = {
|
|
|
10
10
|
brand: {
|
|
11
11
|
attributes: {
|
|
12
12
|
group: 'paint',
|
|
13
|
+
state: 'active',
|
|
13
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',
|
|
20
|
+
state: 'active',
|
|
19
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',
|
|
27
|
+
state: 'active',
|
|
25
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',
|
|
34
|
+
state: 'active',
|
|
31
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',
|
|
41
|
+
state: 'active',
|
|
37
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
|
}
|
|
@@ -10,12 +10,14 @@ var color = {
|
|
|
10
10
|
hover: {
|
|
11
11
|
attributes: {
|
|
12
12
|
group: 'paint',
|
|
13
|
+
state: 'active',
|
|
13
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',
|
|
20
|
+
state: 'active',
|
|
19
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
|
}
|
|
@@ -10,36 +10,42 @@ var color = {
|
|
|
10
10
|
selected: {
|
|
11
11
|
attributes: {
|
|
12
12
|
group: 'paint',
|
|
13
|
+
state: 'active',
|
|
13
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',
|
|
20
|
+
state: 'active',
|
|
19
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',
|
|
27
|
+
state: 'active',
|
|
25
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',
|
|
34
|
+
state: 'active',
|
|
31
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',
|
|
41
|
+
state: 'active',
|
|
37
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',
|
|
48
|
+
state: 'active',
|
|
43
49
|
description: 'Use for text and icons when on bold warning backgrounds'
|
|
44
50
|
}
|
|
45
51
|
},
|
|
@@ -47,12 +53,14 @@ var color = {
|
|
|
47
53
|
resting: {
|
|
48
54
|
attributes: {
|
|
49
55
|
group: 'paint',
|
|
56
|
+
state: 'active',
|
|
50
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',
|
|
63
|
+
state: 'active',
|
|
56
64
|
description: 'Use for links in a pressed state'
|
|
57
65
|
}
|
|
58
66
|
}
|
|
@@ -60,36 +68,42 @@ var color = {
|
|
|
60
68
|
brand: {
|
|
61
69
|
attributes: {
|
|
62
70
|
group: 'paint',
|
|
71
|
+
state: 'active',
|
|
63
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',
|
|
78
|
+
state: 'active',
|
|
69
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',
|
|
85
|
+
state: 'active',
|
|
75
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',
|
|
92
|
+
state: 'active',
|
|
81
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',
|
|
99
|
+
state: 'active',
|
|
87
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',
|
|
106
|
+
state: 'active',
|
|
93
107
|
description: 'Use for text and icons in disabled states'
|
|
94
108
|
}
|
|
95
109
|
}
|
|
@@ -9,12 +9,14 @@ var shadow = {
|
|
|
9
9
|
card: {
|
|
10
10
|
attributes: {
|
|
11
11
|
group: 'shadow',
|
|
12
|
+
state: 'active',
|
|
12
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',
|
|
19
|
+
state: 'active',
|
|
18
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
|
}
|
|
@@ -8,8 +8,16 @@ var utility = {
|
|
|
8
8
|
UNSAFE_util: {
|
|
9
9
|
transparent: {
|
|
10
10
|
attributes: {
|
|
11
|
-
|
|
12
|
-
|
|
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
|
}
|