Skip to content

fix: resolve defs in import-export script (v1.2.2)#12

Merged
kkugot merged 2 commits intomainfrom
release/v1.2.2
Mar 23, 2026
Merged

fix: resolve defs in import-export script (v1.2.2)#12
kkugot merged 2 commits intomainfrom
release/v1.2.2

Conversation

@kkugot
Copy link
Copy Markdown
Owner

@kkugot kkugot commented Mar 23, 2026

Summary

Fix the hosted import-export.sh flow so theme imports also resolve defs references when generating the shared Theme Studio URL.


Context / Motivation

The previous release fixed named CSS colors and dark-only or light-only theme objects, but the import script still failed for valid theme files that referenced colors through defs entries.


Changes

  • resolve theme token values through defs before color encoding in public/import-export.sh
  • validate missing, non-string, and circular defs references with clearer import errors
  • bump the package version to 1.2.2

Testing

  • npm run test
  • npm run lint
  • npm run build
  • ✅ verified public/import-export.sh with a theme file using defs, named colors, and dark-only/light-only token objects

Version

Patch release: 1.2.2

@kkugot kkugot merged commit 1642fcb into main Mar 23, 2026
1 check passed
@kkugot kkugot deleted the release/v1.2.2 branch March 23, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant