@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
|
@@ -4,24 +4,28 @@ var color = {
|
|
|
4
4
|
sunken: {
|
|
5
5
|
attributes: {
|
|
6
6
|
group: 'paint',
|
|
7
|
+
state: 'active',
|
|
7
8
|
description: 'Use as a secondary background for the UI'
|
|
8
9
|
}
|
|
9
10
|
},
|
|
10
11
|
default: {
|
|
11
12
|
attributes: {
|
|
12
13
|
group: 'paint',
|
|
14
|
+
state: 'active',
|
|
13
15
|
description: 'Use as the primary background for the UI'
|
|
14
16
|
}
|
|
15
17
|
},
|
|
16
18
|
card: {
|
|
17
19
|
attributes: {
|
|
18
20
|
group: 'paint',
|
|
21
|
+
state: 'active',
|
|
19
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',
|
|
28
|
+
state: 'active',
|
|
25
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
|
},
|
|
@@ -29,18 +33,21 @@ var color = {
|
|
|
29
33
|
resting: {
|
|
30
34
|
attributes: {
|
|
31
35
|
group: 'paint',
|
|
36
|
+
state: 'active',
|
|
32
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',
|
|
43
|
+
state: 'active',
|
|
38
44
|
description: 'Hover state of background.selected'
|
|
39
45
|
}
|
|
40
46
|
},
|
|
41
47
|
pressed: {
|
|
42
48
|
attributes: {
|
|
43
49
|
group: 'paint',
|
|
50
|
+
state: 'active',
|
|
44
51
|
description: 'Pressed state of background.selected'
|
|
45
52
|
}
|
|
46
53
|
}
|
|
@@ -48,12 +55,14 @@ var color = {
|
|
|
48
55
|
blanket: {
|
|
49
56
|
attributes: {
|
|
50
57
|
group: 'paint',
|
|
58
|
+
state: 'active',
|
|
51
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',
|
|
65
|
+
state: 'active',
|
|
57
66
|
description: 'Use for backgrounds of elements in a disabled state'
|
|
58
67
|
}
|
|
59
68
|
},
|
|
@@ -61,18 +70,21 @@ var color = {
|
|
|
61
70
|
resting: {
|
|
62
71
|
attributes: {
|
|
63
72
|
group: 'paint',
|
|
73
|
+
state: 'active',
|
|
64
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',
|
|
80
|
+
state: 'active',
|
|
70
81
|
description: 'Hover state of background.boldBrand'
|
|
71
82
|
}
|
|
72
83
|
},
|
|
73
84
|
pressed: {
|
|
74
85
|
attributes: {
|
|
75
86
|
group: 'paint',
|
|
87
|
+
state: 'active',
|
|
76
88
|
description: 'Pressed state of background.boldBrand'
|
|
77
89
|
}
|
|
78
90
|
}
|
|
@@ -81,18 +93,21 @@ var color = {
|
|
|
81
93
|
resting: {
|
|
82
94
|
attributes: {
|
|
83
95
|
group: 'paint',
|
|
96
|
+
state: 'active',
|
|
84
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',
|
|
103
|
+
state: 'active',
|
|
90
104
|
description: 'Hover state for background.subtleBrand'
|
|
91
105
|
}
|
|
92
106
|
},
|
|
93
107
|
pressed: {
|
|
94
108
|
attributes: {
|
|
95
109
|
group: 'paint',
|
|
110
|
+
state: 'active',
|
|
96
111
|
description: 'Pressed state for background.subtleBrand'
|
|
97
112
|
}
|
|
98
113
|
}
|
|
@@ -101,18 +116,21 @@ var color = {
|
|
|
101
116
|
resting: {
|
|
102
117
|
attributes: {
|
|
103
118
|
group: 'paint',
|
|
119
|
+
state: 'active',
|
|
104
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',
|
|
126
|
+
state: 'active',
|
|
110
127
|
description: 'Hover state of background.boldDanger'
|
|
111
128
|
}
|
|
112
129
|
},
|
|
113
130
|
pressed: {
|
|
114
131
|
attributes: {
|
|
115
132
|
group: 'paint',
|
|
133
|
+
state: 'active',
|
|
116
134
|
description: 'Pressed state of background.boldDanger'
|
|
117
135
|
}
|
|
118
136
|
}
|
|
@@ -121,18 +139,21 @@ var color = {
|
|
|
121
139
|
resting: {
|
|
122
140
|
attributes: {
|
|
123
141
|
group: 'paint',
|
|
142
|
+
state: 'active',
|
|
124
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',
|
|
149
|
+
state: 'active',
|
|
130
150
|
description: 'Hover state for background.subtleDanger'
|
|
131
151
|
}
|
|
132
152
|
},
|
|
133
153
|
pressed: {
|
|
134
154
|
attributes: {
|
|
135
155
|
group: 'paint',
|
|
156
|
+
state: 'active',
|
|
136
157
|
description: 'Pressed state for background.subtleDanger'
|
|
137
158
|
}
|
|
138
159
|
}
|
|
@@ -141,18 +162,21 @@ var color = {
|
|
|
141
162
|
resting: {
|
|
142
163
|
attributes: {
|
|
143
164
|
group: 'paint',
|
|
165
|
+
state: 'active',
|
|
144
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',
|
|
172
|
+
state: 'active',
|
|
150
173
|
description: 'Hover state of background.boldWarning'
|
|
151
174
|
}
|
|
152
175
|
},
|
|
153
176
|
pressed: {
|
|
154
177
|
attributes: {
|
|
155
178
|
group: 'paint',
|
|
179
|
+
state: 'active',
|
|
156
180
|
description: 'Pressed state of background.boldWarning'
|
|
157
181
|
}
|
|
158
182
|
}
|
|
@@ -161,18 +185,21 @@ var color = {
|
|
|
161
185
|
resting: {
|
|
162
186
|
attributes: {
|
|
163
187
|
group: 'paint',
|
|
188
|
+
state: 'active',
|
|
164
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',
|
|
195
|
+
state: 'active',
|
|
170
196
|
description: 'Hover state for background.subtleWarning'
|
|
171
197
|
}
|
|
172
198
|
},
|
|
173
199
|
pressed: {
|
|
174
200
|
attributes: {
|
|
175
201
|
group: 'paint',
|
|
202
|
+
state: 'active',
|
|
176
203
|
description: 'Pressed state for background.subtleWarning'
|
|
177
204
|
}
|
|
178
205
|
}
|
|
@@ -181,18 +208,21 @@ var color = {
|
|
|
181
208
|
resting: {
|
|
182
209
|
attributes: {
|
|
183
210
|
group: 'paint',
|
|
211
|
+
state: 'active',
|
|
184
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',
|
|
218
|
+
state: 'active',
|
|
190
219
|
description: 'Hover state of background.boldSuccess'
|
|
191
220
|
}
|
|
192
221
|
},
|
|
193
222
|
pressed: {
|
|
194
223
|
attributes: {
|
|
195
224
|
group: 'paint',
|
|
225
|
+
state: 'active',
|
|
196
226
|
description: 'Pressed state of background.boldSuccess'
|
|
197
227
|
}
|
|
198
228
|
}
|
|
@@ -201,18 +231,21 @@ var color = {
|
|
|
201
231
|
resting: {
|
|
202
232
|
attributes: {
|
|
203
233
|
group: 'paint',
|
|
234
|
+
state: 'active',
|
|
204
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',
|
|
241
|
+
state: 'active',
|
|
210
242
|
description: 'Hover state for background.subtleSuccess'
|
|
211
243
|
}
|
|
212
244
|
},
|
|
213
245
|
pressed: {
|
|
214
246
|
attributes: {
|
|
215
247
|
group: 'paint',
|
|
248
|
+
state: 'active',
|
|
216
249
|
description: 'Pressed state for background.subtleSuccess'
|
|
217
250
|
}
|
|
218
251
|
}
|
|
@@ -221,18 +254,21 @@ var color = {
|
|
|
221
254
|
resting: {
|
|
222
255
|
attributes: {
|
|
223
256
|
group: 'paint',
|
|
257
|
+
state: 'active',
|
|
224
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',
|
|
264
|
+
state: 'active',
|
|
230
265
|
description: 'Hover state of background.boldDiscovery'
|
|
231
266
|
}
|
|
232
267
|
},
|
|
233
268
|
pressed: {
|
|
234
269
|
attributes: {
|
|
235
270
|
group: 'paint',
|
|
271
|
+
state: 'active',
|
|
236
272
|
description: 'Pressed state of background.boldDiscovery'
|
|
237
273
|
}
|
|
238
274
|
}
|
|
@@ -241,18 +277,21 @@ var color = {
|
|
|
241
277
|
resting: {
|
|
242
278
|
attributes: {
|
|
243
279
|
group: 'paint',
|
|
280
|
+
state: 'active',
|
|
244
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',
|
|
287
|
+
state: 'active',
|
|
250
288
|
description: 'Hover state for background.subtleDiscovery'
|
|
251
289
|
}
|
|
252
290
|
},
|
|
253
291
|
pressed: {
|
|
254
292
|
attributes: {
|
|
255
293
|
group: 'paint',
|
|
294
|
+
state: 'active',
|
|
256
295
|
description: 'Pressed state for background.subtleDiscovery'
|
|
257
296
|
}
|
|
258
297
|
}
|
|
@@ -261,18 +300,21 @@ var color = {
|
|
|
261
300
|
resting: {
|
|
262
301
|
attributes: {
|
|
263
302
|
group: 'paint',
|
|
303
|
+
state: 'active',
|
|
264
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',
|
|
310
|
+
state: 'active',
|
|
270
311
|
description: 'Hover state of background.boldNeutral'
|
|
271
312
|
}
|
|
272
313
|
},
|
|
273
314
|
pressed: {
|
|
274
315
|
attributes: {
|
|
275
316
|
group: 'paint',
|
|
317
|
+
state: 'active',
|
|
276
318
|
description: 'Pressed state of background.boldNeutral'
|
|
277
319
|
}
|
|
278
320
|
}
|
|
@@ -281,12 +323,14 @@ var color = {
|
|
|
281
323
|
hover: {
|
|
282
324
|
attributes: {
|
|
283
325
|
group: 'paint',
|
|
326
|
+
state: 'active',
|
|
284
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',
|
|
333
|
+
state: 'active',
|
|
290
334
|
description: 'Pressed state for UIs that don’t have a default background, such as menu items or subtle buttons.'
|
|
291
335
|
}
|
|
292
336
|
}
|
|
@@ -295,18 +339,21 @@ var color = {
|
|
|
295
339
|
resting: {
|
|
296
340
|
attributes: {
|
|
297
341
|
group: 'paint',
|
|
342
|
+
state: 'active',
|
|
298
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',
|
|
349
|
+
state: 'active',
|
|
304
350
|
description: 'Hover state for background.subtleNeutral'
|
|
305
351
|
}
|
|
306
352
|
},
|
|
307
353
|
pressed: {
|
|
308
354
|
attributes: {
|
|
309
355
|
group: 'paint',
|
|
356
|
+
state: 'active',
|
|
310
357
|
description: 'Pressed state for background.subtleNeutral'
|
|
311
358
|
}
|
|
312
359
|
}
|
|
@@ -315,12 +362,14 @@ var color = {
|
|
|
315
362
|
resting: {
|
|
316
363
|
attributes: {
|
|
317
364
|
group: 'paint',
|
|
365
|
+
state: 'active',
|
|
318
366
|
description: 'Hover state for background.subtleBorderedNeutral'
|
|
319
367
|
}
|
|
320
368
|
},
|
|
321
369
|
pressed: {
|
|
322
370
|
attributes: {
|
|
323
371
|
group: 'paint',
|
|
372
|
+
state: 'active',
|
|
324
373
|
description: 'Pressed state for background.subtleBorderedNeutral'
|
|
325
374
|
}
|
|
326
375
|
}
|
|
@@ -4,12 +4,14 @@ var color = {
|
|
|
4
4
|
focus: {
|
|
5
5
|
attributes: {
|
|
6
6
|
group: 'paint',
|
|
7
|
+
state: 'active',
|
|
7
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',
|
|
14
|
+
state: 'active',
|
|
13
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
|
}
|
|
@@ -4,30 +4,35 @@ var color = {
|
|
|
4
4
|
brand: {
|
|
5
5
|
attributes: {
|
|
6
6
|
group: 'paint',
|
|
7
|
+
state: 'active',
|
|
7
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',
|
|
14
|
+
state: 'active',
|
|
13
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',
|
|
21
|
+
state: 'active',
|
|
19
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',
|
|
28
|
+
state: 'active',
|
|
25
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',
|
|
35
|
+
state: 'active',
|
|
31
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
|
}
|
|
@@ -4,12 +4,14 @@ var color = {
|
|
|
4
4
|
hover: {
|
|
5
5
|
attributes: {
|
|
6
6
|
group: 'paint',
|
|
7
|
+
state: 'active',
|
|
7
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',
|
|
14
|
+
state: 'active',
|
|
13
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
|
}
|
|
@@ -4,36 +4,42 @@ var color = {
|
|
|
4
4
|
selected: {
|
|
5
5
|
attributes: {
|
|
6
6
|
group: 'paint',
|
|
7
|
+
state: 'active',
|
|
7
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',
|
|
14
|
+
state: 'active',
|
|
13
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',
|
|
21
|
+
state: 'active',
|
|
19
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',
|
|
28
|
+
state: 'active',
|
|
25
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',
|
|
35
|
+
state: 'active',
|
|
31
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',
|
|
42
|
+
state: 'active',
|
|
37
43
|
description: 'Use for text and icons when on bold warning backgrounds'
|
|
38
44
|
}
|
|
39
45
|
},
|
|
@@ -41,12 +47,14 @@ var color = {
|
|
|
41
47
|
resting: {
|
|
42
48
|
attributes: {
|
|
43
49
|
group: 'paint',
|
|
50
|
+
state: 'active',
|
|
44
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',
|
|
57
|
+
state: 'active',
|
|
50
58
|
description: 'Use for links in a pressed state'
|
|
51
59
|
}
|
|
52
60
|
}
|
|
@@ -54,36 +62,42 @@ var color = {
|
|
|
54
62
|
brand: {
|
|
55
63
|
attributes: {
|
|
56
64
|
group: 'paint',
|
|
65
|
+
state: 'active',
|
|
57
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',
|
|
72
|
+
state: 'active',
|
|
63
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',
|
|
79
|
+
state: 'active',
|
|
69
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',
|
|
86
|
+
state: 'active',
|
|
75
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',
|
|
93
|
+
state: 'active',
|
|
81
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',
|
|
100
|
+
state: 'active',
|
|
87
101
|
description: 'Use for text and icons in disabled states'
|
|
88
102
|
}
|
|
89
103
|
}
|
|
@@ -3,12 +3,14 @@ var shadow = {
|
|
|
3
3
|
card: {
|
|
4
4
|
attributes: {
|
|
5
5
|
group: 'shadow',
|
|
6
|
+
state: 'active',
|
|
6
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',
|
|
13
|
+
state: 'active',
|
|
12
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
|
}
|
|
@@ -2,8 +2,16 @@ var utility = {
|
|
|
2
2
|
UNSAFE_util: {
|
|
3
3
|
transparent: {
|
|
4
4
|
attributes: {
|
|
5
|
-
|
|
6
|
-
|
|
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
|
}
|