react-vite-dashboard
What it does
This skill builds dashboard web apps from Stitch screens using React, Vite and data-loading tools. It is for frontend developers making data-heavy admin or analytics screens.
When to use it
- βWhen you want a data dashboard built from a Stitch design.
- βWhen your dashboard needs data loaded and refreshed from an API.
- βWhen you want colors and spacing to follow a DESIGN.md file.
Skill link
https://github.com/google-labs-code/stitch-skills/blob/main/plugins/stitch-build/skills/react-vite-dashboard/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βBuild a React and Vite dashboard from my Stitch screen, loading the sales numbers from our API.β
5 new skills a week. 1 minute to read.
How it works
It downloads the Stitch screen, maps the design tokens to CSS variables, and splits the code into components, pages and data hooks.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Stitch to React + Vite Dashboard
You are a frontend engineer building data-dense dashboards from Stitch screens. Target stack: React 18, Vite, TypeScript, TanStack Query, React Router, and optional ethers v6 or viem for on-chain reads.
Prerequisites
- Stitch MCP configured (setup guide)
- A project
DESIGN.md(see thedesign-mdskill) for token fidelity - Vite + React + TypeScript scaffold (
npm create vite@latest)
Workflow
- Discover MCP prefix β run
list_tools, note the Stitch prefix (e.g.stitch:). - Fetch screen β
[prefix]:get_screenwith project and screen IDs. - Download assets β persist HTML/screenshot under
.stitch/designs/{screen}.htmland.png. - Read DESIGN.md β map
colors.*,typography.*,spacing.*to CSS variables insrc/index.css. - Generate components β split into
src/components/,src/pages/,src/hooks/. - Wire data β use TanStack Query for async fetches; keep presentational components pure.
HTML β React mapping
| Pattern | Implementation |
|---|---|
| Layout grid / flex | Tailwind utilities or CSS modules aligned to DESIGN.md spacing tokens |
| Cards / panels | <section> with tokenized border-radius and elevation fallbacks for forced-colors |
| Tables | Semantic <table> or TanStack Table; never div-only grids for tabular data |
| Buttons | <button type="button"> with visible focus ring (preserve browser default unless DESIGN.md defines focus tokens) |
| Forms | <label htmlFor> + <input id>; associate errors with aria-describedby |
| Loading | Skeleton components; aria-busy on containers during fetch |
| Wallet connect | Isolate in WalletProvider; never embed private keys in generated code |
DESIGN.md integration
/* src/index.css β example token bridge */
:root {
--color-primary: /* from DESIGN.md colors.primary */;
--font-body: /* typography.body-md.fontFamily */;
}
Run the design.md linter locally before shipping UI:
npx @google/design.md lint DESIGN.md
Web3 dashboard conventions
- Read-only contract calls via
useReadContract(viem/wagmi) or ethersContract+ TanStack QueryqueryFn. - Format token amounts with
formatUnits; show network name and chain ID in settings footer. - Surface transaction errors in plain language; link to block explorer when
txHashexists. - Gas-sensitive flows: batch reads, avoid redundant
eth_callin render loops.
File structure
src/
βββ components/ # Presentational UI from Stitch
βββ pages/ # Route-level screens
βββ hooks/ # useQuery wrappers, wallet hooks
βββ lib/ # ABI helpers, formatters
βββ styles/ # Token CSS variables
Quality checklist
- WCAG 2.2 AA: contrast from DESIGN.md component pairs passes linter
- Keyboard navigable: focus order matches visual order
- Responsive: test at 375px and 1280px widths
- No secrets in repo: RPC URLs from env (
VITE_*prefix only for public endpoints) - TypeScript strict: no
anyon contract ABIs
Stitch docs note
When following links on stitch.withgoogle.com/docs, use the full https://stitch.withgoogle.com/docs/... URL if relative navigation redirects incorrectly.
FAQ
What is TanStack Query?
It is a library that loads, caches and refreshes data for React screens.
Do I need a DESIGN.md file?
The skill works best with one, since it uses the file to match colors, type and spacing.
Does it support blockchain data?
Yes, it mentions optional support for on-chain reads with ethers or viem.
Details
Original description by the author
Convert Stitch designs into production React + Vite dashboards with TanStack Query, accessible tokens from DESIGN.md, and Web3-ready patterns (ethers/viem).
Popularity
- GitHub stars
- 8.7k
- Ranking position
- #12339
- License
- Apache-2.0
- Updated
- 8/17/2026
Comments
- β¦
More skills from this repository
stitch::react-components
8.7kHelps your agent turn Stitch designs into React and Vite components, or update existing components to match the latest design, with checks.
stitch::react-native
8.7kHelps your agent convert Stitch web designs into React Native components for phone apps, or update existing mobile screens to match a newer design.
shadcn-ui
8.7kHelps your agent find, install and customize shadcn/ui components, copy-in interface pieces built with Radix or Base UI and Tailwind CSS.
stitch::code-to-design
8.7kHelps your agent move an existing web app, such as React, Vue or Angular, into a Stitch design so you can keep improving it there.
Similar skills
angular-developer
280kHelps your agent create Angular code and give project structure advice. Useful for starting new projects, creating code parts, or improving performance and accessibility.
frontend-a11y
280kHelps your agent make web interfaces accessible to everyone. It ensures websites and apps work well with screen readers and keyboard navigation.
frontend-patterns
280kHas your agent apply modern patterns in frontend development. It optimizes performance, manages state, and follows best practices in React and Next.js.