@phcdevworks/spectre-tokens 2.1.2 → 2.3.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.3.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,22 +48,33 @@
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",
55
57
  "build": "npm run build:ts && npm run build:css",
56
58
  "build:ts": "tsup --config tsup.config.ts",
57
59
  "build:css": "tsx scripts/build-css.ts",
60
+ "check:manifest": "tsx scripts/check-contract-manifest.ts",
61
+ "check:docs": "tsx scripts/check-doc-contract.ts",
62
+ "check:dist": "node scripts/check-dist-sync.js",
58
63
  "check:structure": "tsx scripts/assert-core-tokens.ts",
59
64
  "check:locked": "tsx scripts/check-locked-color-contracts.ts",
60
65
  "check:contrast": "tsx scripts/check-contrast.ts",
61
66
  "check:regression": "tsx scripts/check-tokens-regression.ts",
67
+ "check:exports": "node scripts/check-public-exports.mjs",
68
+ "check:css": "tsx scripts/check-css-contract.ts",
69
+ "check:tailwind": "tsx scripts/check-tailwind-contract.ts",
70
+ "check:consumer": "tsx scripts/check-consumer-smoke.ts",
71
+ "check:classification": "tsx scripts/check-change-classification.ts",
62
72
  "lint": "eslint .",
63
73
  "format": "prettier --write .",
64
- "check": "npm run build && npm run check:structure && npm run check:locked && npm run check:contrast && npm run check:regression && npm run lint",
74
+ "check": "npm run build && npm run check:manifest && npm run check:structure && npm run check:locked && npm run check:contrast && npm run check:regression && npm run check:docs && npm run check:exports && npm run check:css && npm run check:tailwind && npm run check:consumer && npm run check:classification && npm run check:dist && npm run lint",
65
75
  "check:all": "npm run check",
66
- "test": "npm run check"
76
+ "test": "npm run check",
77
+ "prepublishOnly": "npm run check"
67
78
  },
68
79
  "publishConfig": {
69
80
  "access": "public"
@@ -73,18 +84,18 @@
73
84
  },
74
85
  "devDependencies": {
75
86
  "@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",
87
+ "@types/node": "^25.6.0",
88
+ "@typescript-eslint/eslint-plugin": "^8.58.2",
89
+ "@typescript-eslint/parser": "^8.58.2",
79
90
  "chroma-js": "^3.2.0",
80
91
  "colord": "^2.9.3",
81
- "eslint": "^10.1.0",
92
+ "eslint": "^10.2.1",
82
93
  "jiti": "^2.6.1",
83
- "prettier": "^3.8.1",
94
+ "prettier": "^3.8.3",
84
95
  "ts-node": "^10.9.2",
85
96
  "tsup": "^8.5.1",
86
97
  "tsx": "^4.21.0",
87
- "typescript": "^6.0.2",
88
- "typescript-eslint": "^8.58.0"
98
+ "typescript": "^6.0.3",
99
+ "typescript-eslint": "^8.58.2"
89
100
  }
90
101
  }
@@ -18,7 +18,7 @@
18
18
  "text": {
19
19
  "value": "{colors.neutral.900}",
20
20
  "metadata": {
21
- "pair": "surface.input"
21
+ "pair": "forms.default.bg"
22
22
  }
23
23
  },
24
24
  "placeholder": {
@@ -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
  },
@@ -168,7 +174,10 @@
168
174
  }
169
175
  },
170
176
  "quoteMark": {
171
- "value": "{colors.neutral.300}"
177
+ "value": "{colors.neutral.500}",
178
+ "metadata": {
179
+ "pair": "component.testimonial.bg"
180
+ }
172
181
  }
173
182
  },
174
183
  "pricingCard": {
@@ -178,6 +187,12 @@
178
187
  "pair": "component.pricingCard.price"
179
188
  }
180
189
  },
190
+ "bgHover": {
191
+ "value": "{colors.neutral.50}",
192
+ "metadata": {
193
+ "pair": "component.pricingCard.price"
194
+ }
195
+ },
181
196
  "border": {
182
197
  "value": "{colors.neutral.200}",
183
198
  "metadata": {}
@@ -261,6 +276,9 @@
261
276
  },
