docs: make the UI component approach an explicit Day-1 decision - #15
Merged
Conversation
The contracts assumed a headless foundation and every stack pack pinned Radix, so the choice between headless primitives, a copy-in component set, and a styled kit was never actually put to the user. - apps/frontend/CLAUDE.md gains a UI component approach section: ask before the first screen or component is built, record the answer under Learnings, and decide on how far the project's design guide sits from a kit's defaults. Four lines that presupposed a headless library now defer to it. - The design guide is hydrated per project rather than foundations-only. Its Components & reuse chapter said components were "deliberately absent"; it now carries the hydration rules and an empty Specimens section for the project to fill. - The five stack packs name Radix as their default instead of pinning it. vercel-ssr and enterprise additionally reject a styled kit built on runtime CSS-in-JS, which would pull the token boundary into a Client Component. - Day-1 step 6 sequences the decision, the token rebrand, the guide reconciliation, and opening the rendered guide for the user to review. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
What
The contracts assumed a headless UI foundation and all five stack packs pinned Radix, so the choice between headless primitives, a copy-in component set, and a styled kit was never put to the user. This makes it an explicit Day-1 decision and follows the consequences through the guide and the packs.
apps/frontend/CLAUDE.md— new UI component approach section: ask before the first screen or component is built, record the answer under Learnings, and decide on how far the project's design guide sits from a kit's defaults. Four lines that presupposed a headless library (Component structure, Accessibility baseline, Interaction feedback, Coding standards) now defer to it.vercel-csr,vercel-ssr,mern,django,enterprisename Radix as their default instead of pinning it.vercel-ssrandenterpriseadditionally reject a styled kit built on runtime CSS-in-JS, which would pull the token boundary into a Client Component.Notes
No new abstraction, dependency, or config key. Docs and one HTML file only.
Precedence: the packs previously bound Radix as a plain binding line, which would have overridden the new decision for an adopting project. They now express it as a default, so the base decision governs and a styled kit is recorded as a deviation.
Test plan
design-guide.htmlparsed for tag balance after editing: no unbalanced or mismatched tags.Known issue, not fixed here
Root
CLAUDE.md:158refers to "Day-1 step 11", but the checklist has 9 steps and Protectmainis step 9. Pre-existing; this change does not shift step numbering.🤖 Generated with Claude Code