Skip to content

feat: corpus-back design-tokens procedure steps 2-8#81

Merged
KailasMahavarkar merged 13 commits intomainfrom
feat/corpus-design-tokens-step-2
Apr 21, 2026
Merged

feat: corpus-back design-tokens procedure steps 2-8#81
KailasMahavarkar merged 13 commits intomainfrom
feat/corpus-design-tokens-step-2

Conversation

@KailasMahavarkar
Copy link
Copy Markdown
Collaborator

Summary

  • Migrates design-tokens build procedure steps 2-8 from in-file data.ts snippets to corpus/frontend/design-tokens/step-N.yaml files
  • Registers each step in corpus/frontend/design-tokens/index.yaml so the loader picks them up
  • Extends design-tokens-procedure-corpus-backed-tools-behaviour.test.ts with one TDD cycle per step - each step now asserts Corpus Source: frontend.design-tokens

Procedure step 1 was already corpus-backed in a previous commit; this branch completes the procedure by bringing steps 2 through 8 under the same pattern. All 8 procedure steps are now corpus-first with the existing in-file fallback kept intact in data.ts.

Test plan

  • bun test tests/design-tokens-procedure-corpus-backed-tools-behaviour.test.ts - 9 pass
  • bun run build - typecheck exit 0
  • Regression check across all 19 test files - no failures

KailasMahavarkar and others added 13 commits April 21, 2026 23:09
Adds corpus/frontend/design-tokens/step-2.yaml with semantic token mapping for :root and .dark.
Registers step-2 in namespace index so the loader picks it up.
Updates procedure test: step 2 now asserts corpus source, fallback check moves to step 3.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds corpus/frontend/design-tokens/step-3.yaml with the @theme inline bridge to Tailwind utilities.
Registers step-3 in namespace index.
Test: step 3 asserts corpus source, fallback check moves to step 4.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds corpus/frontend/design-tokens/step-4.yaml with the 4px base spacing system and named tokens.
Test: step 4 asserts corpus source, fallback check moves to step 5.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds corpus/frontend/design-tokens/step-5.yaml with fluid heading clamps and fixed body type tokens.
Test: step 5 asserts corpus source, fallback check moves to step 6.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds corpus/frontend/design-tokens/step-6.yaml with the 5-level warm oklch-tinted shadow system and dark-mode elevation.
Test: step 6 asserts corpus source, fallback check moves to step 7.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds corpus/frontend/design-tokens/step-7.yaml with duration/easing/z-index tokens and prefers-reduced-motion rule.
Test: step 7 asserts corpus source, fallback check moves to step 8.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds corpus/frontend/design-tokens/step-8.yaml with contrast audit targets and verification tooling notes.
Registers step-8 in namespace index so all 8 procedure steps are now corpus-backed.
Test: step 8 asserts corpus source; the former fallback test is replaced because no un-migrated step remains.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@KailasMahavarkar KailasMahavarkar merged commit 37edbb0 into main Apr 21, 2026
4 checks passed
@KailasMahavarkar KailasMahavarkar deleted the feat/corpus-design-tokens-step-2 branch April 21, 2026 20:31
KailasMahavarkar added a commit that referenced this pull request Apr 22, 2026
Destructive reset of repo tree to 62f487e (feat: expand platform support to 12 IDEs/CLIs with format-aware patching) from 2026-04-15.

Wipes all work merged to main after 62f487e including PRs #63..#92: docker-primary fixes, topology manifest introduction, routing/artifact contracts, workspace-first routing, all corpus-backed slice PRs (#81..#90), corpus/tests removal (#91), MCP runtime deletion + topology enforcement (#92).

Tree equals 62f487e exactly. This is a destructive reset expressed as a single forward commit because branch protection on main forbids non-fast-forward push; the admin-merge path is used instead.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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