@phcdevworks/spectre-tokens 2.8.0 → 2.9.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/dist/index.css CHANGED
@@ -37,6 +37,41 @@
37
37
  --sp-icon-box-icon-success: #16a34a;
38
38
  --sp-icon-box-icon-warning: #d48806;
39
39
  --sp-icon-box-icon-danger: #dc2626;
40
+ --sp-nav-bg: #ffffff;
41
+ --sp-nav-text: #141b24;
42
+ --sp-nav-link: #374253;
43
+ --sp-nav-link-hover: #1f57db;
44
+ --sp-nav-link-active: #1946b4;
45
+ --sp-nav-border: #d9dfeb;
46
+ --sp-modal-bg: #ffffff;
47
+ --sp-modal-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.20);
48
+ --sp-modal-border: #d9dfeb;
49
+ --sp-modal-overlay: rgba(0, 0, 0, 0.6);
50
+ --sp-toast-success-bg: #f0fdf4;
51
+ --sp-toast-success-text: #166534;
52
+ --sp-toast-success-border: #bbf7d0;
53
+ --sp-toast-success-icon: #16a34a;
54
+ --sp-toast-warning-bg: #fffbea;
55
+ --sp-toast-warning-text: #8f5200;
56
+ --sp-toast-warning-border: #ffe08a;
57
+ --sp-toast-warning-icon: #d48806;
58
+ --sp-toast-danger-bg: #fef2f2;
59
+ --sp-toast-danger-text: #991b1b;
60
+ --sp-toast-danger-border: #fecaca;
61
+ --sp-toast-danger-icon: #dc2626;
62
+ --sp-toast-info-bg: #f0f9ff;
63
+ --sp-toast-info-text: #0c4a6e;
64
+ --sp-toast-info-border: #bae6fd;
65
+ --sp-toast-info-icon: #0369a1;
66
+ --sp-tooltip-bg: #141b24;
67
+ --sp-tooltip-text: #ffffff;
68
+ --sp-tooltip-border: #374253;
69
+ --sp-dropdown-bg: #ffffff;
70
+ --sp-dropdown-border: #d9dfeb;
71
+ --sp-dropdown-item-default: transparent;
72
+ --sp-dropdown-item-hover: #eef1f6;
73
+ --sp-dropdown-item-active: #f0f9ff;
74
+ --sp-dropdown-item-text: #141b24;
40
75
  --sp-color-brand-50: #eef4ff;
41
76
  --sp-color-brand-100: #d9e7ff;
42
77
  --sp-color-brand-200: #b9d2ff;
@@ -228,6 +263,7 @@
228
263
  --sp-z-index-popover: 1500;
229
264
  --sp-z-index-tooltip: 1600;
230
265
  --sp-z-index-toast: 1700;
266
+ --sp-duration-reduced: 0.01ms;
231
267
  --sp-duration-instant: 75ms;
232
268
  --sp-duration-fast: 150ms;
233
269
  --sp-duration-base: 200ms;
@@ -255,6 +291,7 @@
255
291
  --sp-focus-ring-style: solid;
256
292
  --sp-min-touch-target: 44px;
257
293
  --sp-min-text-size: 16px;
294
+ --sp-reduced-motion: 0.01ms;
258
295
  --sp-button-primary-bg: #0369a1;
259
296
  --sp-button-primary-bghover: #075985;
260
297
  --sp-button-primary-bgactive: #0c4a6e;
@@ -355,6 +392,30 @@
355
392
  --sp-animation-pulse-duration: 1200ms;
356
393
  --sp-animation-pulse-easing: cubic-bezier(0.4, 0, 0.2, 1);
357
394
  --sp-animation-pulse-keyframes: pulse;
