@phcdevworks/spectre-tokens 2.1.2 → 2.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phcdevworks/spectre-tokens",
3
- "version": "2.1.2",
3
+ "version": "2.2.0",
4
4
  "description": "@phcdevworks/spectre-tokens is the design-token package of the Spectre system for downstream Spectre packages and compatible applications.",
5
5
  "keywords": [
6
6
  "phcdevworks",
@@ -48,7 +48,9 @@
48
48
  "dist",
49
49
  "tokens"
50
50
  ],
51
- "sideEffects": false,
51
+ "sideEffects": [
52
+ "./dist/index.css"
53
+ ],
52
54
  "scripts": {
53
55
  "generate": "tsx scripts/generate-types.ts",
54
56
  "prebuild": "npm run generate",
@@ -73,18 +75,18 @@
73
75
  },
74
76
  "devDependencies": {
75
77
  "@types/chroma-js": "^3.1.2",
76
- "@types/node": "^25.5.0",
77
- "@typescript-eslint/eslint-plugin": "^8.58.0",
78
- "@typescript-eslint/parser": "^8.58.0",
78
+ "@types/node": "^25.6.0",
79
+ "@typescript-eslint/eslint-plugin": "^8.58.1",
80
+ "@typescript-eslint/parser": "^8.58.1",
79
81
  "chroma-js": "^3.2.0",
80
82
  "colord": "^2.9.3",
81
- "eslint": "^10.1.0",
83
+ "eslint": "^10.2.0",
82
84
  "jiti": "^2.6.1",
83
- "prettier": "^3.8.1",
85
+ "prettier": "^3.8.2",
84
86
  "ts-node": "^10.9.2",
85
87
  "tsup": "^8.5.1",
86
88
  "tsx": "^4.21.0",
87
89
  "typescript": "^6.0.2",
88
- "typescript-eslint": "^8.58.0"
90
+ "typescript-eslint": "^8.58.1"
89
91
  }
90
92
  }
@@ -146,6 +146,12 @@
146
146
  "pair": "component.testimonial.text"
147
147
  }
148
148
  },
149
+ "bgHover": {
150
+ "value": "{colors.neutral.50}",
151
+ "metadata": {
152
+ "pair": "component.testimonial.text"
153
+ }
154
+ },
149
155
  "border": {
150
156
  "value": "{colors.neutral.200}"
151
157
  },
@@ -178,6 +184,12 @@
178
184
  "pair": "component.pricingCard.price"
179
185
  }
180
186
  },
187
+ "bgHover": {
188
+ "value": "{colors.neutral.50}",
189
+ "metadata": {
190
+ "pair": "component.pricingCard.price"
191
+ }
192
+ },
181
193
  "border": {
182
194
  "value": "{colors.neutral.200}",
183
195
  "metadata": {}
@@ -261,6 +273,9 @@
261
273
  },
262
274
  "focusRing": {
263
275
  "value": "{colors.info.500} / 0.4"
276
+ },
277
+ "focusVisible": {
278
+ "value": "{buttons.primary.focusRing}"
264
279
  }
265
280
  },
266
281
  "secondary": {
@@ -299,6 +314,9 @@
299
314
  },
300
315
  "focusRing": {
301
316
  "value": "{colors.info.500} / 0.4"
317
+ },
318
+ "focusVisible": {
319
+ "value": "{buttons.secondary.focusRing}"
302
320
  }
303
321
  },
304
322
  "ghost": {
@@ -328,6 +346,9 @@
328
346
  },
329
347
  "focusRing": {
330
348
  "value": "{colors.info.500} / 0.4"
349
+ },
350
+ "focusVisible": {
351
+ "value": "{buttons.ghost.focusRing}"
331
352
  }
332
353
  },
333
354
  "danger": {
@@ -459,6 +480,9 @@
459
480
  },
460
481
  "focusRing": {
461
482
  "value": "{colors.accent.500} / 0.4"
483
+ },
484
+ "focusVisible": {
485
+ "value": "{buttons.accent.focusRing}"
462
486
  }
463
487
  }
464
488
  },
@@ -493,6 +517,14 @@
493
517
  "value": "{colors.info.500}"
494
518
  }
495
519
  },
520
+ "focusVisible": {
521
+ "border": {
522
+ "value": "{forms.focus.border}"
523
+ },
524
+ "ring": {
525
+ "value": "{forms.focus.ring}"
526
+ }
527
+ },
496
528
  "valid": {
497
529
  "border": {
498
530
  "value": "{colors.success.500}"
package/tokens/modes.json CHANGED
@@ -108,7 +108,7 @@
108
108
  }
109
109
  },
