@phcdevworks/spectre-tokens 0.2.1 → 1.0.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.js CHANGED
@@ -2,22 +2,22 @@
2
2
  var core_default = {
3
3
  colors: {
4
4
  brand: {
5
- "50": "#f5f0ff",
6
- "100": "#ebe2ff",
7
- "200": "#d7c6ff",
8
- "300": "#bfa1ff",
9
- "400": "#a37aff",
10
- "500": "#8652ff",
11
- "600": "#6c32e6",
12
- "700": "#5626b4",
13
- "800": "#3d1b7f",
14
- "900": "#241147"
5
+ "50": "#eff6ff",
6
+ "100": "#dbeafe",
7
+ "200": "#bfdbfe",
8
+ "300": "#93c5fd",
9
+ "400": "#60a5fa",
10
+ "500": "#3b82f6",
11
+ "600": "#2563eb",
12
+ "700": "#1d4ed8",
13
+ "800": "#1e40af",
14
+ "900": "#1e3a8a"
15
15
  },
16
16
  neutral: {
17
17
  "50": "#f8fafc",
18
18
  "100": "#f1f5f9",
19
19
  "200": "#e2e8f0",
20
- "300": "#cbd5f5",
20
+ "300": "#cbd5e1",
21
21
  "400": "#94a3b8",
22
22
  "500": "#64748b",
23
23
  "600": "#475569",
@@ -26,16 +26,16 @@ var core_default = {
26
26
  "900": "#0f172a"
27
27
  },
28
28
  accent: {
29
- "50": "#e5fff8",
30
- "100": "#b8ffed",
31
- "200": "#89ffe1",
32
- "300": "#59ffd6",
33
- "400": "#29ffca",
34
- "500": "#03e6b3",
35
- "600": "#00b389",
36
- "700": "#008060",
37
- "800": "#004d38",
38
- "900": "#002a20"
29
+ "50": "#eff6ff",
30
+ "100": "#dbeafe",
31
+ "200": "#bfdbfe",
32
+ "300": "#93c5fd",
33
+ "400": "#60a5fa",
34
+ "500": "#3b82f6",
35
+ "600": "#2563eb",
36
+ "700": "#1d4ed8",
37
+ "800": "#1e40af",
38
+ "900": "#1e3a8a"
39
39
  },
40
40
  success: {
41
41
  "50": "#f0fdf4",
@@ -86,7 +86,7 @@ var core_default = {
86
86
  "900": "#1e3a8a"
87
87
  },
88
88
  focus: {
89
- primary: "#8652ff",
89
+ primary: "#3b82f6",
90
90
  error: "#ef4444",
91
91
  info: "#3b82f6"
92
92
  }
@@ -118,7 +118,7 @@ var core_default = {
118
118
  },
119
119
  onSurface: {
120
120
  default: "#0f172a",
121
- muted: "#6b7280",
121
+ muted: "#64748b",
122
122
  subtle: "#94a3b8",
123
123
  meta: "#94a3b8"
124
124
  }
@@ -126,7 +126,7 @@ var core_default = {
126
126
  component: {
127
127
  card: {
128
128
  text: "#0f172a",
129
- textMuted: "#6b7280"
129
+ textMuted: "#64748b"
130
130
  },
131
131
  input: {
132
132
  text: "#0f172a",
@@ -151,10 +151,33 @@ var core_default = {
151
151
  iconBox: {
152
152
  bg: "#ffffff",
153
153
  border: "#e2e8f0",
154
- iconDefault: "#6c32e6",
154
+ iconDefault: "#2563eb",
155
155
  iconSuccess: "#16a34a",
156
156
  iconWarning: "#d97706",
157
157
  iconDanger: "#dc2626"
158
+ },
159
+ testimonial: {
160
+ bg: "#ffffff",
161
+ border: "#e2e8f0",
162
+ text: "#334155",
163
+ authorName: "#0f172a",
164
+ authorTitle: "#64748b",
165
+ quoteMark: "#cbd5e1"
166
+ },
167
+ pricingCard: {
168
+ bg: "#ffffff",
169
+ border: "#e2e8f0",
170
+ featuredBg: "#2563eb",
171
+ featuredText: "#ffffff",
172
+ featuredBadgeBg: "#f59e0b",
173
+ featuredBadgeText: "#ffffff",
174
+ price: "#0f172a",
175
+ priceDescription: "#64748b"
176
+ },
177
+ rating: {
178
+ starFilled: "#f59e0b",
179
+ starEmpty: "#e2e8f0",
180
+ text: "#64748b"
158
181
  }
159
182
  },
160
183
  modes: {
@@ -171,6 +194,12 @@ var core_default = {
171
194
  },
172
195
  overlay: {
173
196
  value: "rgba(15,23,42,0.6)"
197
+ },
198
+ alternate: {
199
+ value: "#f1f5f9"
200
+ },
201
+ hero: {
202
+ value: "linear-gradient(135deg, #667eea 0%, #764ba2 100%)"
174
203
  }
175
204
  },
176
205
  text: {
@@ -193,7 +222,7 @@ var core_default = {
193
222
  value: "#0f172a"
194
223
  },
195
224
  muted: {
196
- value: "#6b7280"
225
+ value: "#64748b"
197
226
  },
198
227
  subtle: {
199
228
  value: "#94a3b8"
@@ -209,7 +238,7 @@ var core_default = {
209
238
  value: "#0f172a"
210
239
  },
211
240
  textMuted: {
212
- value: "#6b7280"
241
+ value: "#64748b"
213
242
  }
214
243
  },
215
244
  input: {
@@ -268,7 +297,7 @@ var core_default = {
268
297
  value: "#e2e8f0"
269
298
  },
270
299
  iconDefault: {
271
- value: "#6c32e6"
300
+ value: "#2563eb"
272
301
  },
273
302
  iconSuccess: {
274
303
  value: "#16a34a"
@@ -279,6 +308,63 @@ var core_default = {
279
308
  iconDanger: {
280
309
  value: "#dc2626"
281
310
  }
311
+ },
312
+ testimonial: {
313
+ bg: {
314
+ value: "#ffffff"
315
+ },
316
+ border: {
317
+ value: "#e2e8f0"
318
+ },
319
+ text: {
320
+ value: "#334155"
321
+ },
322
+ authorName: {
323
+ value: "#0f172a"
324
+ },
325
+ authorTitle: {
326
+ value: "#64748b"
327
+ },
328
+ quoteMark: {
329
+ value: "#cbd5e1"
330
+ }
331
+ },
332
+ pricingCard: {
333
+ bg: {
334
+ value: "#ffffff"
335
+ },
336
+ border: {
337
+ value: "#e2e8f0"
338
+ },
339
+ featuredBg: {
340
+ value: "#2563eb"
341
+ },
342
+ featuredText: {
343
+ value: "#ffffff"
344
+ },
345
+ featuredBadgeBg: {
346
+ value: "#f59e0b"
347
+ },
348
+ featuredBadgeText: {
349
+ value: "#ffffff"
350
+ },
351
+ price: {
352
+ value: "#0f172a"
353
+ },
354
+ priceDescription: {
355
+ value: "#64748b"
356
+ }
357
+ },
358
+ rating: {
359
+ starFilled: {
360
+ value: "#f59e0b"
361
+ },
362
+ starEmpty: {
363
+ value: "#e2e8f0"
364
+ },
365
+ text: {
366
+ value: "#64748b"
367
+ }
282
368
  }
283
369
  }
284
370
  },
@@ -295,6 +381,12 @@ var core_default = {
295
381
  },
296
382
  overlay: {
297
383
  value: "#1e293b"
384
+ },
385
+ alternate: {
386
+ value: "#1e293b"
387
+ },
388
+ hero: {
389
+ value: "linear-gradient(135deg, #4c1d95 0%, #5b21b6 100%)"
298
390
  }
299
391
  },
300
392
  text: {
@@ -303,7 +395,7 @@ var core_default = {
303
395
  value: "#f8fafc"
304
396
  },
305
397
  muted: {
306
- value: "#cbd5f5"
398
+ value: "#cbd5e1"
307
399
  },
308
400
  subtle: {
309
401
  value: "#94a3b8"
@@ -317,7 +409,7 @@ var core_default = {
317
409
  value: "#f1f5f9"
318
410
  },
319
411
  muted: {
320
- value: "#cbd5f5"
412
+ value: "#cbd5e1"
321
413
  },
322
414
  subtle: {
323
415
  value: "#94a3b8"
@@ -333,7 +425,7 @@ var core_default = {
333
425
  value: "#f1f5f9"
334
426
  },
335
427
  textMuted: {
336
- value: "#cbd5f5"
428
+ value: "#cbd5e1"
337
429
  }
338
430
  },
339
431
  input: {
@@ -392,7 +484,7 @@ var core_default = {
392
484
  value: "#334155"
393
485
  },
394
486
  iconDefault: {
395
- value: "#a37aff"
487
+ value: "#93c5fd"
396
488
  },
397
489
  iconSuccess: {
398
490
  value: "#4ade80"
@@ -403,6 +495,63 @@ var core_default = {
403
495
  iconDanger: {
404
496
  value: "#f87171"
405
497
  }
498
+ },
499
+ testimonial: {
500
+ bg: {
501
+ value: "#1e293b"
502
+ },
503
+ border: {
504
+ value: "#334155"
505
+ },
506
+ text: {
507
+ value: "#cbd5e1"
508
+ },
509
+ authorName: {
510
+ value: "#f1f5f9"
511
+ },
512
+ authorTitle: {
513
+ value: "#94a3b8"
514
+ },
515
+ quoteMark: {
516
+ value: "#475569"
517
+ }
518
+ },
519
+ pricingCard: {
520
+ bg: {
521
+ value: "#1e293b"
522
+ },
523
+ border: {
524
+ value: "#334155"
525
+ },
526
+ featuredBg: {
527
+ value: "#3b82f6"
528
+ },
529
+ featuredText: {
530
+ value: "#ffffff"
531
+ },
532
+ featuredBadgeBg: {
533
+ value: "#f59e0b"
534
+ },
535
+ featuredBadgeText: {
536
+ value: "#ffffff"
537
+ },
538
+ price: {
539
+ value: "#f1f5f9"
540
+ },
541
+ priceDescription: {
542
+ value: "#94a3b8"
543
+ }
544
+ },
545
+ rating: {
546
+ starFilled: {
547
+ value: "#fbbf24"
548
+ },
549
+ starEmpty: {
550
+ value: "#334155"
551
+ },
552
+ text: {
553
+ value: "#94a3b8"
554
+ }
406
555
  }
407
556
  }
408
557
  }
@@ -426,29 +575,29 @@ var core_default = {
426
575
  },
427
576
  buttons: {
428
577
  primary: {
429
- bg: "#8652ff",
430
- bgHover: "#6c32e6",
431
- bgActive: "#5626b4",
432
- bgDisabled: "#cbd5f5",
578
+ bg: "#2563eb",
579
+ bgHover: "#1d4ed8",
580
+ bgActive: "#1e40af",
581
+ bgDisabled: "#e2e8f0",
433
582
  text: "#ffffff",
434
583
  textDisabled: "#94a3b8"
435
584
  },
436
585
  secondary: {
437
586
  bg: "#ffffff",
438
- bgHover: "#f1f5f9",
439
- bgActive: "#e2e8f0",
587
+ bgHover: "#f8fafc",
588
+ bgActive: "#f1f5f9",
440
589
  bgDisabled: "#f8fafc",
441
- text: "#8652ff",
590
+ text: "#2563eb",
442
591
  textDisabled: "#94a3b8",
443
- border: "#8652ff",
444
- borderDisabled: "#cbd5f5"
592
+ border: "#2563eb",
593
+ borderDisabled: "#e2e8f0"
445
594
  },
446
595
  ghost: {
447
596
  bg: "transparent",
448
- bgHover: "#f5f0ff",
449
- bgActive: "#ebe2ff",
597
+ bgHover: "#eff6ff",
598
+ bgActive: "#dbeafe",
450
599
  bgDisabled: "transparent",
451
- text: "#8652ff",
600
+ text: "#2563eb",
452
601
  textDisabled: "#94a3b8"
453
602
  },
454
603
  danger: {
@@ -466,21 +615,38 @@ var core_default = {
466
615
  bgDisabled: "#bbf7d0",
467
616
  text: "#ffffff",
468
617
  textDisabled: "#94a3b8"
618
+ },
619
+ cta: {
620
+ bg: "#f59e0b",
621
+ bgHover: "#d97706",
622
+ bgActive: "#b45309",
623
+ bgDisabled: "#fde68a",
624
+ text: "#ffffff",
625
+ textDisabled: "#94a3b8",
626
+ shadow: "0 4px 14px 0 rgba(245, 158, 11, 0.39)"
627
+ },
628
+ accent: {
629
+ bg: "#8b5cf6",
630
+ bgHover: "#7c3aed",
631
+ bgActive: "#6d28d9",
632
+ bgDisabled: "#ddd6fe",
633
+ text: "#ffffff",
634
+ textDisabled: "#94a3b8"
469
635
  }
470
636
  },
471
637
  forms: {
472
638
  default: {
473
639
  bg: "#ffffff",
474
- border: "#cbd5f5",
640
+ border: "#cbd5e1",
475
641
  text: "#0f172a",
476
642
  placeholder: "#94a3b8"
477
643
  },
478
644
  hover: {
479
- border: "#8652ff"
645
+ border: "#3b82f6"
480
646
  },
481
647
  focus: {
482
- border: "#8652ff",
483
- ring: "#8652ff"
648
+ border: "#3b82f6",
649
+ ring: "#3b82f6"
484
650
  },
485
651
  valid: {
486
652
  border: "#22c55e",
@@ -550,8 +716,8 @@ var core_default = {
550
716
  pill: "999px"
551
717
  },
552
718
  borders: {
553
- card: "#334155",
554
- input: "#cbd5f5"
719
+ card: "#e2e8f0",
720
+ input: "#cbd5e1"
555
721
  },
556
722
  font: {
557
723
  xs: {
@@ -587,9 +753,9 @@ var core_default = {
587
753
  },
588
754
  typography: {
589
755
  families: {
590
- sans: "'Inter', 'Helvetica Neue', Arial, sans-serif",
591
- serif: "'Spectre Serif', 'Georgia', serif",
592
- mono: "'JetBrains Mono', 'SFMono-Regular', Consolas, monospace"
756
+ sans: "system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif",
757
+ serif: "'Times New Roman', Times, serif",
758
+ mono: "'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace"
593
759
  },
594
760
  scale: {
595
761
  xs: {
@@ -627,14 +793,29 @@ var core_default = {
627
793
  fontSize: "2.25rem",
628
794
  lineHeight: "2.75rem",
629
795
  fontWeight: 700
796
+ },
797
+ "4xl": {
798
+ fontSize: "3rem",
799
+ lineHeight: "3.5rem",
800
+ fontWeight: 800
801
+ },
802
+ "5xl": {
803
+ fontSize: "3.75rem",
804
+ lineHeight: "4.25rem",
805
+ fontWeight: 800
806
+ },
807
+ "6xl": {
808
+ fontSize: "4.5rem",
809
+ lineHeight: "5rem",
810
+ fontWeight: 900
630
811
  }
631
812
  }
632
813
  },
633
814
  shadows: {
634
815
  none: "none",
635
- sm: "0 1px 2px 0 rgba(15, 23, 42, 0.08)",
636
- md: "0 3px 8px -1px rgba(15, 23, 42, 0.1)",
637
- lg: "0 8px 20px -4px rgba(15, 23, 42, 0.18)"
816
+ sm: "0 1px 2px 0 rgba(15, 23, 42, 0.06)",
817
+ md: "0 2px 6px -1px rgba(15, 23, 42, 0.08)",
818
+ lg: "0 6px 16px -4px rgba(15, 23, 42, 0.12)"
638
819
  },
639
820
  breakpoints: {
640
821
  sm: "640px",
@@ -667,7 +848,7 @@ var core_default = {
667
848
  in: "cubic-bezier(0.4, 0, 1, 1)",
668
849
  out: "cubic-bezier(0, 0, 0.2, 1)",
669
850
  inOut: "cubic-bezier(0.4, 0, 0.2, 1)",
670
- spring: "cubic-bezier(0.34, 1.56, 0.64, 1)"
851
+ spring: "cubic-bezier(0.4, 0, 0.2, 1)"
671
852
  }
672
853
  },
673
854
  animations: {
@@ -697,20 +878,37 @@ var core_default = {
697
878
  keyframes: "scale-in"
698
879
  },
699
880
  bounce: {
700
- duration: "500ms",
701
- easing: "cubic-bezier(0.34, 1.56, 0.64, 1)",
881
+ duration: "300ms",
882
+ easing: "cubic-bezier(0.4, 0, 0.2, 1)",
702
883
  keyframes: "bounce"
703
884
  },
704
885
  shake: {
705
- duration: "400ms",
886
+ duration: "250ms",
706
887
  easing: "cubic-bezier(0.4, 0, 0.2, 1)",
707
888
  keyframes: "shake"
708
889
  },
709
890
  pulse: {
710
- duration: "1500ms",
891
+ duration: "1200ms",
711
892
  easing: "cubic-bezier(0.4, 0, 0.2, 1)",
712
893
  keyframes: "pulse"
713
894
  }
895
+ },
896
+ icons: {
897
+ xs: "12px",
898
+ sm: "16px",
899
+ md: "20px",
900
+ lg: "24px",
901
+ xl: "32px",
902
+ "2xl": "40px",
903
+ "3xl": "48px"
904
+ },
905
+ aspectRatios: {
906
+ square: "1/1",
907
+ video: "16/9",
908
+ portrait: "3/4",
909
+ landscape: "4/3",
910
+ ultrawide: "21/9",
911
+ hero: "2/1"
714
912
  }
715
913
  };
716
914