@vinaverse/tokens 0.1.0-alpha.2 → 0.1.0-alpha.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vinaverse/tokens",
3
- "version": "0.1.0-alpha.2",
3
+ "version": "0.1.0-alpha.21",
4
4
  "description": "Vinaverse design tokens and copy shared by every UI kit: colors for light and dark, type, spacing, radii, motion, a contrast check; and the words the kits say, with the rules on them.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Vinaverse, Inc.",
@@ -19,6 +19,10 @@
19
19
  "sideEffects": false,
20
20
  "exports": {
21
21
  ".": {
22
+ "react-native": {
23
+ "types": "./dist/index.d.cts",
24
+ "default": "./dist/index.cjs"
25
+ },
22
26
  "import": {
23
27
  "types": "./dist/index.d.ts",
24
28
  "default": "./dist/index.js"
@@ -29,6 +33,10 @@
29
33
  }
30
34
  },
31
35
  "./copy": {
36
+ "react-native": {
37
+ "types": "./dist/copy/index.d.cts",
38
+ "default": "./dist/copy/index.cjs"
39
+ },
32
40
  "import": {
33
41
  "types": "./dist/copy/index.d.ts",
34
42
  "default": "./dist/copy/index.js"
@@ -64,13 +72,13 @@
64
72
  "name": "@vinaverse/tokens (ESM, everything)",
65
73
  "path": "dist/index.js",
66
74
  "import": "*",
67
- "limit": "2 kB"
75
+ "limit": "2.6 kB"
68
76
  },
69
77
  {
70
78
  "name": "@vinaverse/tokens/copy (ESM, everything)",
71
79
  "path": "dist/copy/index.js",
72
80
  "import": "*",
73
- "limit": "4 kB"
81
+ "limit": "4.5 kB"
74
82
  }
75
83
  ],
76
84
  "scripts": {
package/src/tokens.json CHANGED
@@ -26,6 +26,10 @@
26
26
  "$type": "color",
27
27
  "$value": "#545B67"
28
28
  },
29
+ "textSecondary": {
30
+ "$type": "color",
31
+ "$value": "#454B55"
32
+ },
29
33
  "primary": {
30
34
  "$type": "color",
31
35
  "$value": "#2B57CF"
@@ -85,6 +89,14 @@
85
89
  "focus": {
86
90
  "$type": "color",
87
91
  "$value": "#2B57CF"
92
+ },
93
+ "primarySubtle": {
94
+ "$type": "color",
95
+ "$value": "#F5F6F8"
96
+ },
97
+ "rating": {
98
+ "$type": "color",
99
+ "$value": "#7A4F00"
88
100
  }
89
101
  },
90
102
  "dark": {
@@ -112,6 +124,10 @@
112
124
  "$type": "color",
113
125
  "$value": "#A6ADBA"
114
126
  },
127
+ "textSecondary": {
128
+ "$type": "color",
129
+ "$value": "#BEC4CF"
130
+ },
115
131
  "primary": {
116
132
  "$type": "color",
117
133
  "$value": "#8DB0FF"
@@ -171,6 +187,14 @@
171
187
  "focus": {
172
188
  "$type": "color",
173
189
  "$value": "#8DB0FF"
190
+ },
191
+ "primarySubtle": {
192
+ "$type": "color",
193
+ "$value": "#181B21"
194
+ },
195
+ "rating": {
196
+ "$type": "color",
197
+ "$value": "#E6B85C"
174
198
  }
175
199
  }
176
200
  },
@@ -261,9 +285,13 @@
261
285
  }
262
286
  },
