@gitlab/ui 71.2.0 → 71.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 +7 -0
- package/dist/tokens/css/tokens.css +1 -1
- package/dist/tokens/css/tokens.dark.css +122 -1
- package/dist/tokens/js/tokens.dark.js +122 -1
- package/dist/tokens/js/tokens.js +1 -1
- package/dist/tokens/json/tokens.dark.grouped.json +110 -110
- package/dist/tokens/json/tokens.dark.json +770 -638
- package/dist/tokens/scss/_tokens.dark.scss +122 -1
- package/dist/tokens/scss/_tokens.scss +1 -1
- package/package.json +1 -1
- package/src/tokens/color.data_viz.dark.tokens.json +344 -0
- package/src/tokens/color.data_viz.dark.tokens.stories.js +56 -0
- package/src/tokens/color.data_viz.tokens.stories.js +1 -1
- package/src/tokens/color.theme.dark.tokens.json +412 -0
- package/src/tokens/color.theme.dark.tokens.stories.js +60 -0
- package/src/tokens/color.theme.tokens.stories.js +1 -1
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
{
|
|
2
|
+
"theme": {
|
|
3
|
+
"indigo": {
|
|
4
|
+
"50": {
|
|
5
|
+
"$value": "#14143d",
|
|
6
|
+
"$type": "color",
|
|
7
|
+
"themeable": false,
|
|
8
|
+
"prefix": false
|
|
9
|
+
},
|
|
10
|
+
"100": {
|
|
11
|
+
"$value": "#222261",
|
|
12
|
+
"$type": "color",
|
|
13
|
+
"themeable": false,
|
|
14
|
+
"prefix": false
|
|
15
|
+
},
|
|
16
|
+
"200": {
|
|
17
|
+
"$value": "#303083",
|
|
18
|
+
"$type": "color",
|
|
19
|
+
"themeable": false,
|
|
20
|
+
"prefix": false
|
|
21
|
+
},
|
|
22
|
+
"300": {
|
|
23
|
+
"$value": "#41419f",
|
|
24
|
+
"$type": "color",
|
|
25
|
+
"themeable": false,
|
|
26
|
+
"prefix": false
|
|
27
|
+
},
|
|
28
|
+
"400": {
|
|
29
|
+
"$value": "#5252b5",
|
|
30
|
+
"$type": "color",
|
|
31
|
+
"themeable": false,
|
|
32
|
+
"prefix": false
|
|
33
|
+
},
|
|
34
|
+
"500": {
|
|
35
|
+
"$value": "#6666c4",
|
|
36
|
+
"$type": "color",
|
|
37
|
+
"themeable": false,
|
|
38
|
+
"prefix": false
|
|
39
|
+
},
|
|
40
|
+
"600": {
|
|
41
|
+
"$value": "#8181d7",
|
|
42
|
+
"$type": "color",
|
|
43
|
+
"themeable": false,
|
|
44
|
+
"prefix": false
|
|
45
|
+
},
|
|
46
|
+
"700": {
|
|
47
|
+
"$value": "#a2a2e6",
|
|
48
|
+
"$type": "color",
|
|
49
|
+
"themeable": false,
|
|
50
|
+
"prefix": false
|
|
51
|
+
},
|
|
52
|
+
"800": {
|
|
53
|
+
"$value": "#c7c7f2",
|
|
54
|
+
"$type": "color",
|
|
55
|
+
"themeable": false,
|
|
56
|
+
"prefix": false
|
|
57
|
+
},
|
|
58
|
+
"900": {
|
|
59
|
+
"$value": "#dbdbf8",
|
|
60
|
+
"$type": "color",
|
|
61
|
+
"themeable": false,
|
|
62
|
+
"prefix": false
|
|
63
|
+
},
|
|
64
|
+
"950": {
|
|
65
|
+
"$value": "#f1f1ff",
|
|
66
|
+
"$type": "color",
|
|
67
|
+
"themeable": false,
|
|
68
|
+
"prefix": false
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"blue": {
|
|
72
|
+
"50": {
|
|
73
|
+
"$value": "#04101c",
|
|
74
|
+
"$type": "color",
|
|
75
|
+
"themeable": false,
|
|
76
|
+
"prefix": false
|
|
77
|
+
},
|
|
78
|
+
"100": {
|
|
79
|
+
"$value": "#0b2640",
|
|
80
|
+
"$type": "color",
|
|
81
|
+
"themeable": false,
|
|
82
|
+
"prefix": false
|
|
83
|
+
},
|
|
84
|
+
"200": {
|
|
85
|
+
"$value": "#153c63",
|
|
86
|
+
"$type": "color",
|
|
87
|
+
"themeable": false,
|
|
88
|
+
"prefix": false
|
|
89
|
+
},
|
|
90
|
+
"300": {
|
|
91
|
+
"$value": "#235180",
|
|
92
|
+
"$type": "color",
|
|
93
|
+
"themeable": false,
|
|
94
|
+
"prefix": false
|
|
95
|
+
},
|
|
96
|
+
"400": {
|
|
97
|
+
"$value": "#346596",
|
|
98
|
+
"$type": "color",
|
|
99
|
+
"themeable": false,
|
|
100
|
+
"prefix": false
|
|
101
|
+
},
|
|
102
|
+
"500": {
|
|
103
|
+
"$value": "#4977a5",
|
|
104
|
+
"$type": "color",
|
|
105
|
+
"themeable": false,
|
|
106
|
+
"prefix": false
|
|
107
|
+
},
|
|
108
|
+
"600": {
|
|
109
|
+
"$value": "#628eb9",
|
|
110
|
+
"$type": "color",
|
|
111
|
+
"themeable": false,
|
|
112
|
+
"prefix": false
|
|
113
|
+
},
|
|
114
|
+
"700": {
|
|
115
|
+
"$value": "#81a5c9",
|
|
116
|
+
"$type": "color",
|
|
117
|
+
"themeable": false,
|
|
118
|
+
"prefix": false
|
|
119
|
+
},
|
|
120
|
+
"800": {
|
|
121
|
+
"$value": "#a6bdd5",
|
|
122
|
+
"$type": "color",
|
|
123
|
+
"themeable": false,
|
|
124
|
+
"prefix": false
|
|
125
|
+
},
|
|
126
|
+
"900": {
|
|
127
|
+
"$value": "#b9cadc",
|
|
128
|
+
"$type": "color",
|
|
129
|
+
"themeable": false,
|
|
130
|
+
"prefix": false
|
|
131
|
+
},
|
|
132
|
+
"950": {
|
|
133
|
+
"$value": "#cdd8e3",
|
|
134
|
+
"$type": "color",
|
|
135
|
+
"themeable": false,
|
|
136
|
+
"prefix": false
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"light-blue": {
|
|
140
|
+
"50": {
|
|
141
|
+
"$value": "#0a3764",
|
|
142
|
+
"$type": "color",
|
|
143
|
+
"themeable": false,
|
|
144
|
+
"prefix": false
|
|
145
|
+
},
|
|
146
|
+
"100": {
|
|
147
|
+
"$value": "#0c4277",
|
|
148
|
+
"$type": "color",
|
|
149
|
+
"themeable": false,
|
|
150
|
+
"prefix": false
|
|
151
|
+
},
|
|
152
|
+
"200": {
|
|
153
|
+
"$value": "#0e4d8d",
|
|
154
|
+
"$type": "color",
|
|
155
|
+
"themeable": false,
|
|
156
|
+
"prefix": false
|
|
157
|
+
},
|
|
158
|
+
"300": {
|
|
159
|
+
"$value": "#145aa1",
|
|
160
|
+
"$type": "color",
|
|
161
|
+
"themeable": false,
|
|
162
|
+
"prefix": false
|
|
163
|
+
},
|
|
164
|
+
"400": {
|
|
165
|
+
"$value": "#2268ae",
|
|
166
|
+
"$type": "color",
|
|
167
|
+
"themeable": false,
|
|
168
|
+
"prefix": false
|
|
169
|
+
},
|
|
170
|
+
"500": {
|
|
171
|
+
"$value": "#3476b9",
|
|
172
|
+
"$type": "color",
|
|
173
|
+
"themeable": false,
|
|
174
|
+
"prefix": false
|
|
175
|
+
},
|
|
176
|
+
"600": {
|
|
177
|
+
"$value": "#4f8bc7",
|
|
178
|
+
"$type": "color",
|
|
179
|
+
"themeable": false,
|
|
180
|
+
"prefix": false
|
|
181
|
+
},
|
|
182
|
+
"700": {
|
|
183
|
+
"$value": "#74a3d3",
|
|
184
|
+
"$type": "color",
|
|
185
|
+
"themeable": false,
|
|
186
|
+
"prefix": false
|
|
187
|
+
},
|
|
188
|
+
"800": {
|
|
189
|
+
"$value": "#a0bedc",
|
|
190
|
+
"$type": "color",
|
|
191
|
+
"themeable": false,
|
|
192
|
+
"prefix": false
|
|
193
|
+
},
|
|
194
|
+
"900": {
|
|
195
|
+
"$value": "#c1d4e6",
|
|
196
|
+
"$type": "color",
|
|
197
|
+
"themeable": false,
|
|
198
|
+
"prefix": false
|
|
199
|
+
},
|
|
200
|
+
"950": {
|
|
201
|
+
"$value": "#dde6ee",
|
|
202
|
+
"$type": "color",
|
|
203
|
+
"themeable": false,
|
|
204
|
+
"prefix": false
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"green": {
|
|
208
|
+
"50": {
|
|
209
|
+
"$value": "#052e19",
|
|
210
|
+
"$type": "color",
|
|
211
|
+
"themeable": false,
|
|
212
|
+
"prefix": false
|
|
213
|
+
},
|
|
214
|
+
"100": {
|
|
215
|
+
"$value": "#0e4328",
|
|
216
|
+
"$type": "color",
|
|
217
|
+
"themeable": false,
|
|
218
|
+
"prefix": false
|
|
219
|
+
},
|
|
220
|
+
"200": {
|
|
221
|
+
"$value": "#155635",
|
|
222
|
+
"$type": "color",
|
|
223
|
+
"themeable": false,
|
|
224
|
+
"prefix": false
|
|
225
|
+
},
|
|
226
|
+
"300": {
|
|
227
|
+
"$value": "#1b653f",
|
|
228
|
+
"$type": "color",
|
|
229
|
+
"themeable": false,
|
|
230
|
+
"prefix": false
|
|
231
|
+
},
|
|
232
|
+
"400": {
|
|
233
|
+
"$value": "#25744c",
|
|
234
|
+
"$type": "color",
|
|
235
|
+
"themeable": false,
|
|
236
|
+
"prefix": false
|
|
237
|
+
},
|
|
238
|
+
"500": {
|
|
239
|
+
"$value": "#308258",
|
|
240
|
+
"$type": "color",
|
|
241
|
+
"themeable": false,
|
|
242
|
+
"prefix": false
|
|
243
|
+
},
|
|
244
|
+
"600": {
|
|
245
|
+
"$value": "#499767",
|
|
246
|
+
"$type": "color",
|
|
247
|
+
"themeable": false,
|
|
248
|
+
"prefix": false
|
|
249
|
+
},
|
|
250
|
+
"700": {
|
|
251
|
+
"$value": "#69af7d",
|
|
252
|
+
"$type": "color",
|
|
253
|
+
"themeable": false,
|
|
254
|
+
"prefix": false
|
|
255
|
+
},
|
|
256
|
+
"800": {
|
|
257
|
+
"$value": "#8cc497",
|
|
258
|
+
"$type": "color",
|
|
259
|
+
"themeable": false,
|
|
260
|
+
"prefix": false
|
|
261
|
+
},
|
|
262
|
+
"900": {
|
|
263
|
+
"$value": "#b1d6b5",
|
|
264
|
+
"$type": "color",
|
|
265
|
+
"themeable": false,
|
|
266
|
+
"prefix": false
|
|
267
|
+
},
|
|
268
|
+
"950": {
|
|
269
|
+
"$value": "#dde9de",
|
|
270
|
+
"$type": "color",
|
|
271
|
+
"themeable": false,
|
|
272
|
+
"prefix": false
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
"red": {
|
|
276
|
+
"50": {
|
|
277
|
+
"$value": "#380700",
|
|
278
|
+
"$type": "color",
|
|
279
|
+
"themeable": false,
|
|
280
|
+
"prefix": false
|
|
281
|
+
},
|
|
282
|
+
"100": {
|
|
283
|
+
"$value": "#580d02",
|
|
284
|
+
"$type": "color",
|
|
285
|
+
"themeable": false,
|
|
286
|
+
"prefix": false
|
|
287
|
+
},
|
|
288
|
+
"200": {
|
|
289
|
+
"$value": "#761405",
|
|
290
|
+
"$type": "color",
|
|
291
|
+
"themeable": false,
|
|
292
|
+
"prefix": false
|
|
293
|
+
},
|
|
294
|
+
"300": {
|
|
295
|
+
"$value": "#8f2110",
|
|
296
|
+
"$type": "color",
|
|
297
|
+
"themeable": false,
|
|
298
|
+
"prefix": false
|
|
299
|
+
},
|
|
300
|
+
"400": {
|
|
301
|
+
"$value": "#a13322",
|
|
302
|
+
"$type": "color",
|
|
303
|
+
"themeable": false,
|
|
304
|
+
"prefix": false
|
|
305
|
+
},
|
|
306
|
+
"500": {
|
|
307
|
+
"$value": "#ad4a3b",
|
|
308
|
+
"$type": "color",
|
|
309
|
+
"themeable": false,
|
|
310
|
+
"prefix": false
|
|
311
|
+
},
|
|
312
|
+
"600": {
|
|
313
|
+
"$value": "#c66e60",
|
|
314
|
+
"$type": "color",
|
|
315
|
+
"themeable": false,
|
|
316
|
+
"prefix": false
|
|
317
|
+
},
|
|
318
|
+
"700": {
|
|
319
|
+
"$value": "#d59086",
|
|
320
|
+
"$type": "color",
|
|
321
|
+
"themeable": false,
|
|
322
|
+
"prefix": false
|
|
323
|
+
},
|
|
324
|
+
"800": {
|
|
325
|
+
"$value": "#e3bab5",
|
|
326
|
+
"$type": "color",
|
|
327
|
+
"themeable": false,
|
|
328
|
+
"prefix": false
|
|
329
|
+
},
|
|
330
|
+
"900": {
|
|
331
|
+
"$value": "#ecd3d0",
|
|
332
|
+
"$type": "color",
|
|
333
|
+
"themeable": false,
|
|
334
|
+
"prefix": false
|
|
335
|
+
},
|
|
336
|
+
"950": {
|
|
337
|
+
"$value": "#f4e9e7",
|
|
338
|
+
"$type": "color",
|
|
339
|
+
"themeable": false,
|
|
340
|
+
"prefix": false
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
"light-red": {
|
|
344
|
+
"50": {
|
|
345
|
+
"$value": "#5c1105",
|
|
346
|
+
"$type": "color",
|
|
347
|
+
"themeable": false,
|
|
348
|
+
"prefix": false
|
|
349
|
+
},
|
|
350
|
+
"100": {
|
|
351
|
+
"$value": "#751709",
|
|
352
|
+
"$type": "color",
|
|
353
|
+
"themeable": false,
|
|
354
|
+
"prefix": false
|
|
355
|
+
},
|
|
356
|
+
"200": {
|
|
357
|
+
"$value": "#8b2212",
|
|
358
|
+
"$type": "color",
|
|
359
|
+
"themeable": false,
|
|
360
|
+
"prefix": false
|
|
361
|
+
},
|
|
362
|
+
"300": {
|
|
363
|
+
"$value": "#a02e1c",
|
|
364
|
+
"$type": "color",
|
|
365
|
+
"themeable": false,
|
|
366
|
+
"prefix": false
|
|
367
|
+
},
|
|
368
|
+
"400": {
|
|
369
|
+
"$value": "#b53a26",
|
|
370
|
+
"$type": "color",
|
|
371
|
+
"themeable": false,
|
|
372
|
+
"prefix": false
|
|
373
|
+
},
|
|
374
|
+
"500": {
|
|
375
|
+
"$value": "#c24b38",
|
|
376
|
+
"$type": "color",
|
|
377
|
+
"themeable": false,
|
|
378
|
+
"prefix": false
|
|
379
|
+
},
|
|
380
|
+
"600": {
|
|
381
|
+
"$value": "#d36250",
|
|
382
|
+
"$type": "color",
|
|
383
|
+
"themeable": false,
|
|
384
|
+
"prefix": false
|
|
385
|
+
},
|
|
386
|
+
"700": {
|
|
387
|
+
"$value": "#e07f6f",
|
|
388
|
+
"$type": "color",
|
|
389
|
+
"themeable": false,
|
|
390
|
+
"prefix": false
|
|
391
|
+
},
|
|
392
|
+
"800": {
|
|
393
|
+
"$value": "#ebada2",
|
|
394
|
+
"$type": "color",
|
|
395
|
+
"themeable": false,
|
|
396
|
+
"prefix": false
|
|
397
|
+
},
|
|
398
|
+
"900": {
|
|
399
|
+
"$value": "#f6d9d5",
|
|
400
|
+
"$type": "color",
|
|
401
|
+
"themeable": false,
|
|
402
|
+
"prefix": false
|
|
403
|
+
},
|
|
404
|
+
"950": {
|
|
405
|
+
"$value": "#faf2f1",
|
|
406
|
+
"$type": "color",
|
|
407
|
+
"themeable": false,
|
|
408
|
+
"prefix": false
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { methods, template } from './common_story_options';
|
|
2
|
+
import colorTokens from './color.theme.dark.tokens.json';
|
|
3
|
+
|
|
4
|
+
const generateProps = ({ name = '', tokens = colorTokens } = {}) => ({
|
|
5
|
+
name,
|
|
6
|
+
tokens,
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
export const ThemeIndigo = (args, { argTypes }) => ({
|
|
10
|
+
props: Object.keys(argTypes),
|
|
11
|
+
methods,
|
|
12
|
+
template,
|
|
13
|
+
});
|
|
14
|
+
ThemeIndigo.args = generateProps({ name: 'theme.indigo', tokens: colorTokens.theme.indigo });
|
|
15
|
+
|
|
16
|
+
export const ThemeBlue = (args, { argTypes }) => ({
|
|
17
|
+
props: Object.keys(argTypes),
|
|
18
|
+
methods,
|
|
19
|
+
template,
|
|
20
|
+
});
|
|
21
|
+
ThemeBlue.args = generateProps({ name: 'theme.blue', tokens: colorTokens.theme.blue });
|
|
22
|
+
|
|
23
|
+
export const ThemeLightBlue = (args, { argTypes }) => ({
|
|
24
|
+
props: Object.keys(argTypes),
|
|
25
|
+
methods,
|
|
26
|
+
template,
|
|
27
|
+
});
|
|
28
|
+
ThemeLightBlue.args = generateProps({
|
|
29
|
+
name: 'theme.light-blue',
|
|
30
|
+
tokens: colorTokens.theme['light-blue'],
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export const ThemeGreen = (args, { argTypes }) => ({
|
|
34
|
+
props: Object.keys(argTypes),
|
|
35
|
+
methods,
|
|
36
|
+
template,
|
|
37
|
+
});
|
|
38
|
+
ThemeGreen.args = generateProps({ name: 'theme.green', tokens: colorTokens.theme.green });
|
|
39
|
+
|
|
40
|
+
export const ThemeRed = (args, { argTypes }) => ({
|
|
41
|
+
props: Object.keys(argTypes),
|
|
42
|
+
methods,
|
|
43
|
+
template,
|
|
44
|
+
});
|
|
45
|
+
ThemeRed.args = generateProps({ name: 'theme.red', tokens: colorTokens.theme.red });
|
|
46
|
+
|
|
47
|
+
export const ThemeLightRed = (args, { argTypes }) => ({
|
|
48
|
+
props: Object.keys(argTypes),
|
|
49
|
+
methods,
|
|
50
|
+
template,
|
|
51
|
+
});
|
|
52
|
+
ThemeLightRed.args = generateProps({
|
|
53
|
+
name: 'theme.light-red',
|
|
54
|
+
tokens: colorTokens.theme['light-red'],
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
// eslint-disable-next-line storybook/csf-component
|
|
58
|
+
export default {
|
|
59
|
+
title: 'tokens/color/themes/dark',
|
|
60
|
+
};
|