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
+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.