262
277
  "focusRing": {
263
278
  "value": "{colors.info.500} / 0.4"
279
+ },
280
+ "focusVisible": {
281
+ "value": "{colors.info.500} / 0.4"
264
282
  }
265
283
  },
266
284
  "secondary": {
@@ -299,6 +317,9 @@
299
317
  },
300
318
  "focusRing": {
301
319
  "value": "{colors.info.500} / 0.4"
320
+ },
321
+ "focusVisible": {
322
+ "value": "{colors.info.500} / 0.4"
302
323
  }
303
324
  },
304
325
  "ghost": {
@@ -328,6 +349,9 @@
328
349
  },
329
350
  "focusRing": {
330
351
  "value": "{colors.info.500} / 0.4"
352
+ },
353
+ "focusVisible": {
354
+ "value": "{colors.info.500} / 0.4"
331
355
  }
332
356
  },
333
357
  "danger": {
@@ -459,6 +483,9 @@
459
483
  },
460
484
  "focusRing": {
461
485
  "value": "{colors.accent.500} / 0.4"
486
+ },
487
+ "focusVisible": {
488
+ "value": "{colors.accent.500} / 0.4"
462
489
  }
463
490
  }
464
491
  },
@@ -471,7 +498,10 @@
471
498
  "value": "{colors.neutral.300}"
472
499
  },
473
500
  "text": {
474
- "value": "{colors.neutral.900}"
501
+ "value": "{colors.neutral.900}",
502
+ "metadata": {
503
+ "pair": "forms.default.bg"
504
+ }
475
505
  },
476
506
  "placeholder": {
477
507
  "value": "{colors.neutral.500}",
@@ -493,6 +523,14 @@
493
523
  "value": "{colors.info.500}"
494
524
  }
495
525
  },
526
+ "focusVisible": {
527
+ "border": {
528
+ "value": "{colors.info.500}"
529
+ },
530
+ "ring": {
531
+ "value": "{colors.info.500}"
532
+ }
533
+ },
496
534
  "valid": {
497
535
  "border": {
498
536
  "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": {}
@@ -358,7 +372,7 @@
358
372
  }
359
373
  },
360
374
  "hero": {
361
- "value": "linear-gradient(135deg, {colors.accent.900} 0%, {colors.accent.700} 100%)"
375
+ "value": "linear-gradient(135deg, {colors.accent.700} 0%, {colors.accent.900} 100%)"
362
376
  }
363
377
  },
364
378
  "text": {
@@ -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",
@@ -3,7 +3,8 @@
3
3
  "xs": {
4
4
  "size": "0.75rem",
5
5
  "lineHeight": "1.25rem",
6
- "weight": 400
6
+ "weight": 400,
7
+ "letterSpacing": "0.02em"
7
8
  },
8
9
  "sm": {
9
10
  "size": "0.875rem",
@@ -18,7 +19,7 @@
18
19
  "lg": {
19
20
  "size": "1.25rem",
20
21
  "lineHeight": "2rem",
21
- "weight": 500
22
+ "weight": 600
22
23
  },
23
24
  "xl": {
24
25
  "size": "1.5rem",
@@ -28,7 +29,27 @@
28
29
  "2xl": {
29
30
  "size": "1.875rem",
30
31
  "lineHeight": "2.5rem",
31
- "weight": 600
32
+ "weight": 700
33
+ },
34
+ "3xl": {
35
+ "size": "2.25rem",
36
+ "lineHeight": "2.75rem",
37
+ "weight": 700
38
+ },
39
+ "4xl": {
40
+ "size": "3rem",
41
+ "lineHeight": "3.5rem",
42
+ "weight": 800
43
+ },
44
+ "5xl": {
45
+ "size": "3.75rem",
46
+ "lineHeight": "4.25rem",
47
+ "weight": 800
48
+ },
49
+ "6xl": {
50
+ "size": "4.5rem",
51
+ "lineHeight": "5rem",
52
+ "weight": 900
32
53
  }
33
54
  },
34
55
  "typography": {