@phcdevworks/spectre-tokens 4.0.0 → 4.1.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/README.md +23 -20
- package/package.json +9 -8
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ contracts for specific frameworks and runtimes.
|
|
|
17
17
|
| Project team | `project-design` |
|
|
18
18
|
| Repository role | Spectre L1 design-token contract |
|
|
19
19
|
| Package/artifact | `@phcdevworks/spectre-tokens` |
|
|
20
|
-
| Current version/status | 4.
|
|
20
|
+
| Current version/status | 4.1.0 |
|
|
21
21
|
|
|
22
22
|
## Standard Workflow
|
|
23
23
|
|
|
@@ -30,17 +30,18 @@ contracts for specific frameworks and runtimes.
|
|
|
30
30
|
|
|
31
31
|
## Documentation Map
|
|
32
32
|
|
|
33
|
-
| Guide
|
|
34
|
-
|
|
|
35
|
-
| Agent rules
|
|
36
|
-
| Claude Code
|
|
37
|
-
| Codex
|
|
38
|
-
| Copilot
|
|
39
|
-
| Jules
|
|
40
|
-
| Roadmap
|
|
41
|
-
| Todo
|
|
42
|
-
|
|
|
43
|
-
|
|
|
33
|
+
| Guide | Path |
|
|
34
|
+
| --------------- | ---------------------------------------- |
|
|
35
|
+
| Agent rules | [AGENTS.md](AGENTS.md) |
|
|
36
|
+
| Claude Code | [CLAUDE.md](CLAUDE.md) |
|
|
37
|
+
| Codex | [CODEX.md](CODEX.md) |
|
|
38
|
+
| Copilot | [COPILOT.md](COPILOT.md) |
|
|
39
|
+
| Jules | [JULES.md](JULES.md) |
|
|
40
|
+
| Roadmap | [ROADMAP.md](ROADMAP.md) |
|
|
41
|
+
| Todo | [TODO.md](TODO.md) |
|
|
42
|
+
| Token reference | [TOKEN_REFERENCE.md](TOKEN_REFERENCE.md) |
|
|
43
|
+
| Changelog | [CHANGELOG.md](CHANGELOG.md) |
|
|
44
|
+
| Security | [SECURITY.md](SECURITY.md) |
|
|
44
45
|
|
|
45
46
|
[](https://www.npmjs.com/package/@phcdevworks/spectre-tokens)
|
|
46
47
|
[](https://github.com/phcdevworks/spectre-tokens/actions/workflows/ci.yml)
|
|
@@ -305,6 +306,9 @@ The exported runtime token object is a flattened string-based tree generated
|
|
|
305
306
|
from `tokens/`. Source-only wrapper fields such as `value` and `metadata` are
|
|
306
307
|
internal generation details and are not part of the public package contract.
|
|
307
308
|
|
|
309
|
+
See [TOKEN_REFERENCE.md](TOKEN_REFERENCE.md) for the exhaustive, generated
|
|
310
|
+
list of every token path, resolved value, and usage note.
|
|
311
|
+
|
|
308
312
|
The `layout` namespace includes section, stack, and container spacing tokens,
|
|
309
313
|
plus fixed layout width tokens for common consumer shells:
|
|
310
314
|
`layout.container.maxWidth`, `layout.container.maxWidthProse`, and
|
|
@@ -514,14 +518,13 @@ treated as downstream UI primitives.
|
|
|
514
518
|
|
|
515
519
|
Claude Code (`claude-sonnet-4-6`) is the primary development agent for this
|
|
516
520
|
repository. Codex handles releases and production stabilization, including
|
|
517
|
-
cutting tagged releases and GitHub Releases. Jules handles small automated
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
full commit-policy and release-authority grant.
|
|
521
|
+
cutting tagged releases and GitHub Releases. Jules handles small automated fixes
|
|
522
|
+
and generated-output sync. GitHub Copilot provides development support.
|
|
523
|
+
|
|
524
|
+
All AI agents with repository access (Claude Code, Codex, Copilot, Jules) have
|
|
525
|
+
commit, push, and tag authority in this repository. Publishing to npm remains
|
|
526
|
+
Bradley Potts's sole authority. See [AGENTS.md](AGENTS.md) for the full
|
|
527
|
+
commit-policy and release-authority grant.
|
|
525
528
|
|
|
526
529
|
**Protected from automated change:** locked color families (`success`,
|
|
527
530
|
`warning`, `danger`, CTA/brand-action), `contract.manifest.json`, and
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phcdevworks/spectre-tokens",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "@phcdevworks/spectre-tokens is the design-token package of the Spectre system. It provides a complete, UI-ready token surface for downstream Spectre packages and compatible applications.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"phcdevworks",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"node": "^22.12.0 || >=24.0.0"
|
|
36
36
|
},
|
|
37
37
|
"type": "module",
|
|
38
|
-
"packageManager": "npm@12.0.
|
|
38
|
+
"packageManager": "npm@12.0.2",
|
|
39
39
|
"main": "./dist/index.cjs",
|
|
40
40
|
"module": "./dist/index.js",
|
|
41
41
|
"types": "./dist/index.d.ts",
|
|
@@ -57,10 +57,11 @@
|
|
|
57
57
|
"scripts": {
|
|
58
58
|
"generate": "tsx scripts/generate-types.ts",
|
|
59
59
|
"prebuild": "npm run generate",
|
|
60
|
-
"build": "npm run build:ts && npm run build:css && npm run build:design",
|
|
60
|
+
"build": "npm run build:ts && npm run build:css && npm run build:design && npm run build:docs",
|
|
61
61
|
"build:ts": "tsup --config tsup.config.ts",
|
|
62
62
|
"build:css": "tsx scripts/build-css.ts",
|
|
63
63
|
"build:design": "tsx scripts/build-dtcg.ts",
|
|
64
|
+
"build:docs": "tsx scripts/build-token-reference.ts",
|
|
64
65
|
"check:manifest": "tsx scripts/check-contract-manifest.ts",
|
|
65
66
|
"check:docs": "tsx scripts/check-doc-contract.ts",
|
|
66
67
|
"check:version-sync": "npm run check:docs",
|
|
@@ -98,9 +99,9 @@
|
|
|
98
99
|
},
|
|
99
100
|
"devDependencies": {
|
|
100
101
|
"@phcdevworks/spectre-manifest": "^1.1.0",
|
|
101
|
-
"@types/node": "^26.1.
|
|
102
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
103
|
-
"@typescript-eslint/parser": "^8.
|
|
102
|
+
"@types/node": "^26.1.2",
|
|
103
|
+
"@typescript-eslint/eslint-plugin": "^8.66.0",
|
|
104
|
+
"@typescript-eslint/parser": "^8.66.0",
|
|
104
105
|
"@typescript/native": "npm:typescript@^7.0.2",
|
|
105
106
|
"colord": "^2.9.3",
|
|
106
107
|
"eslint": "^10.8.0",
|
|
@@ -109,9 +110,9 @@
|
|
|
109
110
|
"style-dictionary": "^5.5.0",
|
|
110
111
|
"ts-node": "^10.9.2",
|
|
111
112
|
"tsup": "^8.5.1",
|
|
112
|
-
"tsx": "^4.23.
|
|
113
|
+
"tsx": "^4.23.5",
|
|
113
114
|
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
114
|
-
"typescript-eslint": "^8.
|
|
115
|
+
"typescript-eslint": "^8.66.0",
|
|
115
116
|
"vitest": "^4.1.10"
|
|
116
117
|
},
|
|
117
118
|
"overrides": {
|