@volue/design-colors 2.0.4-next.0 → 3.0.0-next.1

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.
@@ -0,0 +1,572 @@
1
+ [
2
+ {
3
+ "name": "CANVAS",
4
+ "palette": "canvas",
5
+ "textColors": [
6
+ {
7
+ "name": "NEUTRAL",
8
+ "rating": "AAA"
9
+ },
10
+ {
11
+ "name": "NEUTRAL_MODERATE",
12
+ "rating": "AAA"
13
+ },
14
+ {
15
+ "name": "NEUTRAL_SUBTLE",
16
+ "rating": "AA"
17
+ },
18
+ {
19
+ "name": "LINK",
20
+ "rating": "AAA"
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "CANVAS_SUBTLE",
26
+ "palette": "canvas",
27
+ "textColors": [
28
+ {
29
+ "name": "NEUTRAL",
30
+ "rating": "AAA"
31
+ },
32
+ {
33
+ "name": "NEUTRAL_MODERATE",
34
+ "rating": "AAA"
35
+ },
36
+ {
37
+ "name": "NEUTRAL_SUBTLE",
38
+ "rating": "AA"
39
+ },
40
+ {
41
+ "name": "LINK",
42
+ "rating": "AAA"
43
+ }
44
+ ]
45
+ },
46
+ {
47
+ "name": "SURFACE",
48
+ "palette": "surface",
49
+ "textColors": [
50
+ {
51
+ "name": "NEUTRAL",
52
+ "rating": "AAA"
53
+ },
54
+ {
55
+ "name": "NEUTRAL_MODERATE",
56
+ "rating": "AAA"
57
+ },
58
+ {
59
+ "name": "NEUTRAL_SUBTLE",
60
+ "rating": "AA"
61
+ },
62
+ {
63
+ "name": "LINK",
64
+ "rating": "AAA"
65
+ }
66
+ ]
67
+ },
68
+ {
69
+ "name": "SURFACE_SUBTLE",
70
+ "palette": "surface",
71
+ "textColors": [
72
+ {
73
+ "name": "NEUTRAL",
74
+ "rating": "AAA"
75
+ },
76
+ {
77
+ "name": "NEUTRAL_MODERATE",
78
+ "rating": "AAA"
79
+ },
80
+ {
81
+ "name": "NEUTRAL_SUBTLE",
82
+ "rating": "AA"
83
+ },
84
+ {
85
+ "name": "LINK",
86
+ "rating": "AAA"
87
+ }
88
+ ]
89
+ },
90
+ {
91
+ "name": "SURFACE_CONTRAST",
92
+ "palette": "surface",
93
+ "textColors": [
94
+ {
95
+ "name": "INVERSE",
96
+ "rating": "AAA"
97
+ }
98
+ ]
99
+ },
100
+ {
101
+ "name": "NEUTRAL_MINIMAL",
102
+ "palette": "neutral",
103
+ "textColors": [
104
+ {
105
+ "name": "NEUTRAL",
106
+ "rating": "AAA"
107
+ },
108
+ {
109
+ "name": "NEUTRAL_MODERATE",
110
+ "rating": "AAA"
111
+ },
112
+ {
113
+ "name": "NEUTRAL_SUBTLE",
114
+ "rating": "AA"
115
+ },
116
+ {
117
+ "name": "LINK",
118
+ "rating": "AAA"
119
+ }
120
+ ]
121
+ },
122
+ {
123
+ "name": "NEUTRAL_SUBTLE",
124
+ "palette": "neutral",
125
+ "textColors": [
126
+ {
127
+ "name": "NEUTRAL",
128
+ "rating": "AAA"
129
+ },
130
+ {
131
+ "name": "NEUTRAL_MODERATE",
132
+ "rating": "AAA"
133
+ },
134
+ {
135
+ "name": "NEUTRAL_SUBTLE",
136
+ "rating": "AA"
137
+ },
138
+ {
139
+ "name": "LINK",
140
+ "rating": "AAA"
141
+ }
142
+ ]
143
+ },
144
+ {
145
+ "name": "NEUTRAL_MODERATE",
146
+ "palette": "neutral",
147
+ "textColors": [
148
+ {
149
+ "name": "NEUTRAL",
150
+ "rating": "AAA"
151
+ },
152
+ {
153
+ "name": "NEUTRAL_MODERATE",
154
+ "rating": "AAA"
155
+ },
156
+ {
157
+ "name": "NEUTRAL_SUBTLE",
158
+ "rating": "AA"
159
+ },
160
+ {
161
+ "name": "LINK",
162
+ "rating": "AAA"
163
+ }
164
+ ]
165
+ },
166
+ {
167
+ "name": "NEUTRAL",
168
+ "palette": "neutral",
169
+ "textColors": [
170
+ {
171
+ "name": "NEUTRAL",
172
+ "rating": "AAA"
173
+ },
174
+ {
175
+ "name": "NEUTRAL_MODERATE",
176
+ "rating": "AAA"
177
+ },
178
+ {
179
+ "name": "LINK",
180
+ "rating": "AA"
181
+ }
182
+ ]
183
+ },
184
+ {
185
+ "name": "NEUTRAL_BOLD",
186
+ "palette": "neutral",
187
+ "textColors": [
188
+ {
189
+ "name": "INVERSE",
190
+ "rating": "AA"
191
+ }
192
+ ]
193
+ },
194
+ {
195
+ "name": "NEUTRAL_STRONG",
196
+ "palette": "neutral",
197
+ "textColors": [
198
+ {
199
+ "name": "INVERSE",
200
+ "rating": "AAA"
201
+ }
202
+ ]
203
+ },
204
+ {
205
+ "name": "NEUTRAL_CONTRAST",
206
+ "palette": "neutral",
207
+ "textColors": [
208
+ {
209
+ "name": "INVERSE",
210
+ "rating": "AAA"
211
+ }
212
+ ]
213
+ },
214
+ {
215
+ "name": "ACCENT_MINIMAL",
216
+ "palette": "accent",
217
+ "textColors": [
218
+ {
219
+ "name": "NEUTRAL",
220
+ "rating": "AAA"
221
+ },
222
+ {
223
+ "name": "NEUTRAL_MODERATE",
224
+ "rating": "AAA"
225
+ },
226
+ {
227
+ "name": "NEUTRAL_SUBTLE",
228
+ "rating": "AA"
229
+ },
230
+ {
231
+ "name": "ACCENT",
232
+ "rating": "AAA"
233
+ },
234
+ {
235
+ "name": "ACCENT_MODERATE",
236
+ "rating": "AAA"
237
+ },
238
+ {
239
+ "name": "LINK",
240
+ "rating": "AAA"
241
+ }
242
+ ]
243
+ },
244
+ {
245
+ "name": "ACCENT_SUBTLE",
246
+ "palette": "accent",
247
+ "textColors": [
248
+ {
249
+ "name": "NEUTRAL",
250
+ "rating": "AAA"
251
+ },
252
+ {
253
+ "name": "NEUTRAL_MODERATE",
254
+ "rating": "AAA"
255
+ },
256
+ {
257
+ "name": "NEUTRAL_SUBTLE",
258
+ "rating": "AA"
259
+ },
260
+ {
261
+ "name": "ACCENT",
262
+ "rating": "AAA"
263
+ },
264
+ {
265
+ "name": "ACCENT_MODERATE",
266
+ "rating": "AAA"
267
+ },
268
+ {
269
+ "name": "LINK",
270
+ "rating": "AAA"
271
+ }
272
+ ]
273
+ },
274
+ {
275
+ "name": "ACCENT",
276
+ "palette": "accent",
277
+ "textColors": [
278
+ {
279
+ "name": "NEUTRAL",
280
+ "rating": "AAA"
281
+ },
282
+ {
283
+ "name": "NEUTRAL_MODERATE",
284
+ "rating": "AAA"
285
+ },
286
+ {
287
+ "name": "ACCENT",
288
+ "rating": "AAA"
289
+ },
290
+ {
291
+ "name": "ACCENT_MODERATE",
292
+ "rating": "AA"
293
+ },
294
+ {
295
+ "name": "LINK",
296
+ "rating": "AA"
297
+ }
298
+ ]
299
+ },
300
+ {
301
+ "name": "ACCENT_BOLD",
302
+ "palette": "accent",
303
+ "textColors": [
304
+ {
305
+ "name": "NEUTRAL",
306
+ "rating": "AA"
307
+ }
308
+ ]
309
+ },
310
+ {
311
+ "name": "ACCENT_STRONG",
312
+ "palette": "accent",
313
+ "textColors": [
314
+ {
315
+ "name": "INVERSE",
316
+ "rating": "AA"
317
+ }
318
+ ]
319
+ },
320
+ {
321
+ "name": "INFO_SUBTLE",
322
+ "palette": "info",
323
+ "textColors": [
324
+ {
325
+ "name": "NEUTRAL",
326
+ "rating": "AAA"
327
+ },
328
+ {
329
+ "name": "NEUTRAL_MODERATE",
330
+ "rating": "AAA"
331
+ },
332
+ {
333
+ "name": "NEUTRAL_SUBTLE",
334
+ "rating": "AA"
335
+ },
336
+ {
337
+ "name": "INFO",
338
+ "rating": "AAA"
339
+ },
340
+ {
341
+ "name": "LINK",
342
+ "rating": "AAA"
343
+ }
344
+ ]
345
+ },
346
+ {
347
+ "name": "INFO",
348
+ "palette": "info",
349
+ "textColors": [
350
+ {
351
+ "name": "NEUTRAL",
352
+ "rating": "AAA"
353
+ },
354
+ {
355
+ "name": "NEUTRAL_MODERATE",
356
+ "rating": "AAA"
357
+ },
358
+ {
359
+ "name": "NEUTRAL_SUBTLE",
360
+ "rating": "AA"
361
+ },
362
+ {
363
+ "name": "INFO",
364
+ "rating": "AA"
365
+ },
366
+ {
367
+ "name": "LINK",
368
+ "rating": "AAA"
369
+ }
370
+ ]
371
+ },
372
+ {
373
+ "name": "INFO_STRONG",
374
+ "palette": "info",
375
+ "textColors": [
376
+ {
377
+ "name": "INVERSE",
378
+ "rating": "AA"
379
+ }
380
+ ]
381
+ },
382
+ {
383
+ "name": "SUCCESS_SUBTLE",
384
+ "palette": "success",
385
+ "textColors": [
386
+ {
387
+ "name": "NEUTRAL",
388
+ "rating": "AAA"
389
+ },
390
+ {
391
+ "name": "NEUTRAL_MODERATE",
392
+ "rating": "AAA"
393
+ },
394
+ {
395
+ "name": "NEUTRAL_SUBTLE",
396
+ "rating": "AA"
397
+ },
398
+ {
399
+ "name": "SUCCESS",
400
+ "rating": "AA"
401
+ },
402
+ {
403
+ "name": "LINK",
404
+ "rating": "AAA"
405
+ }
406
+ ]
407
+ },
408
+ {
409
+ "name": "SUCCESS",
410
+ "palette": "success",
411
+ "textColors": [
412
+ {
413
+ "name": "NEUTRAL",
414
+ "rating": "AAA"
415
+ },
416
+ {
417
+ "name": "NEUTRAL_MODERATE",
418
+ "rating": "AAA"
419
+ },
420
+ {
421
+ "name": "NEUTRAL_SUBTLE",
422
+ "rating": "AA"
423
+ },
424
+ {
425
+ "name": "SUCCESS",
426
+ "rating": "AA"
427
+ },
428
+ {
429
+ "name": "LINK",
430
+ "rating": "AAA"
431
+ }
432
+ ]
433
+ },
434
+ {
435
+ "name": "SUCCESS_STRONG",
436
+ "palette": "success",
437
+ "textColors": [
438
+ {
439
+ "name": "INVERSE",
440
+ "rating": "AA"
441
+ }
442
+ ]
443
+ },
444
+ {
445
+ "name": "WARNING_SUBTLE",
446
+ "palette": "warning",
447
+ "textColors": [
448
+ {
449
+ "name": "NEUTRAL",
450
+ "rating": "AAA"
451
+ },
452
+ {
453
+ "name": "NEUTRAL_MODERATE",
454
+ "rating": "AAA"
455
+ },
456
+ {
457
+ "name": "NEUTRAL_SUBTLE",
458
+ "rating": "AA"
459
+ },
460
+ {
461
+ "name": "WARNING",
462
+ "rating": "AA"
463
+ },
464
+ {
465
+ "name": "LINK",
466
+ "rating": "AAA"
467
+ }
468
+ ]
469
+ },
470
+ {
471
+ "name": "WARNING",
472
+ "palette": "warning",
473
+ "textColors": [
474
+ {
475
+ "name": "NEUTRAL",
476
+ "rating": "AAA"
477
+ },
478
+ {
479
+ "name": "NEUTRAL_MODERATE",
480
+ "rating": "AAA"
481
+ },
482
+ {
483
+ "name": "NEUTRAL_SUBTLE",
484
+ "rating": "AA"
485
+ },
486
+ {
487
+ "name": "WARNING",
488
+ "rating": "AA"
489
+ },
490
+ {
491
+ "name": "LINK",
492
+ "rating": "AAA"
493
+ }
494
+ ]
495
+ },
496
+ {
497
+ "name": "WARNING_STRONG",
498
+ "palette": "warning",
499
+ "textColors": [
500
+ {
501
+ "name": "NEUTRAL",
502
+ "rating": "AA"
503
+ },
504
+ {
505
+ "name": "NEUTRAL_MODERATE",
506
+ "rating": "AA"
507
+ }
508
+ ]
509
+ },
510
+ {
511
+ "name": "DANGER_SUBTLE",
512
+ "palette": "danger",
513
+ "textColors": [
514
+ {
515
+ "name": "NEUTRAL",
516
+ "rating": "AAA"
517
+ },
518
+ {
519
+ "name": "NEUTRAL_MODERATE",
520
+ "rating": "AAA"
521
+ },
522
+ {
523
+ "name": "NEUTRAL_SUBTLE",
524
+ "rating": "AA"
525
+ },
526
+ {
527
+ "name": "DANGER",
528
+ "rating": "AAA"
529
+ },
530
+ {
531
+ "name": "LINK",
532
+ "rating": "AAA"
533
+ }
534
+ ]
535
+ },
536
+ {
537
+ "name": "DANGER",
538
+ "palette": "danger",
539
+ "textColors": [
540
+ {
541
+ "name": "NEUTRAL",
542
+ "rating": "AAA"
543
+ },
544
+ {
545
+ "name": "NEUTRAL_MODERATE",
546
+ "rating": "AAA"
547
+ },
548
+ {
549
+ "name": "NEUTRAL_SUBTLE",
550
+ "rating": "AA"
551
+ },
552
+ {
553
+ "name": "DANGER",
554
+ "rating": "AAA"
555
+ },
556
+ {
557
+ "name": "LINK",
558
+ "rating": "AAA"
559
+ }
560
+ ]
561
+ },
562
+ {
563
+ "name": "DANGER_STRONG",
564
+ "palette": "danger",
565
+ "textColors": [
566
+ {
567
+ "name": "INVERSE",
568
+ "rating": "AA"
569
+ }
570
+ ]
571
+ }
572
+ ]
@@ -0,0 +1,5 @@
1
+ {
2
+ "main": "dist/flat.common.js",
3
+ "module": "dist/flat.module.js",
4
+ "types": "../dist/flat.d.ts"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "main": "dist/generic.common.js",
3
+ "module": "dist/generic.module.js",
4
+ "types": "../dist/generic.d.ts"
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volue/design-colors",
3
- "version": "2.0.4-next.0",
3
+ "version": "3.0.0-next.1",
4
4
  "description": "Color primitives for Volue design primitives",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -11,12 +11,46 @@
11
11
  "publishConfig": {
12
12
  "access": "public"
13
13
  },
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/index.d.ts",
17
+ "module": "./dist/index.module.js",
18
+ "default": "./dist/index.common.js"
19
+ },
20
+ "./flat": {
21
+ "types": "./dist/flat.d.ts",
22
+ "module": "./dist/flat.module.js",
23
+ "default": "./dist/flat.common.js"
24
+ },
25
+ "./generic": {
26
+ "types": "./dist/generic.d.ts",
27
+ "module": "./dist/generic.module.js",
28
+ "default": "./dist/generic.common.js"
29
+ },
30
+ "./dist/*": "./dist/*",
31
+ "./package.json": "./package.json"
32
+ },
14
33
  "main": "dist/index.common.js",
15
34
  "module": "dist/index.module.js",
16
- "types": "dist/index.common.d.ts",
35
+ "types": "dist/index.d.ts",
36
+ "typesVersions": {
37
+ "*": {
38
+ "*": [
39
+ "./dist/index.d.ts"
40
+ ],
41
+ "flat": [
42
+ "./dist/flat.d.ts"
43
+ ],
44
+ "generic": [
45
+ "./dist/generic.d.ts"
46
+ ]
47
+ }
48
+ },
17
49
  "sideEffects": false,
18
50
  "files": [
19
51
  "dist",
52
+ "flat",
53
+ "generic",
20
54
  "src"
21
55
  ],
22
56
  "scripts": {
@@ -26,26 +60,23 @@
26
60
  "format": "yarn run _prettier --write",
27
61
  "test": "run-p lint \"_prettier --check\"",
28
62
  "clean": "rimraf dist",
29
- "_theo": "theo --setup theo.setup.js --transform web --dest dist",
30
63
  "build:tokens": "style-dictionary build",
31
64
  "build": "yarn run clean && yarn run build:tokens",
32
65
  "prepack": "yarn run build"
33
66
  },
34
67
  "devDependencies": {
35
- "@fantasy-color/contrast-ratio-luminance": "2.1.0",
36
- "@fantasy-color/from-hex": "2.1.0",
37
- "@fantasy-color/luminance-rgb": "2.1.0",
38
68
  "change-case": "4.1.2",
39
- "eslint": "8.43.0",
69
+ "color2k": "1.2.5",
70
+ "eslint": "8.46.0",
40
71
  "eslint-config-powel": "14.2.1",
41
72
  "eslint-import-resolver-node": "0.3.7",
42
- "eslint-plugin-import": "2.27.5",
73
+ "eslint-plugin-import": "2.28.0",
43
74
  "json-to-ts": "1.7.0",
44
75
  "map-obj": "4.3.0",
45
76
  "npm-run-all": "4.1.5",
46
77
  "prettier": "2.8.8",
47
78
  "rimraf": "3.0.2",
48
79
  "style-dictionary": "3.8.0",
49
- "typescript": "5.1.3"
80
+ "typescript": "5.1.6"
50
81
  }
51
82
  }