Repository navigation
feat(figma): data-driven collection specs, modeless layer, bare names - #1542
Merged
Merged
Conversation
🦋 Changeset detectedLatest commit: aacc813 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
🎨 Token Changes ReportTokens Changed (0)Original Branch: This comment was automatically generated by the token diff tool. 🤖 |
Contributor
🧩 Component Schema Changes ReportNo component schema changes detected.This comment was automatically generated by the component schema diff tool. 🤖 |
Contributor
Run report for aacc8137Total time: 2m 50s | Comparison time: 4m 54s | Estimated savings: 2m 3s (42.0% faster)
Changed files |
3 of 6 tasks
GarthDB
added this pull request to stack #1545
October 15, 2026 21:47
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Adds --modeless-layer (cn3v.4) and --no-folder-prefix (cn3v.7) to figma export. Both are off by default; default output is unchanged. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
GarthDB
force-pushed
the
feat/cn3v-figma-mode-groups
branch
from
October 15, 2026 21:48
7cf14e0 to
2524cb6
Compare
…ix to audit/diff Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Merged
GarthDB
pushed a commit
that referenced
this pull request
Oct 15, 2026
…#1542) - Derive collection specs from graph mode sets instead of hardcoding them. - Add opt-in `figma export --modeless-layer` and `--no-folder-prefix` (also accepted by `figma audit` and `figma diff`); defaults unchanged. - Key the variable index by (collection, name) so bare names can't collide across collections; warn when a modeless source variable is missing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Figma exporter follow-ups to the xqln epic (stack 1/3):
COLLECTION_SPECSis now built fromgraph.mode_setsviacollection_specs()(cn3v.3). Output is byte-identical for the current collections.figma export --modeless-layer(cn3v.4): writes one modeless variable per token into the existing "Spectrum" collection. A token that varies on one axis gets aVARIABLE_ALIASto its mode-group variable; an axis-invariant token carries the concrete value. Fails fast if the collection is missing.figma export --no-folder-prefix(cn3v.7): names variables by bare token name.Both new flags are opt-in; default output and the baseline are unchanged. cn3v.5 and cn3v.6 are not started (pending alignment).
Related Issue
Beads:
spectrum-design-data-11k.23,cn3v.3,cn3v.4,cn3v.7. Follows #1538 and #1539.Motivation and Context
Mode sets were hardcoded in the exporter. Deriving the collections from the graph is the prerequisite for the mode-group / modeless-alias model.
Import/diff inversion of bare names and flipping the prefix default stay gated on design removing the folders and re-snapshotting
s2-web-variables.baseline.json.How Has This Been Tested?
moon run sdk:test: passed (1561 tests, golden payload unchanged withoutUPDATE_GOLDEN).moon run sdk:lint: passed.moon run sdk:fmt: applied.moon run root:check-legacy-consumers: passed.node .github/scripts/check-ci-coverage.mjs: passed.Screenshots (if appropriate):
N/A
Types of changes
Checklist: