feat(core,cli): figma tokens import with alias-aware binding records (M2) (#1871)

tokensToVariables: variables -> composition brand-variable entries
(COLOR->hex/rgba, FLOAT/STRING/BOOLEAN), alias chains walked cycle-safe
to the leaf value while the binding keeps the semantic id. Sidecar
figma-tokens.json + .media/figma-bindings.jsonl records per spec 7.1.

hyperframes figma tokens: variables path, REQUIRES_ENTERPRISE degrades
to published-styles metadata (values resolve at component time).

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Vance Ingalls
2026-07-03 18:16:48 -07:00
committed by GitHub
co-authored by Claude Fable 5
parent 22942280b6
commit 4d60792adc
6 changed files with 547 additions and 0 deletions
+1
View File
@@ -40,6 +40,7 @@ export default defineCommand({
meta: { name: "figma", description: "Import figma assets, tokens, and components (REST)" },
subCommands: {
asset: () => import("./figma/asset.js").then((m) => m.default),
tokens: () => import("./figma/tokens.js").then((m) => m.default),
},
async run({ args }) {
if (!args._?.[0]) console.log(HELP);