110
110
  "textMuted": {
111
- "value": "{colors.neutral.500}",
111
+ "value": "{colors.neutral.600}",
112
112
  "metadata": {
113
113
  "pair": "modes.default.surface.card"
114
114
  }
@@ -239,6 +239,12 @@
239
239
  "pair": "modes.default.component.testimonial.text"
240
240
  }
241
241
  },
242
+ "bgHover": {
243
+ "value": "{colors.neutral.50}",
244
+ "metadata": {
245
+ "pair": "modes.default.component.testimonial.text"
246
+ }
247
+ },
242
248
  "border": {
243
249
  "value": "{colors.neutral.200}",
244
250
  "metadata": {}
@@ -262,8 +268,10 @@
262
268
  }
263
269
  },
264
270
  "quoteMark": {
265
- "value": "{colors.neutral.300}",
266
- "metadata": {}
271
+ "value": "{colors.neutral.500}",
272
+ "metadata": {
273
+ "pair": "modes.default.component.testimonial.bg"
274
+ }
267
275
  }
268
276
  },
269
277
  "pricingCard": {
@@ -273,6 +281,12 @@
273
281
  "pair": "modes.default.component.pricingCard.price"
274
282
  }
275
283
  },
284
+ "bgHover": {
285
+ "value": "{colors.neutral.50}",
286
+ "metadata": {
287
+ "pair": "modes.default.component.pricingCard.price"
288
+ }
289
+ },
276
290
  "border": {
277
291
  "value": "{colors.neutral.200}",
278
292
  "metadata": {}
@@ -558,7 +572,7 @@
558
572
  "metadata": {}
559
573
  },
560
574
  "iconDefault": {
561
- "value": "{colors.info.300}",
575
+ "value": "{colors.info.400}",
562
576
  "metadata": {
563
577
  "pair": "modes.dark.component.iconBox.bg"
564
578
  }
@@ -589,6 +603,12 @@
589
603
  "pair": "modes.dark.component.testimonial.text"
590
604
  }
591
605
  },
606
+ "bgHover": {
607
+ "value": "{colors.neutral.700}",
608
+ "metadata": {
609
+ "pair": "modes.dark.component.testimonial.text"
610
+ }
611
+ },
592
612
  "border": {
593
613
  "value": "{colors.neutral.700}",
594
614
  "metadata": {}
@@ -612,8 +632,10 @@
612
632
  }
613
633
  },
614
634
  "quoteMark": {
615
- "value": "{colors.neutral.600}",
616
- "metadata": {}
635
+ "value": "{colors.neutral.400}",
636
+ "metadata": {
637
+ "pair": "modes.dark.component.testimonial.bg"
638
+ }
617
639
  }
618
640
  },
619
641
  "pricingCard": {
@@ -623,6 +645,12 @@
623
645
  "pair": "modes.dark.component.pricingCard.price"
624
646
  }
625
647
  },
648
+ "bgHover": {
649
+ "value": "{colors.neutral.700}",
650
+ "metadata": {
651
+ "pair": "modes.dark.component.pricingCard.price"
652
+ }
653
+ },
626
654
  "border": {
627
655
  "value": "{colors.neutral.700}",
628
656
  "metadata": {}
@@ -138,10 +138,6 @@
138
138
  "minTouchTarget": "44px",
139
139
  "minTextSize": "16px"
140
140
  },
141
- "borders": {
142
- "card": "{colors.neutral.200}",
143
- "input": "{colors.neutral.300}"
144
- },
145
141
  "border": {
146
142
  "width": {
147
143
  "base": "1px",
@@ -18,7 +18,7 @@
18
18
  "lg": {
19
19
  "size": "1.25rem",
20
20
  "lineHeight": "2rem",
21
- "weight": 500
21
+ "weight": 600
22
22
  },
23
23
  "xl": {
24
24
  "size": "1.5rem",
@@ -28,7 +28,27 @@
28
28
  "2xl": {
29
29
  "size": "1.875rem",
30
30
  "lineHeight": "2.5rem",
31
- "weight": 600
31
+ "weight": 700
32
+ },
33
+ "3xl": {
34
+ "size": "2.25rem",
35
+ "lineHeight": "2.75rem",
36
+ "weight": 700
37
+ },
38
+ "4xl": {
39
+ "size": "3rem",
40
+ "lineHeight": "3.5rem",
41
+ "weight": 800
42
+ },
43
+ "5xl": {
44
+ "size": "3.75rem",
45
+ "lineHeight": "4.25rem",
46
+ "weight": 800
47
+ },
48
+ "6xl": {
49
+ "size": "4.5rem",
50
+ "lineHeight": "5rem",
51
+ "weight": 900
32
52
  }
33
53
  },
34
54
  "typography": {