@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.
- package/CHANGELOG.md +39 -0
- package/README.md +28 -0
- package/babel-plugin/package.json +7 -0
- package/css/atlassian-dark.css +89 -88
- package/css/atlassian-light.css +89 -88
- package/dist/cjs/artifacts/rename-mapping.js +23 -0
- package/dist/cjs/artifacts/token-default-values.js +105 -0
- package/dist/cjs/artifacts/token-names.js +101 -0
- 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/babel-plugin/index.js +15 -0
- 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 +43 -41
- 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 +26 -13
- package/dist/cjs/tokens/default/color/background.js +98 -49
- package/dist/cjs/tokens/default/color/border.js +4 -2
- package/dist/cjs/tokens/default/color/icon-border.js +10 -5
- package/dist/cjs/tokens/default/color/overlay.js +4 -2
- package/dist/cjs/tokens/default/color/text.js +28 -14
- package/dist/cjs/tokens/default/shadow/shadow.js +4 -2
- 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/artifacts/token-default-values.js +98 -0
- package/dist/es2019/artifacts/token-names.js +94 -0
- 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 +43 -41
- 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 +26 -13
- package/dist/es2019/tokens/default/color/background.js +103 -49
- package/dist/es2019/tokens/default/color/border.js +4 -2
- package/dist/es2019/tokens/default/color/icon-border.js +28 -5
- package/dist/es2019/tokens/default/color/overlay.js +4 -2
- package/dist/es2019/tokens/default/color/text.js +35 -14
- package/dist/es2019/tokens/default/shadow/shadow.js +12 -2
- 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/artifacts/token-default-values.js +98 -0
- package/dist/esm/artifacts/token-names.js +94 -0
- 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 +43 -41
- 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 +26 -13
- package/dist/esm/tokens/default/color/background.js +98 -49
- package/dist/esm/tokens/default/color/border.js +4 -2
- package/dist/esm/tokens/default/color/icon-border.js +10 -5
- package/dist/esm/tokens/default/color/overlay.js +4 -2
- package/dist/esm/tokens/default/color/text.js +28 -14
- package/dist/esm/tokens/default/shadow/shadow.js +4 -2
- 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/artifacts/token-default-values.d.ts +95 -0
- package/dist/types/artifacts/token-names.d.ts +184 -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 -5
- package/tokens-browser-extension/README.md +28 -0
- package/tokens-browser-extension/atlassian-theme.css +375 -0
- package/tokens-browser-extension/background.js +75 -0
- package/tokens-browser-extension/content-script.js +75 -0
- package/tokens-browser-extension/devtools.html +1 -0
- package/tokens-browser-extension/devtools.js +14 -0
- package/tokens-browser-extension/manifest.json +36 -0
- package/tokens-browser-extension/messageback-script.js +10 -0
- package/tokens-browser-extension/messaging.js +36 -0
- package/tokens-browser-extension/panel.html +25 -0
- package/tokens-browser-extension/panel.js +46 -0
- package/tokens-browser-extension/toast.png +0 -0
- package/dist/cjs/tokens/rename-mapping.js +0 -29
- package/dist/cjs/tokens/token-names.js +0 -100
- package/dist/es2019/tokens/rename-mapping.js +0 -21
- package/dist/es2019/tokens/token-names.js +0 -93
- package/dist/esm/tokens/rename-mapping.js +0 -21
- package/dist/esm/tokens/token-names.js +0 -93
- package/dist/types/tokens/rename-mapping.d.ts +0 -24
- 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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
}
|