Release Token Tools 0.2.0
Verify / verify (push) Canceled after 0s

This commit is contained in:
2026-09-02 12:38:34 +02:00
parent 8fd5210cb8
commit c305f3da43
22 changed files with 777 additions and 109 deletions
+5
View File
@@ -1,5 +1,10 @@
# Changelog
## 0.2.0 - 2026-09-02
- Add DTCG-compatible token import/export, richer theme composition and
composite-value handling with platform-specific loss evidence.
## 0.1.0 - 2026-09-01
- Initial nested token editor with multi-set themes and ordered overrides.
+3 -3
View File
@@ -1,5 +1,5 @@
==============================================================================
@add-ideas/toolbox-contract@0.2.3
@add-ideas/toolbox-contract@0.3.0
Declared licence: Apache-2.0
==============================================================================
--- LICENSE ---
@@ -198,7 +198,7 @@ Declared licence: Apache-2.0
==============================================================================
@add-ideas/toolbox-helpers@0.1.0
@add-ideas/toolbox-helpers@0.2.0
Declared licence: GPL-3.0-or-later
==============================================================================
--- LICENSE ---
@@ -879,7 +879,7 @@ Public License instead of this License. But first, please read
==============================================================================
@add-ideas/toolbox-shell-react@0.2.3
@add-ideas/toolbox-shell-react@0.3.0
Declared licence: Apache-2.0
==============================================================================
--- LICENSE ---
+8 -1
View File
@@ -1,5 +1,12 @@
# Token Tools
Token Tools imports and exports bounded Design Tokens Community Group
`$type`/`$value` JSON, including aliases, inherited groups, ordered themes and
explicit modes. Alias references resolve recursively inside composite values
with missing-target and full cycle diagnostics. Color, dimension, duration,
font, Bézier, stroke, border, transition, gradient, typography and shadow
tokens can be inspected before loss-aware CSS, Sass, Android or Swift export.
Edit, validate and export design tokens locally in the browser. Token Tools supports plain W3C-style nested JSON and a local multi-set wrapper using `$sets` plus ordered `$themes`.
## Features
@@ -38,7 +45,7 @@ npm run test:browser
npm run package:release -- --force
```
The deterministic release is `release/token-tools-0.1.0.zip` with a SHA-256 sidecar. Node.js 22+ and npm 11 are required.
The deterministic release is `release/token-tools-0.2.0.zip` with a SHA-256 sidecar. Node.js 22+ and npm 11 are required.
## Licence
+2 -2
View File
@@ -1,10 +1,10 @@
# Source identity
- Project: Token Tools
- Version: 0.1.0
- Version: 0.2.0
- Repository: https://git.add-ideas.de/lotobo/token-tools
- Licence: GPL-3.0-or-later
- Build: Node.js 22+, npm 11, `npm ci && npm run release:artifact`
- Artifact: `token-tools-0.1.0.zip`
- Artifact: `token-tools-0.2.0.zip`
The lockfile pins dependencies exactly. Generated release manifests repeat this source identity and releases include detected runtime licence texts under `LICENSES/`.
+11 -1
View File
@@ -1,5 +1,15 @@
# Architecture
The applied JSON document is separate from the editing draft, so malformed intermediate input never replaces the last valid state. `core/tokens.ts` extracts inherited nested tokens, composes ordered sets, resolves aliases through a guarded graph walk and validates resolved values. Export adapters consume only the selected theme's resolved records and append every unsupported conversion to a loss report.
The applied JSON document is separate from the editing draft, so malformed
intermediate input never replaces the last valid state. `core/tokens.ts`
extracts DTCG `$type`/`$value` tokens, composes ordered sets and explicit
theme/mode overlays, resolves aliases recursively inside composite values
through a guarded graph walk, and reports the complete cycle path. Supported
composites include typography, shadow, border, transition and gradient, plus
font, duration, Bézier and stroke primitives.
The DTCG export preserves alias expressions for the selected composition.
Platform adapters consume resolved records and append every unsupported
conversion to a loss report.
The `$sets`/`$themes` wrapper is local metadata; W3C-style export emits a plain nested `$type`/`$value` object. All Vite assets are relative for nested portal mounting, and release packaging fixes ordering, permissions and timestamps.
+1 -1
View File
@@ -1,5 +1,5 @@
const CACHE_PREFIX = "token-tools-shell-";
const CACHE_NAME = CACHE_PREFIX + "0.1.0";
const CACHE_NAME = CACHE_PREFIX + "0.2.0";
const CORE = ["./", "./manifest.webmanifest", "./favicon.svg"];
self.addEventListener("install", (event) => {
event.waitUntil(
+13 -1
View File
@@ -3,7 +3,7 @@
"schemaVersion": 1,
"id": "de.add-ideas.token-tools",
"name": "Token Tools",
"version": "0.1.0",
"version": "0.2.0",
"description": "Edit, validate and export design tokens locally.",
"entry": "./",
"icon": "./favicon.svg",
@@ -21,6 +21,18 @@
"crossOriginIsolated": false,
"topLevelContext": false
},
"io": {
"accepts": [
{ "mediaType": "application/json", "extensions": [".json", ".tokens"] }
],
"produces": [
{ "mediaType": "application/json", "extensions": [".json"] },
{ "mediaType": "text/css", "extensions": [".css", ".scss"] },
{ "mediaType": "application/xml", "extensions": [".xml"] },
{ "mediaType": "text/plain", "extensions": [".swift", ".kt", ".txt"] }
]
},
"capabilities": { "required": [], "optional": [] },
"privacy": {
"processing": "local",
"fileUploads": true,