ADR-051: Platform code-syntax token profiles#107
Merged
Conversation
Add FIGMA_SYNTAX_WEB/IOS/ANDROID profiles to format.tokens (DRAFT). Refs #103 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Add FIGMA_SYNTAX_WEB/IOS/ANDROID to format.tokens (Config + ResolvedConfig) and component.schema.json. Default unchanged (TOKEN); empty platform syntax falls back to TOKEN output (transformer behavior). Folds into unreleased 0.21.0. Update Config.test-d.ts, docs, and CHANGELOG. Refs #103 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This was referenced May 20, 2026
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.
Implements ADR-051 — Platform Code-Syntax Token Profiles (ACCEPTED).
Closes #103.
What
Adds three platform profiles to
Config.format.tokens(andResolvedConfig):FIGMA_SYNTAX_WEBFIGMA_SYNTAX_IOSFIGMA_SYNTAX_ANDROIDEach emits the token's Figma
codeSyntaxfor that platform, falling back to the existingTOKENoutput when no code syntax is defined for the platform. The default staysTOKEN; the fallback is a transformer behavior (kept out of the schema per Constitution II). This brings Specs 2 to parity with Specs Classic'sCODE_SYNTAXfeature.Changes
types/Config.ts— enum widened onConfigandResolvedConfigschema/component.schema.json—format.tokensenum + descriptiontests/Config.test-d.ts— valid-value +@ts-expect-errorassertionssite/.../config/tokens.md,site/.../schema/config.md— docsCHANGELOG.md— entry under unreleased0.21.0adr/051-platform-token-syntax.md,adr/INDEX.md— ADR + indexVersioning
Additive (
MINOR-class). Folds into the in-progress unreleased0.21.0— no separate bump.Gates
tsc -p tsconfig.build.json --noEmit— PASSvalidate-schema.sh— PASS (4/4)tsc --noEmit --strict tests/*.test-d.ts— PASS🤖 Generated with Claude Code