@phcdevworks/spectre-tokens 2.2.0 → 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.2.0",
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",
@@ -57,15 +57,24 @@
57
57
  "build": "npm run build:ts && npm run build:css",
58
58
  "build:ts": "tsup --config tsup.config.ts",
59
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",
60
63
  "check:structure": "tsx scripts/assert-core-tokens.ts",
61
64
  "check:locked": "tsx scripts/check-locked-color-contracts.ts",
62
65
  "check:contrast": "tsx scripts/check-contrast.ts",
63
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",
64
72
  "lint": "eslint .",
65
73
  "format": "prettier --write .",
66
- "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",
67
75
  "check:all": "npm run check",
68
- "test": "npm run check"
76
+ "test": "npm run check",
77
+ "prepublishOnly": "npm run check"
69
78
  },
70
79
  "publishConfig": {
71
80
  "access": "public"
@@ -76,17 +85,17 @@
76
85
  "devDependencies": {
77
86
  "@types/chroma-js": "^3.1.2",
78
87
  "@types/node": "^25.6.0",
79
- "@typescript-eslint/eslint-plugin": "^8.58.1",
80
- "@typescript-eslint/parser": "^8.58.1",
88
+ "@typescript-eslint/eslint-plugin": "^8.58.2",
89
+ "@typescript-eslint/parser": "^8.58.2",
81
90
  "chroma-js": "^3.2.0",
82
91
  "colord": "^2.9.3",
83
- "eslint": "^10.2.0",
92
+ "eslint": "^10.2.1",
84
93
  "jiti": "^2.6.1",
85
- "prettier": "^3.8.2",
94
+ "prettier": "^3.8.3",
86
95
  "ts-node": "^10.9.2",
87
96
  "tsup": "^8.5.1",
88
97
  "tsx": "^4.21.0",
89
- "typescript": "^6.0.2",
90
- "typescript-eslint": "^8.58.1"
98
+ "typescript": "^6.0.3",
99
+ "typescript-eslint": "^8.58.2"
91
100
  }
92
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": {
@@ -174,7 +174,10 @@
174
174
  }
175
175
  },
176
176
  "quoteMark": {
177
- "value": "{colors.neutral.300}"
177
+ "value": "{colors.neutral.500}",
178
+ "metadata": {
179
+ "pair": "component.testimonial.bg"
180
+ }
178
181
  }
179
182
  },
180
183
  "pricingCard": {
@@ -275,7 +278,7 @@
275
278
  "value": "{colors.info.500} / 0.4"
276
279
  },
277
280
  "focusVisible": {
278
- "value": "{buttons.primary.focusRing}"
281
+ "value": "{colors.info.500} / 0.4"
279
282
  }
280
283
  },
281
284
  "secondary": {
@@ -316,7 +319,7 @@
316
319
  "value": "{colors.info.500} / 0.4"
317
320
  },
318
321
  "focusVisible": {
319
- "value": "{buttons.secondary.focusRing}"
322
+ "value": "{colors.info.500} / 0.4"
320
323
  }
321
324
  },
322
325
  "ghost": {
@@ -348,7 +351,7 @@
348
351
  "value": "{colors.info.500} / 0.4"
349
352
  },
350
353
  "focusVisible": {
351
- "value": "{buttons.ghost.focusRing}"
354
+ "value": "{colors.info.500} / 0.4"
352
355
  }
353
356
  },
354
357
  "danger": {
@@ -482,7 +485,7 @@
482
485
  "value": "{colors.accent.500} / 0.4"
483
486
  },
484
487
  "focusVisible": {
485
- "value": "{buttons.accent.focusRing}"
488
+ "value": "{colors.accent.500} / 0.4"
486
489
  }
487
490
  }
488
491
  },
@@ -495,7 +498,10 @@
495
498
  "value": "{colors.neutral.300}"
496
499
  },
497
500
  "text": {
498
- "value": "{colors.neutral.900}"
501
+ "value": "{colors.neutral.900}",
502
+ "metadata": {
503
+ "pair": "forms.default.bg"
504
+ }
499
505
  },
500
506
  "placeholder": {
501
507
  "value": "{colors.neutral.500}",
@@ -519,10 +525,10 @@
519
525
  },
520
526
  "focusVisible": {
521
527
  "border": {
522
- "value": "{forms.focus.border}"
528
+ "value": "{colors.info.500}"
523
529
  },
524
530
  "ring": {
525
- "value": "{forms.focus.ring}"
531
+ "value": "{colors.info.500}"
526
532
  }
527
533
  },
528
534
  "valid": {
package/tokens/modes.json CHANGED
@@ -372,7 +372,7 @@
372
372
  }
373
373
  },
374
374
  "hero": {
375
- "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%)"
376
376
  }
377
377
  },
378
378
  "text": {
@@ -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",