docs: add token code / output architecture ADR - #5178
Conversation
|
@claude review |
|
Claude finished @pomfrida's task in 2m 20s —— View job Review — ADR 0009: Token code / output architecture
This is a well-structured, unusually precise ADR — the options are genuinely weighed (each rejected option has a real technical reason, not a strawman), the ownership boundary is crisp, and the consequences are honest about the sharp edges ( ✅ Claims verified against the repoI checked the factual assertions against the workflow files on this branch:
One thing I could not verify: the ADR states everything is "grounded in the actual generated output on the
|
Description
Adds ADR 0009 — the code / output architecture for the redefined token system (Tokens Studio export, build pipeline, CSS + TypeScript output shape). This is the sibling of ADR 0007 (Figma variable structure, #5161) and the umbrella over ADR 0008 (TS-token generation).
Key decisions recorded:
studioCLI, release-triggered CI, export configs referenced by ID, hourly backup branch.--eds-*/ nested camelCase mapping, incl. digit-leading tiers (2xl→twoXl); theheading/headerdiscrepancy is flagged as a Studio-source fix.body/*= ui × 1.5 as derived output in CSS + TS), implementation pending — the 1.5 ratio stays code-owned per the ADR 0007 ownership boundary.@layer eds-tokenswith a shared@layer eds-tokens, eds-elements, eds-components;order statement. The legacy-unlayered-beats-layered collision risk is recorded as a consequence with a required collision check.All claims about the generated output are verified against the
tokens-studio-releasebranch.Status is Proposed — moves to Accepted after design + engineering review per the issue's DoD.
Closes #5140
Follow-ups (separate issues, not in this PR)
generate-ts-tokens.mjs+ CSS output@layerbundle step and wiresrc/tokens/*into the packageexportsmap