263
287
  "motion": {
288
+ "instant": {
289
+ "$type": "duration",
290
+ "$value": 80
291
+ },
264
292
  "fast": {
265
293
  "$type": "duration",
266
- "$value": 120
294
+ "$value": 140
267
295
  },
268
296
  "normal": {
269
297
  "$type": "duration",
@@ -273,6 +301,26 @@
273
301
  "$type": "duration",
274
302
  "$value": 600,
275
303
  "$description": "how long a connecting banner waits before it shows, so a quick connection never flashes one"
304
+ },
305
+ "base": {
306
+ "$type": "duration",
307
+ "$value": 220
308
+ },
309
+ "slow": {
310
+ "$type": "duration",
311
+ "$value": 320
312
+ },
313
+ "stagger": {
314
+ "$type": "duration",
315
+ "$value": 30
316
+ },
317
+ "rise": {
318
+ "$type": "dimension",
319
+ "$value": 8
320
+ },
321
+ "pressScale": {
322
+ "$type": "number",
323
+ "$value": 0.97
276
324
  }
277
325
  },
278
326
  "size": {
@@ -290,6 +338,333 @@
290
338
  "$description": "the AI disclosure is never drawn smaller"
291
339
  }
292
340
  },
341
+ "chat": {
342
+ "$description": "The chat shell (spec 00), kit defaults a tenant overrides (ThemeOverrides.chat): elevation draws in light only.",
343
+ "gutter": {
344
+ "$type": "dimension",
345
+ "$value": 16
346
+ },
347
+ "gap": {
348
+ "sameAuthor": {
349
+ "$type": "dimension",
350
+ "$value": 4
351
+ },
352
+ "authorChange": {
353
+ "$type": "dimension",
354
+ "$value": 12
355
+ },
356
+ "block": {
357
+ "$type": "dimension",
358
+ "$value": 8
359
+ }
360
+ },
361
+ "bubble": {
362
+ "padX": {
363
+ "$type": "dimension",
364
+ "$value": 14
365
+ },
366
+ "padY": {
367
+ "$type": "dimension",
368
+ "$value": 10
369
+ },
370
+ "maxWidth": {
371
+ "$type": "number",
372
+ "$value": 0.82
373
+ }
374
+ },
375
+ "card": {
376
+ "pad": {
377
+ "$type": "dimension",
378
+ "$value": 14
379
+ },
380
+ "gap": {
381
+ "$type": "dimension",
382
+ "$value": 8
383
+ },
384
+ "carouselGap": {
385
+ "$type": "dimension",
386
+ "$value": 10
387
+ },
388
+ "carouselWidth": {
389
+ "$type": "dimension",
390
+ "$value": 214
391
+ }
392
+ },
393
+ "chip": {
394
+ "height": {
395
+ "$type": "dimension",
396
+ "$value": 38
397
+ },
398
+ "gap": {
399
+ "$type": "dimension",
400
+ "$value": 8
401
+ }
402
+ },
403
+ "header": {
404
+ "height": {
405
+ "$type": "dimension",
406
+ "$value": 56
407
+ }
408
+ },
409
+ "composer": {
410
+ "minHeight": {
411
+ "$type": "dimension",
412
+ "$value": 48
413
+ }
414
+ },
415
+ "input": {
416
+ "gap": {
417
+ "$type": "dimension",
418
+ "$value": 12
419
+ }
420
+ },
421
+ "radius": {
422
+ "bubble": {
423
+ "$type": "dimension",
424
+ "$value": 20
425
+ },
426
+ "bubbleTail": {
427
+ "$type": "dimension",
428
+ "$value": 6
429
+ },
430
+ "card": {
431
+ "$type": "dimension",
432
+ "$value": 16
433
+ },
434
+ "cardMedia": {
435
+ "$type": "dimension",
436
+ "$value": 12
437
+ },
438
+ "chip": {
439
+ "$type": "dimension",
440
+ "$value": 999
441
+ },
442
+ "slot": {
443
+ "$type": "dimension",
444
+ "$value": 12
445
+ },
446
+ "field": {
447
+ "$type": "dimension",
448
+ "$value": 12
449
+ },
450
+ "composer": {
451
+ "$type": "dimension",
452
+ "$value": 24
453
+ },
454
+ "sheet": {
455
+ "$type": "dimension",
456
+ "$value": 28
457
+ }
458
+ },
459
+ "elevation": {
460
+ "card": {
461
+ "$type": "shadow",
462
+ "$value": {
463
+ "offsetY": 1,
464
+ "blur": 3,
465
+ "opacity": 0.08
466
+ }
467
+ },
468
+ "raised": {
469
+ "$type": "shadow",
470
+ "$value": {
471
+ "offsetY": 4,
472
+ "blur": 12,
473
+ "opacity": 0.08
474
+ }
475
+ },
476
+ "overlay": {
477
+ "$type": "shadow",
478
+ "$value": {
479
+ "offsetY": 12,
480
+ "blur": 28,
481
+ "opacity": 0.12
482
+ }
483
+ },
484
+ "sheet": {
485
+ "$type": "shadow",
486
+ "$value": {
487
+ "offsetY": -4,
488
+ "blur": 16,
489
+ "opacity": 0.08
490
+ }
491
+ }
492
+ },
493
+ "type": {
494
+ "bubble": {
495
+ "size": {
496
+ "$type": "dimension",
497
+ "$value": 16
498
+ },
499
+ "line": {
500
+ "$type": "dimension",
501
+ "$value": 22
502
+ },
503
+ "weight": {
504
+ "$type": "fontWeight",
505
+ "$value": 400
506
+ }
507
+ },
508
+ "meta": {
509
+ "size": {
510
+ "$type": "dimension",
511
+ "$value": 12
512
+ },
513
+ "line": {
514
+ "$type": "dimension",
515
+ "$value": 16
516
+ },
517
+ "weight": {
518
+ "$type": "fontWeight",
519
+ "$value": 400
520
+ }
521
+ },
522
+ "cardTitle": {
523
+ "size": {
524
+ "$type": "dimension",
525
+ "$value": 15
526
+ },
527
+ "line": {
528
+ "$type": "dimension",
529
+ "$value": 20
530
+ },
531
+ "weight": {
532
+ "$type": "fontWeight",
533
+ "$value": 600
534
+ }
535
+ },
536
+ "cardBody": {
537
+ "size": {
538
+ "$type": "dimension",
539
+ "$value": 13
540
+ },
541
+ "line": {
542
+ "$type": "dimension",
543
+ "$value": 18
544
+ },
545
+ "weight": {
546
+ "$type": "fontWeight",
547
+ "$value": 400
548
+ }
549
+ },
550
+ "cardPrice": {
551
+ "size": {
552
+ "$type": "dimension",
553
+ "$value": 15
554
+ },
555
+ "line": {
556
+ "$type": "dimension",
557
+ "$value": 20
558
+ },
559
+ "weight": {
560
+ "$type": "fontWeight",
561
+ "$value": 600
562
+ }
563
+ },
564
+ "chip": {
565
+ "size": {
566
+ "$type": "dimension",
567
+ "$value": 14
568
+ },
569
+ "line": {
570
+ "$type": "dimension",
571
+ "$value": 20
572
+ },
573
+ "weight": {
574
+ "$type": "fontWeight",
575
+ "$value": 500
576
+ }
577
+ },
578
+ "working": {
579
+ "size": {
580
+ "$type": "dimension",
581
+ "$value": 14
582
+ },
583
+ "line": {
584
+ "$type": "dimension",
585
+ "$value": 19
586
+ },
587
+ "weight": {
588
+ "$type": "fontWeight",
589
+ "$value": 400
590
+ }
591
+ }
592
+ },
593
+ "thinking": {
594
+ "dotSize": {
595
+ "$type": "dimension",
596
+ "$value": 6
597
+ },
598
+ "dotGap": {
599
+ "$type": "dimension",
600
+ "$value": 4
601
+ },
602
+ "rise": {
603
+ "$type": "dimension",
604
+ "$value": 3
605
+ },
606
+ "cycle": {
607
+ "$type": "duration",
608
+ "$value": 900
609
+ },
610
+ "delay": {
611
+ "$type": "duration",
612
+ "$value": 300
613
+ },
614
+ "dotDelay": {
615
+ "$type": "duration",
616
+ "$value": 150
617
+ }
618
+ },
619
+ "working": {
620
+ "minStep": {
621
+ "$type": "duration",
622
+ "$value": 600
623
+ },
624
+ "iconSize": {
625
+ "$type": "dimension",
626
+ "$value": 14
627
+ },
628
+ "fontSize": {
629
+ "$type": "dimension",
630
+ "$value": 14
631
+ },
632
+ "lineHeight": {
633
+ "$type": "dimension",
634
+ "$value": 19
635
+ }
636
+ },
637
+ "caret": {
638
+ "width": {
639
+ "$type": "dimension",
640
+ "$value": 2
641
+ },
642
+ "height": {
643
+ "$type": "dimension",
644
+ "$value": 18
645
+ },
646
+ "cycle": {
647
+ "$type": "duration",
648
+ "$value": 1000
649
+ }
650
+ },
651
+ "stream": {
652
+ "flush": {
653
+ "$type": "duration",
654
+ "$value": 50
655
+ }
656
+ },
657
+ "skeleton": {
658
+ "pulse": {
659
+ "$type": "duration",
660
+ "$value": 1200
661
+ },
662
+ "minOpacity": {
663
+ "$type": "number",
664
+ "$value": 0.55
665
+ }
666
+ }
667
+ },
293
668
  "contrast": {
294
669
  "$description": "The text and control pairs a theme must keep legible, in every mode: WCAG 2 ratio of fg on bg at least min (4.5 for text, 3 for controls and borders). divider is decorative and has none.",
295
670
  "pairs": [
@@ -313,6 +688,21 @@
313
688
  "bg": "color.surface",
314
689
  "min": 4.5
315
690
  },
691
+ {
692
+ "fg": "color.textSecondary",
693
+ "bg": "color.background",
694
+ "min": 4.5
695
+ },
696
+ {
697
+ "fg": "color.textSecondary",
698
+ "bg": "color.surface",
699
+ "min": 4.5
700
+ },
701
+ {
702
+ "fg": "color.textSecondary",
703
+ "bg": "color.agentBubble",
704
+ "min": 4.5
705
+ },
316
706
  {
317
707
  "fg": "color.agentText",
318
708
  "bg": "color.agentBubble",
@@ -358,6 +748,11 @@
358
748
  "bg": "color.background",
359
749
  "min": 4.5
360
750
  },
751
+ {
752
+ "fg": "color.warning",
753
+ "bg": "color.surface",
754
+ "min": 4.5
755
+ },
361
756
  {
362
757
  "fg": "color.success",
363
758
  "bg": "color.background",
@@ -372,7 +767,27 @@
372
767
  "fg": "color.focus",
373
768
  "bg": "color.background",
374
769
  "min": 3
770
+ },
771
+ {
772
+ "fg": "color.primary",
773
+ "bg": "color.primarySubtle",
774
+ "min": 4.5
375
775
  }
376
776
  ]
777
+ },
778
+ "ease": {
779
+ "$description": "cubic-bezier control points: standard for what moves and stays, out for what enters, in for what leaves",
780
+ "standard": {
781
+ "$type": "cubicBezier",
782
+ "$value": [0.2, 0, 0, 1]
783
+ },
784
+ "out": {
785
+ "$type": "cubicBezier",
786
+ "$value": [0.16, 1, 0.3, 1]
787
+ },
788
+ "in": {
789
+ "$type": "cubicBezier",
790
+ "$value": [0.4, 0, 1, 1]
791
+ }
377
792
  }
378
793
  }