395
+ --sp-animation-reduced-motion-fadein-duration: 0.01ms;
396
+ --sp-animation-reduced-motion-fadein-easing: linear;
397
+ --sp-animation-reduced-motion-fadein-keyframes: fade-in;
398
+ --sp-animation-reduced-motion-fadeout-duration: 0.01ms;
399
+ --sp-animation-reduced-motion-fadeout-easing: linear;
400
+ --sp-animation-reduced-motion-fadeout-keyframes: fade-out;
401
+ --sp-animation-reduced-motion-slideup-duration: 0.01ms;
402
+ --sp-animation-reduced-motion-slideup-easing: linear;
403
+ --sp-animation-reduced-motion-slideup-keyframes: slide-up;
404
+ --sp-animation-reduced-motion-slidedown-duration: 0.01ms;
405
+ --sp-animation-reduced-motion-slidedown-easing: linear;
406
+ --sp-animation-reduced-motion-slidedown-keyframes: slide-down;
407
+ --sp-animation-reduced-motion-scalein-duration: 0.01ms;
408
+ --sp-animation-reduced-motion-scalein-easing: linear;
409
+ --sp-animation-reduced-motion-scalein-keyframes: scale-in;
410
+ --sp-animation-reduced-motion-bounce-duration: 0.01ms;
411
+ --sp-animation-reduced-motion-bounce-easing: linear;
412
+ --sp-animation-reduced-motion-bounce-keyframes: bounce;
413
+ --sp-animation-reduced-motion-shake-duration: 0.01ms;
414
+ --sp-animation-reduced-motion-shake-easing: linear;
415
+ --sp-animation-reduced-motion-shake-keyframes: shake;
416
+ --sp-animation-reduced-motion-pulse-duration: 0.01ms;
417
+ --sp-animation-reduced-motion-pulse-easing: linear;
418
+ --sp-animation-reduced-motion-pulse-keyframes: pulse;
358
419
  }
359
420
  :root[data-spectre-theme="dark"] {
360
421
  --sp-surface-page: #141b24;
@@ -395,4 +456,39 @@
395
456
  --sp-icon-box-icon-success: #4ade80;
396
457
  --sp-icon-box-icon-warning: #ffc21a;
397
458
  --sp-icon-box-icon-danger: #f87171;
459
+ --sp-nav-bg: #141b24;
460
+ --sp-nav-text: #f7f8fb;
461
+ --sp-nav-link: #b7c1d4;
462
+ --sp-nav-link-hover: #5a92ff;
463
+ --sp-nav-link-active: #8ab6ff;
464
+ --sp-nav-border: #374253;
465
+ --sp-modal-bg: #222b38;
466
+ --sp-modal-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.20);
467
+ --sp-modal-border: #374253;
468
+ --sp-modal-overlay: rgba(0, 0, 0, 0.6);
469
+ --sp-toast-success-bg: #14532d;
470
+ --sp-toast-success-text: #dcfce7;
471
+ --sp-toast-success-border: #15803d;
472
+ --sp-toast-success-icon: #4ade80;
473
+ --sp-toast-warning-bg: #734000;
474
+ --sp-toast-warning-text: #fff1c2;
475
+ --sp-toast-warning-border: #ad6800;
476
+ --sp-toast-warning-icon: #ffc21a;
477
+ --sp-toast-danger-bg: #7f1d1d;
478
+ --sp-toast-danger-text: #fee2e2;
479
+ --sp-toast-danger-border: #b91c1c;
480
+ --sp-toast-danger-icon: #f87171;
481
+ --sp-toast-info-bg: #082f49;
482
+ --sp-toast-info-text: #e0f2fe;
483
+ --sp-toast-info-border: #075985;
484
+ --sp-toast-info-icon: #38bdf8;
485
+ --sp-tooltip-bg: #f7f8fb;
486
+ --sp-tooltip-text: #141b24;
487
+ --sp-tooltip-border: #b7c1d4;
488
+ --sp-dropdown-bg: #222b38;
489
+ --sp-dropdown-border: #374253;
490
+ --sp-dropdown-item-default: transparent;
491
+ --sp-dropdown-item-hover: #374253;
492
+ --sp-dropdown-item-active: #082f49;
493
+ --sp-dropdown-item-text: #eef1f6;
398
494
  }
package/dist/index.d.cts CHANGED
@@ -62,6 +62,61 @@ interface SpectreGeneratedTokens {
62
62
  starEmpty: string;
63
63
  text: string;
64
64
  };
65
+ nav: {
66
+ bg: string;
67
+ text: string;
68
+ link: string;
69
+ linkHover: string;
70
+ linkActive: string;
71
+ border: string;
72
+ };
73
+ modal: {
74
+ bg: string;
75
+ shadow: string;
76
+ border: string;
77
+ overlay: string;
78
+ };
79
+ toast: {
80
+ success: {
81
+ bg: string;
82
+ text: string;
83
+ border: string;
84
+ icon: string;
85
+ };
86
+ warning: {
87
+ bg: string;
88
+ text: string;
89
+ border: string;
90
+ icon: string;
91
+ };
92
+ danger: {
93
+ bg: string;
94
+ text: string;
95
+ border: string;
96
+ icon: string;
97
+ };
98
+ info: {
99
+ bg: string;
100
+ text: string;
101
+ border: string;
102
+ icon: string;
103
+ };
104
+ };
105
+ tooltip: {
106
+ bg: string;
107
+ text: string;
108
+ border: string;
109
+ };
110
+ dropdown: {
111
+ bg: string;
112
+ border: string;
113
+ item: {
114
+ default: string;
115
+ hover: string;
116
+ active: string;
117
+ text: string;
118
+ };
119
+ };
65
120
  };
66
121
  buttons: {
67
122
  primary: {
@@ -180,6 +235,10 @@ interface SpectreGeneratedTokens {
180
235
  overlay: string;
181
236
  alternate: string;
182
237
  hero: string;
238
+ hover: string;
239
+ selected: string;
240
+ active: string;
241
+ divider: string;
183
242
  };
184
243
  text: {
185
244
  onPage: {
@@ -257,6 +316,61 @@ interface SpectreGeneratedTokens {
257
316
  starEmpty: string;
258
317
  text: string;
259
318
  };
319
+ nav: {
320
+ bg: string;
321
+ text: string;
322
+ link: string;
323
+ linkHover: string;
324
+ linkActive: string;
325
+ border: string;
326
+ };
327
+ modal: {
328
+ bg: string;
329
+ shadow: string;
330
+ border: string;
331
+ overlay: string;
332
+ };
333
+ toast: {
334
+ success: {
335
+ bg: string;
336
+ text: string;
337
+ border: string;
338
+ icon: string;
339
+ };
340
+ warning: {
341
+ bg: string;
342
+ text: string;
343
+ border: string;
344
+ icon: string;
345
+ };
346
+ danger: {
347
+ bg: string;
348
+ text: string;
349
+ border: string;
350
+ icon: string;
351
+ };
352
+ info: {
353
+ bg: string;
354
+ text: string;
355
+ border: string;
356
+ icon: string;
357
+ };
358
+ };
359
+ tooltip: {
360
+ bg: string;
361
+ text: string;
362
+ border: string;
363
+ };
364
+ dropdown: {
365
+ bg: string;
366
+ border: string;
367
+ item: {
368
+ default: string;
369
+ hover: string;
370
+ active: string;
371
+ text: string;
372
+ };
373
+ };
260
374
  };
261
375
  };
262
376
  dark: {
@@ -267,6 +381,10 @@ interface SpectreGeneratedTokens {
267
381
  overlay: string;
268
382
  alternate: string;
269
383
  hero: string;
384
+ hover: string;
385
+ selected: string;
386
+ active: string;
387
+ divider: string;
270
388
  };
271
389
  text: {
272
390
  onPage: {
@@ -347,6 +465,61 @@ interface SpectreGeneratedTokens {
347
465
  starEmpty: string;
348
466
  text: string;
349
467
  };
468
+ nav: {
469
+ bg: string;
470
+ text: string;
471
+ link: string;
472
+ linkHover: string;
473
+ linkActive: string;
474
+ border: string;
475
+ };
476
+ modal: {
477
+ bg: string;
478
+ shadow: string;
479
+ border: string;
480
+ overlay: string;
481
+ };
482
+ toast: {
483
+ success: {
484
+ bg: string;
485
+ text: string;
486
+ border: string;
487
+ icon: string;
488
+ };
489
+ warning: {
490
+ bg: string;
491
+ text: string;
492
+ border: string;
493
+ icon: string;
494
+ };
495
+ danger: {
496
+ bg: string;
497
+ text: string;
498
+ border: string;
499
+ icon: string;
500
+ };
501
+ info: {
502
+ bg: string;
503
+ text: string;
504
+ border: string;
505
+ icon: string;
506
+ };
507
+ };
508
+ tooltip: {
509
+ bg: string;
510
+ text: string;
511
+ border: string;
512
+ };
513
+ dropdown: {
514
+ bg: string;
515
+ border: string;
516
+ item: {
517
+ default: string;
518
+ hover: string;
519
+ active: string;
520
+ text: string;
521
+ };
522
+ };
350
523
  };
351
524
  };
352
525
  };
@@ -512,6 +685,7 @@ interface SpectreGeneratedTokens {
512
685
  };
513
686
  transitions: {
514
687
  duration: {
688
+ reduced: string;
515
689
  instant: string;
516
690
  fast: string;
517
691
  base: string;
@@ -572,6 +746,48 @@ interface SpectreGeneratedTokens {
572
746
  easing: string;
573
747
  keyframes: string;
574
748
  };
749
+ reducedMotion: {
750
+ fadeIn: {
751
+ duration: string;
752
+ easing: string;
753
+ keyframes: string;
754
+ };
755
+ fadeOut: {
756
+ duration: string;
757
+ easing: string;
758
+ keyframes: string;
759
+ };
760
+ slideUp: {
761
+ duration: string;
762
+ easing: string;
763
+ keyframes: string;
764
+ };
765
+ slideDown: {
766
+ duration: string;
767
+ easing: string;
768
+ keyframes: string;
769
+ };
770
+ scaleIn: {
771
+ duration: string;
772
+ easing: string;
773
+ keyframes: string;
774
+ };
775
+ bounce: {
776
+ duration: string;
777
+ easing: string;
778
+ keyframes: string;
779
+ };
780
+ shake: {
781
+ duration: string;
782
+ easing: string;
783
+ keyframes: string;
784
+ };
785
+ pulse: {
786
+ duration: string;
787
+ easing: string;
788
+ keyframes: string;
789
+ };
790
+ };
575
791
  };
576
792
  opacity: {
577
793
  disabled: string;
@@ -606,6 +822,8 @@ interface SpectreGeneratedTokens {
606
822
  offset: string;
607
823
  style: string;
608
824
  };
825
+ reducedMotion: string;
826
+ forcedColors: string;
609
827
  minTouchTarget: string;
610
828
  minTextSize: string;
611
829
  };
@@ -627,6 +845,16 @@ interface SpectreGeneratedTokens {
627
845
  card: string;
628
846
  input: string;
629
847
  overlay: string;
848
+ hover: string;
849
+ selected: string;
850
+ active: string;
851
+ divider: string;
852
+ };
853
+ link: {
854
+ default: string;
855
+ hover: string;
856
+ active: string;
857
+ visited: string;
630
858
  };
631
859
  text: {
632
860
  onPage: {
@@ -906,6 +1134,47 @@ interface ComponentRatingTokens<Value = string> {
906
1134
  starEmpty: Value;
907
1135
  text: Value;
908
1136
  }
1137
+ interface ComponentNavTokens<Value = string> {
1138
+ bg: Value;
1139
+ text: Value;
1140
+ link: Value;
1141
+ linkHover: Value;
1142
+ linkActive: Value;
1143
+ border: Value;
1144
+ }
1145
+ interface ComponentModalTokens<Value = string> {
1146
+ bg: Value;
1147
+ shadow: Value;
1148
+ border: Value;
1149
+ overlay: Value;
1150
+ }
1151
+ interface ComponentToastVariantTokens<Value = string> {
1152
+ bg: Value;
1153
+ text: Value;
1154
+ border: Value;
1155
+ icon: Value;
1156
+ }
1157
+ interface ComponentToastTokens<Value = string> {
1158
+ success: ComponentToastVariantTokens<Value>;
1159
+ warning: ComponentToastVariantTokens<Value>;
1160
+ danger: ComponentToastVariantTokens<Value>;
1161
+ info: ComponentToastVariantTokens<Value>;
1162
+ }
1163
+ interface ComponentTooltipTokens<Value = string> {
1164
+ bg: Value;
1165
+ text: Value;
1166
+ border: Value;
1167
+ }
1168
+ interface ComponentDropdownTokens<Value = string> {
1169
+ bg: Value;
1170
+ border: Value;
1171
+ item: {
1172
+ default: Value;
1173
+ hover: Value;
1174
+ active: Value;
1175
+ text: Value;
1176
+ };
1177
+ }
909
1178
  interface ComponentTokens<Value = string> {
910
1179
  card: {
911
1180
  text: Value;
@@ -924,6 +1193,11 @@ interface ComponentTokens<Value = string> {
924
1193
  testimonial: ComponentTestimonialTokens<Value>;
925
1194
  pricingCard: ComponentPricingCardTokens<Value>;
926
1195
  rating: ComponentRatingTokens<Value>;
1196
+ nav: ComponentNavTokens<Value>;
1197
+ modal: ComponentModalTokens<Value>;
1198
+ toast: ComponentToastTokens<Value>;
1199
+ tooltip: ComponentTooltipTokens<Value>;
1200
+ dropdown: ComponentDropdownTokens<Value>;
927
1201
  [key: string]: unknown;
928
1202
  }
929
1203
  type SpectreModeName = 'default' | 'dark';
@@ -936,6 +1210,10 @@ interface SpectreModeTokens {
936
1210
  overlay: SemanticTokenValue;
937
1211
  alternate: SemanticTokenValue;
938
1212
  hero: SemanticTokenValue;
1213
+ hover: SemanticTokenValue;
1214
+ selected: SemanticTokenValue;
1215
+ active: SemanticTokenValue;
1216
+ divider: SemanticTokenValue;
939
1217
  };
940
1218
  text: {
941
1219
  onPage: {