Back to guide/General Productivity

React Component Generation

Giving v0 exact design tokens (colors, radius, font weights, spacing) produces consistent output that matches your design system instead of random defaults.

v0-promptscomponent_namecomponent_descriptionprimary_color
Edit View
Prompt
Create a {{component_name}} React component using shadcn/ui and Tailwind CSS.\n\nDescription: {{component_description}}\n\nDesign specs:\n- Color palette: {{primary_color}} primary, neutral grays for backgrounds\n- Border radius: 8px on cards, 6px on buttons and inputs\n- Font: Inter or system sans-serif, 14px base, 600 weight for headings\n- Spacing: 16px padding inside cards, 24px gap between sections\n\nStates to include:\n- Default / idle\n- Hover (subtle background shift + shadow)\n- Loading (skeleton placeholder)\n- Empty (friendly illustration or message)\n\nMake it fully responsive. Use TypeScript with proper prop types.

Variables to customize

{{component_name}}{{component_description}}{{primary_color}}

Why this prompt works

Giving v0 exact design tokens (colors, radius, font weights, spacing) produces consistent output that matches your design system instead of random defaults.

Save this prompt to your library

Organize, version, and access your best prompts across ChatGPT, Claude, and Cursor.