@phcdevworks/spectre-tokens 0.2.1 → 2.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/tokens/core.json DELETED
@@ -1,714 +0,0 @@
1
- {
2
- "colors": {
3
- "brand": {
4
- "50": "#f5f0ff",
5
- "100": "#ebe2ff",
6
- "200": "#d7c6ff",
7
- "300": "#bfa1ff",
8
- "400": "#a37aff",
9
- "500": "#8652ff",
10
- "600": "#6c32e6",
11
- "700": "#5626b4",
12
- "800": "#3d1b7f",
13
- "900": "#241147"
14
- },
15
- "neutral": {
16
- "50": "#f8fafc",
17
- "100": "#f1f5f9",
18
- "200": "#e2e8f0",
19
- "300": "#cbd5f5",
20
- "400": "#94a3b8",
21
- "500": "#64748b",
22
- "600": "#475569",
23
- "700": "#334155",
24
- "800": "#1e293b",
25
- "900": "#0f172a"
26
- },
27
- "accent": {
28
- "50": "#e5fff8",
29
- "100": "#b8ffed",
30
- "200": "#89ffe1",
31
- "300": "#59ffd6",
32
- "400": "#29ffca",
33
- "500": "#03e6b3",
34
- "600": "#00b389",
35
- "700": "#008060",
36
- "800": "#004d38",
37
- "900": "#002a20"
38
- },
39
- "success": {
40
- "50": "#f0fdf4",
41
- "100": "#dcfce7",
42
- "200": "#bbf7d0",
43
- "300": "#86efac",
44
- "400": "#4ade80",
45
- "500": "#22c55e",
46
- "600": "#16a34a",
47
- "700": "#15803d",
48
- "800": "#166534",
49
- "900": "#14532d"
50
- },
51
- "warning": {
52
- "50": "#fffbeb",
53
- "100": "#fef3c7",
54
- "200": "#fde68a",
55
- "300": "#fcd34d",
56
- "400": "#fbbf24",
57
- "500": "#f59e0b",
58
- "600": "#d97706",
59
- "700": "#b45309",
60
- "800": "#92400e",
61
- "900": "#78350f"
62
- },
63
- "error": {
64
- "50": "#fef2f2",
65
- "100": "#fee2e2",
66
- "200": "#fecaca",
67
- "300": "#fca5a5",
68
- "400": "#f87171",
69
- "500": "#ef4444",
70
- "600": "#dc2626",
71
- "700": "#b91c1c",
72
- "800": "#991b1b",
73
- "900": "#7f1d1d"
74
- },
75
- "info": {
76
- "50": "#eff6ff",
77
- "100": "#dbeafe",
78
- "200": "#bfdbfe",
79
- "300": "#93c5fd",
80
- "400": "#60a5fa",
81
- "500": "#3b82f6",
82
- "600": "#2563eb",
83
- "700": "#1d4ed8",
84
- "800": "#1e40af",
85
- "900": "#1e3a8a"
86
- },
87
- "focus": {
88
- "primary": "#8652ff",
89
- "error": "#ef4444",
90
- "info": "#3b82f6"
91
- }
92
- },
93
- "surface": {
94
- "page": {
95
- "value": "#f8fafc",
96
- "description": "primary app background"
97
- },
98
- "card": {
99
- "value": "#ffffff",
100
- "description": "containers and tiles"
101
- },
102
- "input": {
103
- "value": "#ffffff",
104
- "description": "form inputs, textareas"
105
- },
106
- "overlay": {
107
- "value": "rgba(15,23,42,0.6)",
108
- "description": "modals, dropdowns, flyouts"
109
- }
110
- },
111
- "text": {
112
- "onPage": {
113
- "default": "#0f172a",
114
- "muted": "#475569",
115
- "subtle": "#94a3b8",
116
- "meta": "#94a3b8"
117
- },
118
- "onSurface": {
119
- "default": "#0f172a",
120
- "muted": "#6b7280",
121
- "subtle": "#94a3b8",
122
- "meta": "#94a3b8"
123
- }
124
- },
125
- "component": {
126
- "card": {
127
- "text": "#0f172a",
128
- "textMuted": "#6b7280"
129
- },
130
- "input": {
131
- "text": "#0f172a",
132
- "placeholder": "#94a3b8"
133
- },
134
- "button": {
135
- "textDefault": "#0f172a",
136
- "textOnPrimary": "#ffffff"
137
- },
138
- "badge": {
139
- "neutralBg": "#f1f5f9",
140
- "neutralText": "#334155",
141
- "infoBg": "#dbeafe",
142
- "infoText": "#1d4ed8",
143
- "successBg": "#dcfce7",
144
- "successText": "#15803d",
145
- "warningBg": "#fef3c7",
146
- "warningText": "#b45309",
147
- "dangerBg": "#fee2e2",
148
- "dangerText": "#b91c1c"
149
- },
150
- "iconBox": {
151
- "bg": "#ffffff",
152
- "border": "#e2e8f0",
153
- "iconDefault": "#6c32e6",
154
- "iconSuccess": "#16a34a",
155
- "iconWarning": "#d97706",
156
- "iconDanger": "#dc2626"
157
- }
158
- },
159
- "modes": {
160
- "default": {
161
- "surface": {
162
- "page": {
163
- "value": "#f8fafc"
164
- },
165
- "card": {
166
- "value": "#ffffff"
167
- },
168
- "input": {
169
- "value": "#ffffff"
170
- },
171
- "overlay": {
172
- "value": "rgba(15,23,42,0.6)"
173
- }
174
- },
175
- "text": {
176
- "onPage": {
177
- "default": {
178
- "value": "#0f172a"
179
- },
180
- "muted": {
181
- "value": "#475569"
182
- },
183
- "subtle": {
184
- "value": "#94a3b8"
185
- },
186
- "meta": {
187
- "value": "#94a3b8"
188
- }
189
- },
190
- "onSurface": {
191
- "default": {
192
- "value": "#0f172a"
193
- },
194
- "muted": {
195
- "value": "#6b7280"
196
- },
197
- "subtle": {
198
- "value": "#94a3b8"
199
- },
200
- "meta": {
201
- "value": "#94a3b8"
202
- }
203
- }
204
- },
205
- "component": {
206
- "card": {
207
- "text": {
208
- "value": "#0f172a"
209
- },
210
- "textMuted": {
211
- "value": "#6b7280"
212
- }
213
- },
214
- "input": {
215
- "text": {
216
- "value": "#0f172a"
217
- },
218
- "placeholder": {
219
- "value": "#94a3b8"
220
- }
221
- },
222
- "button": {
223
- "textDefault": {
224
- "value": "#0f172a"
225
- },
226
- "textOnPrimary": {
227
- "value": "#ffffff"
228
- }
229
- },
230
- "badge": {
231
- "neutralBg": {
232
- "value": "#f1f5f9"
233
- },
234
- "neutralText": {
235
- "value": "#334155"
236
- },
237
- "infoBg": {
238
- "value": "#dbeafe"
239
- },
240
- "infoText": {
241
- "value": "#1d4ed8"
242
- },
243
- "successBg": {
244
- "value": "#dcfce7"
245
- },
246
- "successText": {
247
- "value": "#15803d"
248
- },
249
- "warningBg": {
250
- "value": "#fef3c7"
251
- },
252
- "warningText": {
253
- "value": "#b45309"
254
- },
255
- "dangerBg": {
256
- "value": "#fee2e2"
257
- },
258
- "dangerText": {
259
- "value": "#b91c1c"
260
- }
261
- },
262
- "iconBox": {
263
- "bg": {
264
- "value": "#ffffff"
265
- },
266
- "border": {
267
- "value": "#e2e8f0"
268
- },
269
- "iconDefault": {
270
- "value": "#6c32e6"
271
- },
272
- "iconSuccess": {
273
- "value": "#16a34a"
274
- },
275
- "iconWarning": {
276
- "value": "#d97706"
277
- },
278
- "iconDanger": {
279
- "value": "#dc2626"
280
- }
281
- }
282
- }
283
- },
284
- "dark": {
285
- "surface": {
286
- "page": {
287
- "value": "#0f172a"
288
- },
289
- "card": {
290
- "value": "#1e293b"
291
- },
292
- "input": {
293
- "value": "#334155"
294
- },
295
- "overlay": {
296
- "value": "#1e293b"
297
- }
298
- },
299
- "text": {
300
- "onPage": {
301
- "default": {
302
- "value": "#f8fafc"
303
- },
304
- "muted": {
305
- "value": "#cbd5f5"
306
- },
307
- "subtle": {
308
- "value": "#94a3b8"
309
- },
310
- "meta": {
311
- "value": "#94a3b8"
312
- }
313
- },
314
- "onSurface": {
315
- "default": {
316
- "value": "#f1f5f9"
317
- },
318
- "muted": {
319
- "value": "#cbd5f5"
320
- },
321
- "subtle": {
322
- "value": "#94a3b8"
323
- },
324
- "meta": {
325
- "value": "#94a3b8"
326
- }
327
- }
328
- },
329
- "component": {
330
- "card": {
331
- "text": {
332
- "value": "#f1f5f9"
333
- },
334
- "textMuted": {
335
- "value": "#cbd5f5"
336
- }
337
- },
338
- "input": {
339
- "text": {
340
- "value": "#f1f5f9"
341
- },
342
- "placeholder": {
343
- "value": "#94a3b8"
344
- }
345
- },
346
- "button": {
347
- "textDefault": {
348
- "value": "#f1f5f9"
349
- },
350
- "textOnPrimary": {
351
- "value": "#ffffff"
352
- }
353
- },
354
- "badge": {
355
- "neutralBg": {
356
- "value": "#334155"
357
- },
358
- "neutralText": {
359
- "value": "#f1f5f9"
360
- },
361
- "infoBg": {
362
- "value": "#1e40af"
363
- },
364
- "infoText": {
365
- "value": "#dbeafe"
366
- },
367
- "successBg": {
368
- "value": "#166534"
369
- },
370
- "successText": {
371
- "value": "#dcfce7"
372
- },
373
- "warningBg": {
374
- "value": "#92400e"
375
- },
376
- "warningText": {
377
- "value": "#fef3c7"
378
- },
379
- "dangerBg": {
380
- "value": "#991b1b"
381
- },
382
- "dangerText": {
383
- "value": "#fee2e2"
384
- }
385
- },
386
- "iconBox": {
387
- "bg": {
388
- "value": "#1e293b"
389
- },
390
- "border": {
391
- "value": "#334155"
392
- },
393
- "iconDefault": {
394
- "value": "#a37aff"
395
- },
396
- "iconSuccess": {
397
- "value": "#4ade80"
398
- },
399
- "iconWarning": {
400
- "value": "#fbbf24"
401
- },
402
- "iconDanger": {
403
- "value": "#f87171"
404
- }
405
- }
406
- }
407
- }
408
- },
409
- "opacity": {
410
- "disabled": "0.38",
411
- "hover": "0.92",
412
- "active": "0.84",
413
- "focus": "1",
414
- "overlay": "0.5",
415
- "tooltip": "0.95"
416
- },
417
- "accessibility": {
418
- "focusRing": {
419
- "width": "2px",
420
- "offset": "2px",
421
- "style": "solid"
422
- },
423
- "minTouchTarget": "44px",
424
- "minTextSize": "16px"
425
- },
426
- "buttons": {
427
- "primary": {
428
- "bg": "#8652ff",
429
- "bgHover": "#6c32e6",
430
- "bgActive": "#5626b4",
431
- "bgDisabled": "#cbd5f5",
432
- "text": "#ffffff",
433
- "textDisabled": "#94a3b8"
434
- },
435
- "secondary": {
436
- "bg": "#ffffff",
437
- "bgHover": "#f1f5f9",
438
- "bgActive": "#e2e8f0",
439
- "bgDisabled": "#f8fafc",
440
- "text": "#8652ff",
441
- "textDisabled": "#94a3b8",
442
- "border": "#8652ff",
443
- "borderDisabled": "#cbd5f5"
444
- },
445
- "ghost": {
446
- "bg": "transparent",
447
- "bgHover": "#f5f0ff",
448
- "bgActive": "#ebe2ff",
449
- "bgDisabled": "transparent",
450
- "text": "#8652ff",
451
- "textDisabled": "#94a3b8"
452
- },
453
- "danger": {
454
- "bg": "#ef4444",
455
- "bgHover": "#dc2626",
456
- "bgActive": "#b91c1c",
457
- "bgDisabled": "#fecaca",
458
- "text": "#ffffff",
459
- "textDisabled": "#94a3b8"
460
- },
461
- "success": {
462
- "bg": "#22c55e",
463
- "bgHover": "#16a34a",
464
- "bgActive": "#15803d",
465
- "bgDisabled": "#bbf7d0",
466
- "text": "#ffffff",
467
- "textDisabled": "#94a3b8"
468
- }
469
- },
470
- "forms": {
471
- "default": {
472
- "bg": "#ffffff",
473
- "border": "#cbd5f5",
474
- "text": "#0f172a",
475
- "placeholder": "#94a3b8"
476
- },
477
- "hover": {
478
- "border": "#8652ff"
479
- },
480
- "focus": {
481
- "border": "#8652ff",
482
- "ring": "#8652ff"
483
- },
484
- "valid": {
485
- "border": "#22c55e",
486
- "bg": "#f0fdf4",
487
- "text": "#15803d"
488
- },
489
- "invalid": {
490
- "border": "#ef4444",
491
- "bg": "#fef2f2",
492
- "text": "#b91c1c"
493
- },
494
- "disabled": {
495
- "bg": "#f8fafc",
496
- "border": "#e2e8f0",
497
- "text": "#94a3b8"
498
- }
499
- },
500
- "layout": {
501
- "section": {
502
- "padding": {
503
- "sm": "1.5rem",
504
- "md": "2rem",
505
- "lg": "3rem"
506
- },
507
- "gap": {
508
- "sm": "1rem",
509
- "md": "1.5rem",
510
- "lg": "2rem"
511
- }
512
- },
513
- "stack": {
514
- "gap": {
515
- "sm": "0.5rem",
516
- "md": "0.75rem",
517
- "lg": "1rem"
518
- }
519
- },
520
- "container": {
521
- "paddingInline": {
522
- "sm": "1rem",
523
- "md": "1.5rem",
524
- "lg": "2rem"
525
- }
526
- }
527
- },
528
- "space": {
529
- "0": "0rem",
530
- "4": "0.25rem",
531
- "8": "0.5rem",
532
- "12": "0.75rem",
533
- "16": "1rem",
534
- "20": "1.25rem",
535
- "24": "1.5rem",
536
- "32": "2rem",
537
- "40": "2.5rem",
538
- "48": "3rem",
539
- "56": "3.5rem",
540
- "64": "4rem",
541
- "80": "5rem",
542
- "96": "6rem"
543
- },
544
- "radii": {
545
- "none": "0",
546
- "sm": "2px",
547
- "md": "4px",
548
- "lg": "8px",
549
- "pill": "999px"
550
- },
551
- "borders": {
552
- "card": "#334155",
553
- "input": "#cbd5f5"
554
- },
555
- "font": {
556
- "xs": {
557
- "size": "0.75rem",
558
- "lineHeight": "1.25rem",
559
- "weight": 400
560
- },
561
- "sm": {
562
- "size": "0.875rem",
563
- "lineHeight": "1.5rem",
564
- "weight": 400
565
- },
566
- "md": {
567
- "size": "1rem",
568
- "lineHeight": "1.75rem",
569
- "weight": 500
570
- },
571
- "lg": {
572
- "size": "1.25rem",
573
- "lineHeight": "2rem",
574
- "weight": 500
575
- },
576
- "xl": {
577
- "size": "1.5rem",
578
- "lineHeight": "2.125rem",
579
- "weight": 600
580
- },
581
- "2xl": {
582
- "size": "1.875rem",
583
- "lineHeight": "2.5rem",
584
- "weight": 600
585
- }
586
- },
587
- "typography": {
588
- "families": {
589
- "sans": "'Inter', 'Helvetica Neue', Arial, sans-serif",
590
- "serif": "'Spectre Serif', 'Georgia', serif",
591
- "mono": "'JetBrains Mono', 'SFMono-Regular', Consolas, monospace"
592
- },
593
- "scale": {
594
- "xs": {
595
- "fontSize": "0.75rem",
596
- "lineHeight": "1.25rem",
597
- "fontWeight": 400,
598
- "letterSpacing": "0.02em"
599
- },
600
- "sm": {
601
- "fontSize": "0.875rem",
602
- "lineHeight": "1.5rem",
603
- "fontWeight": 400
604
- },
605
- "md": {
606
- "fontSize": "1rem",
607
- "lineHeight": "1.75rem",
608
- "fontWeight": 500
609
- },
610
- "lg": {
611
- "fontSize": "1.25rem",
612
- "lineHeight": "2rem",
613
- "fontWeight": 600
614
- },
615
- "xl": {
616
- "fontSize": "1.5rem",
617
- "lineHeight": "2.125rem",
618
- "fontWeight": 600
619
- },
620
- "2xl": {
621
- "fontSize": "1.875rem",
622
- "lineHeight": "2.5rem",
623
- "fontWeight": 700
624
- },
625
- "3xl": {
626
- "fontSize": "2.25rem",
627
- "lineHeight": "2.75rem",
628
- "fontWeight": 700
629
- }
630
- }
631
- },
632
- "shadows": {
633
- "none": "none",
634
- "sm": "0 1px 2px 0 rgba(15, 23, 42, 0.08)",
635
- "md": "0 3px 8px -1px rgba(15, 23, 42, 0.1)",
636
- "lg": "0 8px 20px -4px rgba(15, 23, 42, 0.18)"
637
- },
638
- "breakpoints": {
639
- "sm": "640px",
640
- "md": "768px",
641
- "lg": "1024px",
642
- "xl": "1280px",
643
- "2xl": "1536px"
644
- },
645
- "zIndex": {
646
- "base": "0",
647
- "dropdown": "1000",
648
- "sticky": "1100",
649
- "fixed": "1200",
650
- "overlay": "1300",
651
- "modal": "1400",
652
- "popover": "1500",
653
- "tooltip": "1600"
654
- },
655
- "transitions": {
656
- "duration": {
657
- "instant": "75ms",
658
- "fast": "150ms",
659
- "base": "200ms",
660
- "moderate": "300ms",
661
- "slow": "500ms",
662
- "slower": "700ms"
663
- },
664
- "easing": {
665
- "linear": "linear",
666
- "in": "cubic-bezier(0.4, 0, 1, 1)",
667
- "out": "cubic-bezier(0, 0, 0.2, 1)",
668
- "inOut": "cubic-bezier(0.4, 0, 0.2, 1)",
669
- "spring": "cubic-bezier(0.34, 1.56, 0.64, 1)"
670
- }
671
- },
672
- "animations": {
673
- "fadeIn": {
674
- "duration": "200ms",
675
- "easing": "cubic-bezier(0, 0, 0.2, 1)",
676
- "keyframes": "fade-in"
677
- },
678
- "fadeOut": {
679
- "duration": "150ms",
680
- "easing": "cubic-bezier(0.4, 0, 1, 1)",
681
- "keyframes": "fade-out"
682
- },
683
- "slideUp": {
684
- "duration": "300ms",
685
- "easing": "cubic-bezier(0, 0, 0.2, 1)",
686
- "keyframes": "slide-up"
687
- },
688
- "slideDown": {
689
- "duration": "300ms",
690
- "easing": "cubic-bezier(0, 0, 0.2, 1)",
691
- "keyframes": "slide-down"
692
- },
693
- "scaleIn": {
694
- "duration": "200ms",
695
- "easing": "cubic-bezier(0.34, 1.56, 0.64, 1)",
696
- "keyframes": "scale-in"
697
- },
698
- "bounce": {
699
- "duration": "500ms",
700
- "easing": "cubic-bezier(0.34, 1.56, 0.64, 1)",
701
- "keyframes": "bounce"
702
- },
703
- "shake": {
704
- "duration": "400ms",
705
- "easing": "cubic-bezier(0.4, 0, 0.2, 1)",
706
- "keyframes": "shake"
707
- },
708
- "pulse": {
709
- "duration": "1500ms",
710
- "easing": "cubic-bezier(0.4, 0, 0.2, 1)",
711
- "keyframes": "pulse"
712
- }
713
- }
714
- }