Back to Skills

react-vite-dashboard

Convert Stitch designs into production React + Vite dashboards with TanStack Query, accessible tokens from DESIGN.md, and Web3-ready patterns (ethers/viem).

8,043stars1,081forksUpdated 8/14/2026

Security Assessment

Safe(95/100)
Security Score95/100

About react-vite-dashboard

This skill converts Google Stitch designs into production React + Vite dashboards, targeting a modern data-dense frontend stack: React 18, Vite, TypeScript, TanStack Query, and React Router, with optional read-only Web3 integration via ethers v6 or viem. It solves the design-to-code handoff problem for dashboards by walking through discovering the Stitch MCP tool prefix, fetching a screen, persisting the HTML and screenshot assets, and mapping design tokens from a project DESIGN.md into CSS variables.

Its guidance emphasizes accessible, semantic implementation: an HTML-to-React mapping table (semantic tables over div grids, labeled form inputs with aria-describedby errors, skeleton loading with aria-busy), a DESIGN.md token bridge, and a quality checklist covering WCAG 2.2 AA contrast, keyboard navigability, responsive breakpoints at 375px and 1280px, and TypeScript strict mode. It recommends running the DESIGN.md linter (npx @google/design.md lint) before shipping UI. For Web3 dashboards it prescribes read-only contract calls (useReadContract or ethers Contract with TanStack Query), formatting token amounts, and surfacing transaction errors in plain language.

Notably the skill embeds security-conscious guidance: it explicitly warns never to embed private keys in generated code, to isolate wallet connection in a WalletProvider, to keep secrets out of the repo, and to only use VITE_-prefixed env vars for public RPC endpoints. Target users are frontend engineers building dashboards from Stitch screens, including Web3 portfolio and analytics interfaces. Typical use cases are generating tokenized dashboard components, wiring data fetches with TanStack Query, and adding read-only on-chain data displays.

FAQ

What stack does this skill target?

React 18, Vite, TypeScript, TanStack Query, and React Router, with optional ethers v6 or viem for read-only on-chain reads. It builds data-dense dashboards from Stitch screens.

What are the prerequisites?

A configured Stitch MCP, a project DESIGN.md for design-token fidelity (via the design-md skill), and a Vite + React + TypeScript scaffold created with npm create vite@latest.

How are design tokens applied?

It reads DESIGN.md and maps colors, typography, and spacing to CSS variables in src/index.css, and recommends running the DESIGN.md linter (npx @google/design.md lint) before shipping UI to check contrast and token pairs.

How does it handle Web3 and wallets safely?

It uses read-only contract calls via useReadContract or ethers with TanStack Query, isolates wallet connection in a WalletProvider, and explicitly instructs never to embed private keys in generated code and to keep RPC URLs in public VITE_-prefixed env vars only.

What accessibility standards does it enforce?

Its quality checklist targets WCAG 2.2 AA contrast, keyboard-navigable focus order, responsive layouts at 375px and 1280px, semantic tables, labeled form inputs, and forced-colors fallbacks.

All Files

2 files
SKILL.md3.6 KB
View
README.md0.6 KB
View

Install react-vite-dashboard

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill