@atlaskit/tokens 0.1.0 → 0.3.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 +37 -0
- package/README.md +42 -3
- package/css/atlassian-dark.css +88 -81
- package/css/atlassian-light.css +88 -81
- package/dist/cjs/entry-points/token-default-values.js +15 -0
- package/dist/cjs/figma/synchronize-figma-tokens.js +4 -4
- package/dist/cjs/tokens/atlassian-dark/color/accent.js +25 -28
- package/dist/cjs/tokens/atlassian-dark/color/background.js +49 -196
- package/dist/cjs/tokens/atlassian-dark/color/border.js +2 -8
- package/dist/cjs/tokens/atlassian-dark/color/icon-border.js +5 -20
- package/dist/cjs/tokens/atlassian-dark/color/overlay.js +2 -8
- package/dist/cjs/tokens/atlassian-dark/color/text.js +14 -56
- package/dist/cjs/tokens/atlassian-dark/shadow/shadow.js +2 -8
- package/dist/cjs/tokens/atlassian-dark/utility/utility.js +17 -0
- package/dist/cjs/tokens/atlassian-light/color/accent.js +25 -28
- package/dist/cjs/tokens/atlassian-light/color/background.js +49 -196
- package/dist/cjs/tokens/atlassian-light/color/border.js +2 -8
- package/dist/cjs/tokens/atlassian-light/color/icon-border.js +5 -20
- package/dist/cjs/tokens/atlassian-light/color/overlay.js +2 -8
- package/dist/cjs/tokens/atlassian-light/color/text.js +14 -56
- package/dist/cjs/tokens/atlassian-light/shadow/shadow.js +2 -8
- package/dist/cjs/tokens/atlassian-light/utility/utility.js +17 -0
- package/dist/cjs/tokens/default/color/accent.js +92 -0
- package/dist/cjs/tokens/default/color/background.js +338 -0
- package/dist/cjs/tokens/default/color/border.js +26 -0
- package/dist/cjs/tokens/default/color/icon-border.js +44 -0
- package/dist/cjs/tokens/default/color/overlay.js +26 -0
- package/dist/cjs/tokens/default/color/text.js +100 -0
- package/dist/cjs/tokens/default/shadow/shadow.js +24 -0
- package/dist/cjs/tokens/default/utility/utility.js +20 -0
- package/dist/cjs/tokens/rename-mapping.js +1 -11
- package/dist/cjs/tokens/token-default-values.js +104 -0
- package/dist/cjs/tokens/token-names.js +88 -81
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/entry-points/token-default-values.js +1 -0
- package/dist/es2019/figma/synchronize-figma-tokens.js +4 -4
- package/dist/es2019/tokens/atlassian-dark/color/accent.js +25 -28
- package/dist/es2019/tokens/atlassian-dark/color/background.js +49 -196
- package/dist/es2019/tokens/atlassian-dark/color/border.js +2 -8
- package/dist/es2019/tokens/atlassian-dark/color/icon-border.js +5 -20
- package/dist/es2019/tokens/atlassian-dark/color/overlay.js +2 -8
- package/dist/es2019/tokens/atlassian-dark/color/text.js +14 -56
- package/dist/es2019/tokens/atlassian-dark/shadow/shadow.js +2 -8
- package/dist/es2019/tokens/atlassian-dark/utility/utility.js +10 -0
- package/dist/es2019/tokens/atlassian-light/color/accent.js +25 -28
- package/dist/es2019/tokens/atlassian-light/color/background.js +49 -196
- package/dist/es2019/tokens/atlassian-light/color/border.js +2 -8
- package/dist/es2019/tokens/atlassian-light/color/icon-border.js +5 -20
- package/dist/es2019/tokens/atlassian-light/color/overlay.js +2 -8
- package/dist/es2019/tokens/atlassian-light/color/text.js +14 -56
- package/dist/es2019/tokens/atlassian-light/shadow/shadow.js +2 -8
- package/dist/es2019/tokens/atlassian-light/utility/utility.js +10 -0
- package/dist/es2019/tokens/default/color/accent.js +85 -0
- package/dist/es2019/tokens/default/color/background.js +336 -0
- package/dist/es2019/tokens/default/color/border.js +19 -0
- package/dist/es2019/tokens/default/color/icon-border.js +55 -0
- package/dist/es2019/tokens/default/color/overlay.js +19 -0
- package/dist/es2019/tokens/default/color/text.js +100 -0
- package/dist/es2019/tokens/default/shadow/shadow.js +25 -0
- package/dist/es2019/tokens/default/utility/utility.js +13 -0
- package/dist/es2019/tokens/rename-mapping.js +1 -11
- package/dist/es2019/tokens/token-default-values.js +97 -0
- package/dist/es2019/tokens/token-names.js +88 -81
- package/dist/es2019/version.json +1 -1
- package/dist/esm/entry-points/token-default-values.js +1 -0
- package/dist/esm/figma/synchronize-figma-tokens.js +4 -4
- package/dist/esm/tokens/atlassian-dark/color/accent.js +25 -28
- package/dist/esm/tokens/atlassian-dark/color/background.js +49 -196
- package/dist/esm/tokens/atlassian-dark/color/border.js +2 -8
- package/dist/esm/tokens/atlassian-dark/color/icon-border.js +5 -20
- package/dist/esm/tokens/atlassian-dark/color/overlay.js +2 -8
- package/dist/esm/tokens/atlassian-dark/color/text.js +14 -56
- package/dist/esm/tokens/atlassian-dark/shadow/shadow.js +2 -8
- package/dist/esm/tokens/atlassian-dark/utility/utility.js +10 -0
- package/dist/esm/tokens/atlassian-light/color/accent.js +25 -28
- package/dist/esm/tokens/atlassian-light/color/background.js +49 -196
- package/dist/esm/tokens/atlassian-light/color/border.js +2 -8
- package/dist/esm/tokens/atlassian-light/color/icon-border.js +5 -20
- package/dist/esm/tokens/atlassian-light/color/overlay.js +2 -8
- package/dist/esm/tokens/atlassian-light/color/text.js +14 -56
- package/dist/esm/tokens/atlassian-light/shadow/shadow.js +2 -8
- package/dist/esm/tokens/atlassian-light/utility/utility.js +10 -0
- package/dist/esm/tokens/default/color/accent.js +85 -0
- package/dist/esm/tokens/default/color/background.js +331 -0
- package/dist/esm/tokens/default/color/border.js +19 -0
- package/dist/esm/tokens/default/color/icon-border.js +37 -0
- package/dist/esm/tokens/default/color/overlay.js +19 -0
- package/dist/esm/tokens/default/color/text.js +93 -0
- package/dist/esm/tokens/default/shadow/shadow.js +17 -0
- package/dist/esm/tokens/default/utility/utility.js +13 -0
- package/dist/esm/tokens/rename-mapping.js +1 -11
- package/dist/esm/tokens/token-default-values.js +97 -0
- package/dist/esm/tokens/token-names.js +88 -81
- package/dist/esm/version.json +1 -1
- package/dist/types/entry-points/token-default-values.d.ts +1 -0
- package/dist/types/tokens/atlassian-dark/color/accent.d.ts +2 -2
- package/dist/types/tokens/atlassian-dark/color/background.d.ts +2 -2
- package/dist/types/tokens/atlassian-dark/color/border.d.ts +2 -2
- package/dist/types/tokens/atlassian-dark/color/icon-border.d.ts +2 -2
- package/dist/types/tokens/atlassian-dark/color/overlay.d.ts +2 -2
- package/dist/types/tokens/atlassian-dark/color/text.d.ts +2 -2
- package/dist/types/tokens/atlassian-dark/shadow/shadow.d.ts +2 -2
- package/dist/types/tokens/atlassian-dark/utility/utility.d.ts +5 -0
- package/dist/types/tokens/atlassian-light/color/accent.d.ts +2 -2
- package/dist/types/tokens/atlassian-light/color/background.d.ts +2 -2
- package/dist/types/tokens/atlassian-light/color/border.d.ts +2 -2
- package/dist/types/tokens/atlassian-light/color/icon-border.d.ts +2 -2
- package/dist/types/tokens/atlassian-light/color/overlay.d.ts +2 -2
- package/dist/types/tokens/atlassian-light/color/text.d.ts +2 -2
- package/dist/types/tokens/atlassian-light/shadow/shadow.d.ts +2 -2
- package/dist/types/tokens/atlassian-light/utility/utility.d.ts +5 -0
- package/dist/types/tokens/default/color/accent.d.ts +3 -0
- package/dist/types/tokens/default/color/background.d.ts +3 -0
- package/dist/types/tokens/default/color/border.d.ts +3 -0
- package/dist/types/tokens/default/color/icon-border.d.ts +3 -0
- package/dist/types/tokens/default/color/overlay.d.ts +3 -0
- package/dist/types/tokens/default/color/text.d.ts +3 -0
- package/dist/types/tokens/default/shadow/shadow.d.ts +3 -0
- package/dist/types/tokens/default/utility/utility.d.ts +5 -0
- package/dist/types/tokens/token-default-values.d.ts +94 -0
- package/dist/types/tokens/token-names.d.ts +176 -162
- package/dist/types/types.d.ts +22 -4
- package/package.json +4 -2
- package/token-default-values/package.json +7 -0
- 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
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
var color = {
|
|
2
|
+
color: {
|
|
3
|
+
background: {
|
|
4
|
+
sunken: {
|
|
5
|
+
attributes: {
|
|
6
|
+
group: 'paint',
|
|
7
|
+
description: 'Use as a secondary background for the UI'
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
default: {
|
|
11
|
+
attributes: {
|
|
12
|
+
group: 'paint',
|
|
13
|
+
description: 'Use as the primary background for the UI'
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
card: {
|
|
17
|
+
attributes: {
|
|
18
|
+
group: 'paint',
|
|
19
|
+
description: 'Use for the background of raised cards, such as Jira cards on a Kanban board.\nCombine with shadow.card.'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
overlay: {
|
|
23
|
+
attributes: {
|
|
24
|
+
group: 'paint',
|
|
25
|
+
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
|
+
}
|
|
27
|
+
},
|
|
28
|
+
selected: {
|
|
29
|
+
resting: {
|
|
30
|
+
attributes: {
|
|
31
|
+
group: 'paint',
|
|
32
|
+
description: 'Use for backgrounds of elements in a selected state'
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
hover: {
|
|
36
|
+
attributes: {
|
|
37
|
+
group: 'paint',
|
|
38
|
+
description: 'Hover state of background.selected'
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
pressed: {
|
|
42
|
+
attributes: {
|
|
43
|
+
group: 'paint',
|
|
44
|
+
description: 'Pressed state of background.selected'
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
blanket: {
|
|
49
|
+
attributes: {
|
|
50
|
+
group: 'paint',
|
|
51
|
+
description: 'Use for the screen overlay that appears with modal dialogs'
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
disabled: {
|
|
55
|
+
attributes: {
|
|
56
|
+
group: 'paint',
|
|
57
|
+
description: 'Use for backgrounds of elements in a disabled state'
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
boldBrand: {
|
|
61
|
+
resting: {
|
|
62
|
+
attributes: {
|
|
63
|
+
group: 'paint',
|
|
64
|
+
description: 'A vibrant background for small UI elements like primary buttons and bold in progress lozenges.'
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
hover: {
|
|
68
|
+
attributes: {
|
|
69
|
+
group: 'paint',
|
|
70
|
+
description: 'Hover state of background.boldBrand'
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
pressed: {
|
|
74
|
+
attributes: {
|
|
75
|
+
group: 'paint',
|
|
76
|
+
description: 'Pressed state of background.boldBrand'
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
subtleBrand: {
|
|
81
|
+
resting: {
|
|
82
|
+
attributes: {
|
|
83
|
+
group: 'paint',
|
|
84
|
+
description: 'Use for subdued backgrounds of UI elements like information section messages and in progress lozenges.'
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
hover: {
|
|
88
|
+
attributes: {
|
|
89
|
+
group: 'paint',
|
|
90
|
+
description: 'Hover state for background.subtleBrand'
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
pressed: {
|
|
94
|
+
attributes: {
|
|
95
|
+
group: 'paint',
|
|
96
|
+
description: 'Pressed state for background.subtleBrand'
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
boldDanger: {
|
|
101
|
+
resting: {
|
|
102
|
+
attributes: {
|
|
103
|
+
group: 'paint',
|
|
104
|
+
description: 'A vibrant background for small UI elements like danger buttons and bold removed lozenges.'
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
hover: {
|
|
108
|
+
attributes: {
|
|
109
|
+
group: 'paint',
|
|
110
|
+
description: 'Hover state of background.boldDanger'
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
pressed: {
|
|
114
|
+
attributes: {
|
|
115
|
+
group: 'paint',
|
|
116
|
+
description: 'Pressed state of background.boldDanger'
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
subtleDanger: {
|
|
121
|
+
resting: {
|
|
122
|
+
attributes: {
|
|
123
|
+
group: 'paint',
|
|
124
|
+
description: 'Use for subdued backgrounds of UI elements like error section messages and removed lozenges.'
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
hover: {
|
|
128
|
+
attributes: {
|
|
129
|
+
group: 'paint',
|
|
130
|
+
description: 'Hover state for background.subtleDanger'
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
pressed: {
|
|
134
|
+
attributes: {
|
|
135
|
+
group: 'paint',
|
|
136
|
+
description: 'Pressed state for background.subtleDanger'
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
boldWarning: {
|
|
141
|
+
resting: {
|
|
142
|
+
attributes: {
|
|
143
|
+
group: 'paint',
|
|
144
|
+
description: 'A vibrant background for small UI elements like warning buttons and bold moved lozenges.'
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
hover: {
|
|
148
|
+
attributes: {
|
|
149
|
+
group: 'paint',
|
|
150
|
+
description: 'Hover state of background.boldWarning'
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
pressed: {
|
|
154
|
+
attributes: {
|
|
155
|
+
group: 'paint',
|
|
156
|
+
description: 'Pressed state of background.boldWarning'
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
subtleWarning: {
|
|
161
|
+
resting: {
|
|
162
|
+
attributes: {
|
|
163
|
+
group: 'paint',
|
|
164
|
+
description: 'Use for subdued backgrounds of UI elements like warning section messages and moved lozenges.'
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
hover: {
|
|
168
|
+
attributes: {
|
|
169
|
+
group: 'paint',
|
|
170
|
+
description: 'Hover state for background.subtleWarning'
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
pressed: {
|
|
174
|
+
attributes: {
|
|
175
|
+
group: 'paint',
|
|
176
|
+
description: 'Pressed state for background.subtleWarning'
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
boldSuccess: {
|
|
181
|
+
resting: {
|
|
182
|
+
attributes: {
|
|
183
|
+
group: 'paint',
|
|
184
|
+
description: 'A vibrant background for small UI elements like checked toggles and bold success lozenges.'
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
hover: {
|
|
188
|
+
attributes: {
|
|
189
|
+
group: 'paint',
|
|
190
|
+
description: 'Hover state of background.boldSuccess'
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
pressed: {
|
|
194
|
+
attributes: {
|
|
195
|
+
group: 'paint',
|
|
196
|
+
description: 'Pressed state of background.boldSuccess'
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
subtleSuccess: {
|
|
201
|
+
resting: {
|
|
202
|
+
attributes: {
|
|
203
|
+
group: 'paint',
|
|
204
|
+
description: 'Use for subdued backgrounds of UI elements like success section messages and success lozenges. '
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
hover: {
|
|
208
|
+
attributes: {
|
|
209
|
+
group: 'paint',
|
|
210
|
+
description: 'Hover state for background.subtleSuccess'
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
pressed: {
|
|
214
|
+
attributes: {
|
|
215
|
+
group: 'paint',
|
|
216
|
+
description: 'Pressed state for background.subtleSuccess'
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
boldDiscovery: {
|
|
221
|
+
resting: {
|
|
222
|
+
attributes: {
|
|
223
|
+
group: 'paint',
|
|
224
|
+
description: 'A vibrant background for small UI elements like onboarding buttons and bold new lozenges.'
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
hover: {
|
|
228
|
+
attributes: {
|
|
229
|
+
group: 'paint',
|
|
230
|
+
description: 'Hover state of background.boldDiscovery'
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
pressed: {
|
|
234
|
+
attributes: {
|
|
235
|
+
group: 'paint',
|
|
236
|
+
description: 'Pressed state of background.boldDiscovery'
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
subtleDiscovery: {
|
|
241
|
+
resting: {
|
|
242
|
+
attributes: {
|
|
243
|
+
group: 'paint',
|
|
244
|
+
description: 'Use for subdued backgrounds of UI elements like discovery section messages and new lozenges.'
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
hover: {
|
|
248
|
+
attributes: {
|
|
249
|
+
group: 'paint',
|
|
250
|
+
description: 'Hover state for background.subtleDiscovery'
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
pressed: {
|
|
254
|
+
attributes: {
|
|
255
|
+
group: 'paint',
|
|
256
|
+
description: 'Pressed state for background.subtleDiscovery'
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
boldNeutral: {
|
|
261
|
+
resting: {
|
|
262
|
+
attributes: {
|
|
263
|
+
group: 'paint',
|
|
264
|
+
description: 'A vibrant background for small UI elements like unchecked toggles and bold default lozenges.'
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
hover: {
|
|
268
|
+
attributes: {
|
|
269
|
+
group: 'paint',
|
|
270
|
+
description: 'Hover state of background.boldNeutral'
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
pressed: {
|
|
274
|
+
attributes: {
|
|
275
|
+
group: 'paint',
|
|
276
|
+
description: 'Pressed state of background.boldNeutral'
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
transparentNeutral: {
|
|
281
|
+
hover: {
|
|
282
|
+
attributes: {
|
|
283
|
+
group: 'paint',
|
|
284
|
+
description: 'Hover state for UIs that don’t have a default background, such as menu items or subtle buttons.'
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
pressed: {
|
|
288
|
+
attributes: {
|
|
289
|
+
group: 'paint',
|
|
290
|
+
description: 'Pressed state for UIs that don’t have a default background, such as menu items or subtle buttons.'
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
subtleNeutral: {
|
|
295
|
+
resting: {
|
|
296
|
+
attributes: {
|
|
297
|
+
group: 'paint',
|
|
298
|
+
description: 'Use as the default background of UI elements like buttons, lozenges, and tags.'
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
hover: {
|
|
302
|
+
attributes: {
|
|
303
|
+
group: 'paint',
|
|
304
|
+
description: 'Hover state for background.subtleNeutral'
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
pressed: {
|
|
308
|
+
attributes: {
|
|
309
|
+
group: 'paint',
|
|
310
|
+
description: 'Pressed state for background.subtleNeutral'
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
subtleBorderedNeutral: {
|
|
315
|
+
resting: {
|
|
316
|
+
attributes: {
|
|
317
|
+
group: 'paint',
|
|
318
|
+
description: 'Hover state for background.subtleBorderedNeutral'
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
pressed: {
|
|
322
|
+
attributes: {
|
|
323
|
+
group: 'paint',
|
|
324
|
+
description: 'Pressed state for background.subtleBorderedNeutral'
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
};
|
|
331
|
+
export default color;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
var color = {
|
|
2
|
+
color: {
|
|
3
|
+
border: {
|
|
4
|
+
focus: {
|
|
5
|
+
attributes: {
|
|
6
|
+
group: 'paint',
|
|
7
|
+
description: 'Use for focus rings of elements in a focus state'
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
neutral: {
|
|
11
|
+
attributes: {
|
|
12
|
+
group: 'paint',
|
|
13
|
+
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
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
export default color;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
var color = {
|
|
2
|
+
color: {
|
|
3
|
+
iconBorder: {
|
|
4
|
+
brand: {
|
|
5
|
+
attributes: {
|
|
6
|
+
group: 'paint',
|
|
7
|
+
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
|
+
},
|
|
10
|
+
danger: {
|
|
11
|
+
attributes: {
|
|
12
|
+
group: 'paint',
|
|
13
|
+
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
|
+
}
|
|
15
|
+
},
|
|
16
|
+
warning: {
|
|
17
|
+
attributes: {
|
|
18
|
+
group: 'paint',
|
|
19
|
+
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
|
+
}
|
|
21
|
+
},
|
|
22
|
+
success: {
|
|
23
|
+
attributes: {
|
|
24
|
+
group: 'paint',
|
|
25
|
+
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
|
+
}
|
|
27
|
+
},
|
|
28
|
+
discovery: {
|
|
29
|
+
attributes: {
|
|
30
|
+
group: 'paint',
|
|
31
|
+
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
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
export default color;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
var color = {
|
|
2
|
+
color: {
|
|
3
|
+
overlay: {
|
|
4
|
+
hover: {
|
|
5
|
+
attributes: {
|
|
6
|
+
group: 'paint',
|
|
7
|
+
description: 'Use as a background overlay for elements in a hover state when their background color cannot change, such as avatars.'
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
pressed: {
|
|
11
|
+
attributes: {
|
|
12
|
+
group: 'paint',
|
|
13
|
+
description: 'Use as a background overlay for elements in a pressed state when their background color cannot change, such as avatars.'
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
export default color;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
var color = {
|
|
2
|
+
color: {
|
|
3
|
+
text: {
|
|
4
|
+
selected: {
|
|
5
|
+
attributes: {
|
|
6
|
+
group: 'paint',
|
|
7
|
+
description: 'Use for text, icons, borders, or other visual indicators in selected states'
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
highEmphasis: {
|
|
11
|
+
attributes: {
|
|
12
|
+
group: 'paint',
|
|
13
|
+
description: 'Use for primary text, such as body copy, sentence case headers, and buttons'
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
mediumEmphasis: {
|
|
17
|
+
attributes: {
|
|
18
|
+
group: 'paint',
|
|
19
|
+
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
|
+
}
|
|
21
|
+
},
|
|
22
|
+
lowEmphasis: {
|
|
23
|
+
attributes: {
|
|
24
|
+
group: 'paint',
|
|
25
|
+
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
|
+
}
|
|
27
|
+
},
|
|
28
|
+
onBold: {
|
|
29
|
+
attributes: {
|
|
30
|
+
group: 'paint',
|
|
31
|
+
description: 'Use for text and icons when on bold backgrounds'
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
onBoldWarning: {
|
|
35
|
+
attributes: {
|
|
36
|
+
group: 'paint',
|
|
37
|
+
description: 'Use for text and icons when on bold warning backgrounds'
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
link: {
|
|
41
|
+
resting: {
|
|
42
|
+
attributes: {
|
|
43
|
+
group: 'paint',
|
|
44
|
+
description: 'Use for links in a resting or hover state. Add an underline for hover states'
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
pressed: {
|
|
48
|
+
attributes: {
|
|
49
|
+
group: 'paint',
|
|
50
|
+
description: 'Use for links in a pressed state'
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
brand: {
|
|
55
|
+
attributes: {
|
|
56
|
+
group: 'paint',
|
|
57
|
+
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
|
+
}
|
|
59
|
+
},
|
|
60
|
+
warning: {
|
|
61
|
+
attributes: {
|
|
62
|
+
group: 'paint',
|
|
63
|
+
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
|
+
}
|
|
65
|
+
},
|
|
66
|
+
danger: {
|
|
67
|
+
attributes: {
|
|
68
|
+
group: 'paint',
|
|
69
|
+
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
|
+
}
|
|
71
|
+
},
|
|
72
|
+
success: {
|
|
73
|
+
attributes: {
|
|
74
|
+
group: 'paint',
|
|
75
|
+
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
|
+
}
|
|
77
|
+
},
|
|
78
|
+
discovery: {
|
|
79
|
+
attributes: {
|
|
80
|
+
group: 'paint',
|
|
81
|
+
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
|
+
}
|
|
83
|
+
},
|
|
84
|
+
disabled: {
|
|
85
|
+
attributes: {
|
|
86
|
+
group: 'paint',
|
|
87
|
+
description: 'Use for text and icons in disabled states'
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
export default color;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var shadow = {
|
|
2
|
+
shadow: {
|
|
3
|
+
card: {
|
|
4
|
+
attributes: {
|
|
5
|
+
group: 'shadow',
|
|
6
|
+
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
|
+
},
|
|
9
|
+
overlay: {
|
|
10
|
+
attributes: {
|
|
11
|
+
group: 'shadow',
|
|
12
|
+
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
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
export default shadow;
|
|
@@ -17,15 +17,5 @@
|
|
|
17
17
|
* 5. The artifact containing the automation should now be available in the `/dist` folder. i.e. packages/design-system/tokens/dist/figma/atlassian-light/sync-figma-tokens.js
|
|
18
18
|
* 6. After building make sure to remove the mapping from this file before checking it in
|
|
19
19
|
*/
|
|
20
|
-
var renameMapping = {
|
|
21
|
-
'color.accent.blueSubtle': 'color.accent.subtleBlue',
|
|
22
|
-
'color.accent.greenSubtle': 'color.accent.subtleGreen',
|
|
23
|
-
'color.accent.magentaSubtle': 'color.accent.subtleMagenta',
|
|
24
|
-
'color.accent.orangeSubtle': 'color.accent.subtleOrange',
|
|
25
|
-
'color.accent.purpleSubtle': 'color.accent.subtlePurple',
|
|
26
|
-
'color.accent.redSubtle': 'color.accent.subtleRed',
|
|
27
|
-
'color.accent.tealSubtle': 'color.accent.subtleTeal',
|
|
28
|
-
'color.background.selected': 'color.background.selected.resting',
|
|
29
|
-
'color.border.disabled': 'color.background.disabled'
|
|
30
|
-
};
|
|
20
|
+
var renameMapping = {};
|
|
31
21
|
export default renameMapping;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
// THIS IS AN AUTO-GENERATED FILE DO NOT MODIFY DIRECTLY
|
|
2
|
+
// Re-generate by running `yarn build tokens`.
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* A map of token names to their value in the default Atlassian theme ('light')
|
|
6
|
+
*/
|
|
7
|
+
var defaultTokenValues = {
|
|
8
|
+
'color.accent.boldBlue': '#579DFF',
|
|
9
|
+
'color.accent.boldGreen': '#3ACF91',
|
|
10
|
+
'color.accent.boldOrange': '#FFA333',
|
|
11
|
+
'color.accent.boldPurple': '#9F8FEF',
|
|
12
|
+
'color.accent.boldRed': '#F97362',
|
|
13
|
+
'color.accent.boldTeal': '#53C8D5',
|
|
14
|
+
'color.accent.subtleBlue': '#CCE0FF',
|
|
15
|
+
'color.accent.subtleGreen': '#AFF3D6',
|
|
16
|
+
'color.accent.subtleMagenta': '#FDD0EC',
|
|
17
|
+
'color.accent.subtleOrange': '#FFDEB8',
|
|
18
|
+
'color.accent.subtlePurple': '#DFD8FD',
|
|
19
|
+
'color.accent.subtleRed': '#FFD2CC',
|
|
20
|
+
'color.accent.subtleTeal': '#ADEEF5',
|
|
21
|
+
'color.background.sunken': '#091E4208',
|
|
22
|
+
'color.background.default': '#FFFFFF',
|
|
23
|
+
'color.background.card': '#FFFFFF',
|
|
24
|
+
'color.background.overlay': '#FFFFFF',
|
|
25
|
+
'color.background.selected.resting': '#E9F2FF',
|
|
26
|
+
'color.background.selected.hover': '#CCE0FF',
|
|
27
|
+
'color.background.selected.pressed': '#85B8FF',
|
|
28
|
+
'color.background.blanket': '#091E427A',
|
|
29
|
+
'color.background.disabled': '#091E420F',
|
|
30
|
+
'color.background.boldBrand.resting': '#0C66E4',
|
|
31
|
+
'color.background.boldBrand.hover': '#0055CC',
|
|
32
|
+
'color.background.boldBrand.pressed': '#09326C',
|
|
33
|
+
'color.background.subtleBrand.resting': '#E9F2FF',
|
|
34
|
+
'color.background.subtleBrand.hover': '#CCE0FF',
|
|
35
|
+
'color.background.subtleBrand.pressed': '#85B8FF',
|
|
36
|
+
'color.background.boldDanger.resting': '#CE2E1C',
|
|
37
|
+
'color.background.boldDanger.hover': '#B22515',
|
|
38
|
+
'color.background.boldDanger.pressed': '#601D16',
|
|
39
|
+
'color.background.subtleDanger.resting': '#FFEDEB',
|
|
40
|
+
'color.background.subtleDanger.hover': '#FFD2CC',
|
|
41
|
+
'color.background.subtleDanger.pressed': '#FF9A8F',
|
|
42
|
+
'color.background.boldWarning.resting': '#EBB800',
|
|
43
|
+
'color.background.boldWarning.hover': '#D19D00',
|
|
44
|
+
'color.background.boldWarning.pressed': '#B38600',
|
|
45
|
+
'color.background.subtleWarning.resting': '#FFF7D6',
|
|
46
|
+
'color.background.subtleWarning.hover': '#FFE785',
|
|
47
|
+
'color.background.subtleWarning.pressed': '#FFD138',
|
|
48
|
+
'color.background.boldSuccess.resting': '#1F845A',
|
|
49
|
+
'color.background.boldSuccess.hover': '#216E4E',
|
|
50
|
+
'color.background.boldSuccess.pressed': '#164B35',
|
|
51
|
+
'color.background.subtleSuccess.resting': '#DFFCF0',
|
|
52
|
+
'color.background.subtleSuccess.hover': '#AFF3D6',
|
|
53
|
+
'color.background.subtleSuccess.pressed': '#76E0B4',
|
|
54
|
+
'color.background.boldDiscovery.resting': '#6E5DC6',
|
|
55
|
+
'color.background.boldDiscovery.hover': '#5E4DB2',
|
|
56
|
+
'color.background.boldDiscovery.pressed': '#352C63',
|
|
57
|
+
'color.background.subtleDiscovery.resting': '#F3F0FF',
|
|
58
|
+
'color.background.subtleDiscovery.hover': '#DFD8FD',
|
|
59
|
+
'color.background.subtleDiscovery.pressed': '#B8ACF6',
|
|
60
|
+
'color.background.boldNeutral.resting': '#44546F',
|
|
61
|
+
'color.background.boldNeutral.hover': '#2C3E5D',
|
|
62
|
+
'color.background.boldNeutral.pressed': '#172B4D',
|
|
63
|
+
'color.background.transparentNeutral.hover': '#091E420F',
|
|
64
|
+
'color.background.transparentNeutral.pressed': '#091E4224',
|
|
65
|
+
'color.background.subtleNeutral.resting': '#091E420F',
|
|
66
|
+
'color.background.subtleNeutral.hover': '#091E4224',
|
|
67
|
+
'color.background.subtleNeutral.pressed': '#091E424F',
|
|
68
|
+
'color.background.subtleBorderedNeutral.resting': '#091E4208',
|
|
69
|
+
'color.background.subtleBorderedNeutral.pressed': '#091E420F',
|
|
70
|
+
'color.border.focus': '#388BFF',
|
|
71
|
+
'color.border.neutral': '#091E4224',
|
|
72
|
+
'color.iconBorder.brand': '#1D7AFC',
|
|
73
|
+
'color.iconBorder.danger': '#E8422C',
|
|
74
|
+
'color.iconBorder.warning': '#DB6E00',
|
|
75
|
+
'color.iconBorder.success': '#22A06B',
|
|
76
|
+
'color.iconBorder.discovery': '#8270DB',
|
|
77
|
+
'color.overlay.hover': '#091E424F',
|
|
78
|
+
'color.overlay.pressed': '#091E427A',
|
|
79
|
+
'color.text.selected': '#0C66E4',
|
|
80
|
+
'color.text.highEmphasis': '#172B4D',
|
|
81
|
+
'color.text.mediumEmphasis': '#44546F',
|
|
82
|
+
'color.text.lowEmphasis': '#626F86',
|
|
83
|
+
'color.text.onBold': '#FFFFFF',
|
|
84
|
+
'color.text.onBoldWarning': '#172B4D',
|
|
85
|
+
'color.text.link.resting': '#0C66E4',
|
|
86
|
+
'color.text.link.pressed': '#0055CC',
|
|
87
|
+
'color.text.brand': '#0055CC',
|
|
88
|
+
'color.text.warning': '#974F0C',
|
|
89
|
+
'color.text.danger': '#B22515',
|
|
90
|
+
'color.text.success': '#216E4E',
|
|
91
|
+
'color.text.discovery': '#5E4DB2',
|
|
92
|
+
'color.text.disabled': '#8993A5',
|
|
93
|
+
'shadow.card': '0px 1px 1px #091E4240, 0px 0px 1px #091E424F',
|
|
94
|
+
'shadow.overlay': '0px 8px 12px #091E4226, 0px 0px 1px #091E424F',
|
|
95
|
+
'utility.UNSAFE_util.transparent': 'transparent'
|
|
96
|
+
};
|
|
97
|
+
export default defaultTokenValues;
|