925 B
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 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.