A testing sandbox for generating Thanx-styled design prototypes from PRDs using Claude Code. Output is an HTML prototype for design review — not production React code. When a design is approved, implement it in React using the tokens as reference.
| File | Purpose |
|---|---|
thanx-design-tokens.json |
Colors, spacing, typography tokens |
patterns.md |
Component patterns and usage rules |
typography-styles.md |
Type scale and font guidelines |
examples/ |
Reference prototype outputs |
app/ |
Next.js app — React components + Plasmic Studio integration |
Requirements: Claude Code installed.
-
Clone the repo:
git clone https://github.com/thx-reno/ai-design-sandbox.git cd ai-design-sandbox -
Open in Claude Code:
claude
-
If extending an existing page → paste a screenshot of the current page into the chat before your PRD
-
Paste your PRD into the chat
-
Claude generates a
.htmldesign prototype in/examples -
Open it in your browser, review, and paste feedback to iterate
-
When the design is approved → implement it in React using
thanx-design-tokens.jsonas your token reference
See examples/reward-restrictions-ui.html — generated from the Reward Restrictions PRD. Open it directly in any browser, no build step needed.
The app/ directory is a Next.js app with 11 reusable React components (Button, Input, Select, Textarea, Badge, Table, Drawer, Checkbox, Toggle, Radio, FormField) connected to Plasmic Studio for visual composition.
cd app
npm install
npm run devhttp://localhost:3000— component sandboxhttp://localhost:3000/plasmic-host— Plasmic Studio app host
- Open Plasmic Studio and open the Thanx project
- Go to App Settings → App host
- Set the URL to
http://localhost:3000/plasmic-host - All 11 components appear in the Insert → Code Components panel
After composing layouts in Plasmic Studio, pull them to the repo:
cd app
npm run syncThis generates files in app/components/plasmic/. Commit them alongside any component changes.
After reviewing a prototype, give feedback as:
- Text — paste directly into Claude Code
- Annotated screenshot — use CleanShot X or macOS Preview to annotate, paste the image
- Voice notes — record with Whisper, paste the transcript
Claude reads the feedback, triages changes, and updates the prototype in one pass.