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