Skill v1.0.0
currentLLM-judged scan90/100version: "1.0.0" name: v0-design description: 'Generates optimized v0.dev prompts for UI design — full pages, single components, design systems, or redesigns. Analyzes the project, adapts questions to context, researches user-specified design references, and outputs ready-to-copy prompts following Vercel''s three-part framework. Manual via /v0-design.' argument-hint: "<app-description, feature, component, or design-system>" disable-model-invocation: true allowed-tools: Read, Glob, Grep, Agent, WebSearch, WebFetch, Write, AskUserQuestion effort: medium phase: design feedback-profile: advisory catalog-order: 35
/v0-design — Generate v0.dev Design Prompts
Generate optimized prompts for v0.dev that produce consistent, production-ready UI designs. Supports full apps, single pages, individual components, design systems, and redesigns of existing UIs.
Role: Prompt Architect
Structure what v0 builds. Defer how it looks.
- Structural decisions (page order, layout type, content sections, states, interactions): yours
- Aesthetic decisions (colors, typography, spacing, shadows, design language): v0's
- Design references: research ONLY when the user explicitly names one. Do not independently research design systems, competitor UIs, or visual references.
The one exception: when the project clearly derives from a known product (e.g., notion-clone in package.json), mention it so v0 produces coherent output.
Arguments
/v0-design <description>
Examples:
/v0-design "student portal with dashboard, schedule, exams, grades"/v0-design "redesign our settings page"/v0-design "data table component with sorting and filtering"/v0-design "project-level design system — colors, typography, spacing"
If no argument is provided, ask what to design.
Gotchas
- Forgetting the component library — v0 invents its own components, inconsistent with your project. Always name shadcn/ui (or whatever the project uses) explicitly.
- Vague responsive behavior — v0 generates desktop-only or breaks on mobile. Specify breakpoints and layout changes.
- Skipping empty states — pages look great with data, blank/broken without it. Always describe empty, loading, and error states.
- Writing "use dark colors" instead of "dark mode variant" — v0 makes a dark-themed light mode, not an actual dark mode toggle.
- Generating all pages in one prompt — v0 combines everything into a single messy page. One page per prompt.
- Forgetting non-Latin fonts — Georgian/Chinese/Arabic text renders in fallback font. Specify font stack.
- Over-constraining colors/spacing in page/component prompts — let v0 choose within your structural framework. (In Design System mode, defining these IS the goal.)
- Researching design systems or references independently — only research when the user explicitly names a reference. v0 handles aesthetics.
- Using vague language — "make it look nice", "add some cards", "make it modern" produce poor results. Be specific about content, data, and interactions.
- Including backend logic in prompts — v0 generates UI only. No API calls, database queries, or server logic.
Step 1: Detect Mode
Determine the design mode from the argument and project state:
| Signal | Mode | Behavior | |
|---|---|---|---|
| No codebase exists | Greenfield | Recommend default stack (Next.js + shadcn/ui + Tailwind), ask about pages/audience | |
| Argument mentions "redesign" or existing pages exist | Redesign | Read current pages/components to understand what's being replaced | |
| Argument describes a single component (table, form, card) | Component | Generate a single component prompt, skip context message and multi-page flow | |
| Argument describes multiple pages | Multi-page | Full flow: context message + per-page prompts | |
| Argument mentions "design system", "theme", "tokens", "colors + typography", "styling" | Design System | Generate design system prompts — palette, typography, spacing, component styling. Skip page-prompt flow. |
Greenfield default stack: Next.js (App Router) + TypeScript + Tailwind CSS + shadcn/ui + lucide-react. Deviate only if the user specifies otherwise.
Step 2: Analyze the Project
For existing projects, read in order (stop when sufficient):
CLAUDE.md,README.md, orPLAN.md— project purpose, architecturepackage.json— framework, dependencies, component librarytailwind.config.ts/globals.css— theme colors, design tokens- Existing page files (
src/app/*/page.tsx) — current UI structure and patterns
Extract and translate:
- CSS variables → human-readable colors:
--primary: oklch(0.52 0.18 268)→ "deep indigo, similar to indigo-600" - Tailwind config → design tokens: border-radius scale, shadow scale, spacing scale
- Component patterns → layout vocabulary: "uses sidebar + card grid", "bottom nav with 3 tabs"
For redesigns, also read the specific pages being redesigned. Summarize the current layout, data displayed, and interactions so the prompt can say "replace the current tab-based schedule with a 5-column grid."
For design systems, focus on: tokens.css / globals.css (current CSS variables), tailwind.config.ts (current token scales), existing component files (current styling patterns), and any registry.json or shadcn theme configuration. Identify gaps: missing semantic tokens, inconsistent radius/shadow usage, no dark mode variables, incomplete component coverage.
For greenfield projects, skip to Step 3.
Step 3: Gather Context (Adaptive)
Ask clarifying questions using AskUserQuestion. ONE question at a time. Let each answer reshape the next question. Stop when enough context exists — do NOT ask all questions if earlier answers make them unnecessary.
Possible questions (choose based on what's still unknown):
- What pages/screens are needed?
- Who uses this app? On what device primarily?
- Any design references to match? (e.g., "like Linear", "like Notion")
- Should v0 design within your existing color palette, or choose its own?
- Any specific interaction patterns needed? (wizards, drag-drop, real-time)
- Mobile-first or desktop-first?
- Any non-English text? What language(s)?
For Design System mode, ask instead:
- What's the primary goal — a complete new design system, or refining the existing one?
- Are you setting up a v0 Design System registry for consistent generation, or do you want a visual design reference?
- What components need styling? (buttons, cards, inputs, tables, badges, modals, etc.)
If the user mentions a design reference (e.g., "like Linear"): Use WebSearch to research it. Search for "[app name] UI design" or "[app name] dashboard screenshot". Extract specific visual traits: layout structure, color temperature, typography weight, spacing density, border radius, shadow style. Translate these into concrete v0 instructions instead of just writing "like Linear."
Do NOT research design references, competitor UIs, or design systems unless the user explicitly names one.
2-4 questions max. If the argument already contains enough detail, skip directly to generation.
Step 4: Generate Context Message
Create a context message to paste FIRST in the v0 chat. This sets the design direction for all pages.
Template:
I'm building "[App Name]" — [one-line description]. It's a [framework] app with [component library] + [CSS framework].The app has these pages: [list ALL pages, including existing ones not being redesigned].I'll give you each page one by one. Design them as a cohesive app — same theme, consistent components across all pages. [Design direction: either specific traits from reference research, or "Pick the best color scheme you think works for [audience]."] Dark mode required on every page.[Special notes: language (with example text), mobile-first, RTL if applicable, user type]Ready? I'll start with [first page — pick the most visually complex one].
Rules:
- Under 150 words
- List ALL pages (even existing ones) so v0 designs consistently
- State component library explicitly (shadcn/ui, etc.)
- Include non-English language note with 2-3 example strings if applicable
- Mention RTL if the language requires it (Arabic, Hebrew)
- Recommend font stack for non-Latin scripts: "Georgian text uses Noto Sans Georgian", "Chinese uses Noto Sans SC"
For component mode: Skip the context message. Generate a single component prompt directly.
For design system mode: Skip the context message. Generate a design system prompt directly (see Step 5).
v0 ecosystem tip: If the user has a v0 project, suggest saving the context message as a v0 Instruction (v0 Settings → Instructions). This persists across all chats and eliminates re-pasting.
Step 5: Generate Page/Component/Design System Prompts
For each page:
Follow the three-part framework (800-1200 words per prompt):
Design [page description] for "[App Name]".[PRODUCT SURFACE — what the user sees and interacts with]Layout:- [Overall structure: sidebar + main, full-width, split-pane, etc.]- [Responsive: "2-column grid on desktop (md:grid-cols-2), single column on mobile"]Content:- [Element 1]: [exact data fields, text content in target language, states]- [Element 2]: [same level of detail]- [Empty state]: [what shows when no data — icon + message]- [Loading state]: [skeleton/spinner description if data-dependent]Interactions:- [Hover effects, click actions, expand/collapse, tooltips]- [Navigation: what links where][CONTEXT OF USE]- Used by [user type] on [device], primarily for [task]- [Frequency of use: daily check vs occasional config][CONSTRAINTS]Design requirements:- [Responsive behavior with specific breakpoints if needed]- Dark mode variant- [Mobile: bottom nav, safe-area padding, touch targets min 44px]- [Accessibility: color contrast, keyboard nav]- Use [component library] components: [name specific ones — Card, Badge, Table, etc.]- Use [CSS framework], [icon library], Next.js "use client"
For single components:
Shorter prompt (400-600 words), skip layout/navigation, focus on the component itself:
Design a [component type] component for "[App Name]".Data: [fields, types, example values]States: [loading, empty, error, populated]Interactions: [sort, filter, expand, select, hover]Variants: [compact vs expanded, light vs dark]Design: [specific shadcn/ui base component], [Tailwind], dark mode.
For design systems:
Single comprehensive prompt (800-1200 words):
Design a complete design system reference for "[App Name]" — [one-line description].The app uses [framework] + [component library] + [CSS framework].[If existing tokens: "Current theme uses these CSS variables: [list key variables with current values]. Refine and extend this system." If new: "Create a cohesive design system for [audience/domain]."]Generate a visual reference sheet showing:COLOR PALETTE:- Primary, secondary, accent, destructive colors with semantic tokens- Background and foreground scales (at least 3 levels each)- Border, ring, and muted variants- Format as CSS custom properties using shadcn/ui naming (--primary, --secondary, etc.)- Light AND dark mode values for every tokenTYPOGRAPHY:- Font family recommendations (with Google Fonts names)- Type scale: xs through 4xl with sizes, weights, and line-heights- Heading styles (h1-h4) and body text styles- [If non-Latin: "Include [language] font stack — e.g., Noto Sans Georgian"]SPACING & SHAPE:- Spacing scale (4px base, show common values)- Border radius scale (sm, md, lg, xl, full)- Shadow scale (sm, md, lg) for cards, dropdowns, modals- Border widths and stylesCOMPONENT STYLING:- Buttons: primary, secondary, outline, ghost, destructive — all states (hover, active, disabled, focus)- Cards: default, interactive (hover lift/border), nested- Inputs: default, focus, error, disabled- Badges: status variants (success, warning, error, info, neutral)- Tables: header, row, hover, striped variant- [Additional components from project: list specific ones]INTERACTION PATTERNS:- Hover transitions (duration, easing)- Focus ring style- Active/pressed states- Loading indicators (skeleton, spinner)Make every token copyable. Show visual swatches next to color values. Use shadcn/ui components for all examples.
Alternative path — v0 Design System registry: If the user wants consistent v0 generation across all chats (not just a visual reference), suggest setting up a v0 Design System registry instead:
- Fork the registry-starter template
- Customize
src/app/tokens.csswith the project's color tokens - Update
src/app/layout.tsxwith the project's font - Deploy and connect to v0 project settings
This is more work but produces infrastructure, not just a reference sheet. Ask which path the user prefers.
Page ordering strategy:
Generate the most visually complex page first (usually dashboard or main content page). This establishes the richest design language. Simpler pages inherit the established style.
Shared components:
If multiple pages share navigation (sidebar, header, bottom nav), include it in the FIRST page prompt. For subsequent pages, say: "Use the same sidebar/header/bottom nav from the previous page."
Specialized patterns:
Multi-step forms/wizards: Describe all steps in one prompt. Specify step indicator style, navigation (back/next), validation behavior, conditional steps.
Data tables: Specify columns, sort/filter behavior, pagination, row actions, empty state. Name the Table component from shadcn/ui.
Charts/visualizations: Specify chart library (recharts for shadcn/ui). Describe chart type, axis labels, data format, tooltips, responsive behavior, empty state.
Mobile-first: Specify "design for 375px width as baseline." Include: bottom navigation, sheet drawers (not modals), swipe gestures, safe-area padding, touch targets ≥44px.
Step 6: Generate Iteration Prompts
Provide 3-5 specific follow-up prompts tailored to the generated pages (not generic). These should address the most common adjustments:
## Iteration PromptsIf the [page name] feels too busy:→ "Simplify [page name] — reduce to [N] cards, increase whitespace, remove [specific element]"If dark mode doesn't look right:→ "In dark mode, make the card backgrounds slightly lighter (bg-card) and reduce border opacity"If mobile layout is broken:→ "On mobile (<768px), stack all cards vertically, replace sidebar with bottom nav sheet"If the theme drifts between pages:→ "Match the style of [first page] — same card radius, shadow depth, color palette"
For design systems, provide iteration prompts like:
- "Add hover/focus/active states to all interactive components"
- "Make the color palette warmer/cooler — shift primary hue by 15 degrees"
- "Add a compact density variant for data-heavy views"
v0 Design Mode tip: For visual tweaks (colors, spacing, typography adjustments), suggest using v0's Design Mode instead of re-prompting — it's faster and doesn't cost credits.
Step 7: Verify and Output
Before writing, verify each prompt against this checklist:
- [ ] Specific component names and data fields (not vague)
- [ ] Responsive behavior with breakpoint (mobile + desktop)
- [ ] Dark mode explicitly mentioned
- [ ] Actual text content in target language (spelled out, not "Georgian text")
- [ ] Empty/loading/error states for data-dependent sections
- [ ] Interaction descriptions (hover, click, expand, tooltip)
- [ ] Between 800-1200 words (pages/design systems) or 400-600 words (components)
- [ ] Component library + CSS framework specified
- [ ] No conflicting instructions between prompts
- [ ] Page ordering: most complex first
- [ ] Shared components referenced (not re-described) after first page
- [ ] Accessibility: color contrast mention, touch targets for mobile
- [ ] Font stack specified for non-Latin scripts
Write to docs/v0-prompts.md (or the filename the user specifies).
Output structure for pages/components:
# v0.dev Design Prompts — [App Name]## How to Use1.Go to v0.dev → start a NEW chat (or open your v0 project)2.Paste the Context Message first (or save it as a v0 Instruction for reuse)3.Paste each page prompt one at a time, in order4.Use iteration prompts if results need adjustment5.Use Design Mode (free) for visual tweaks — colors, spacing, typography6.Download zip after each page for backup## Context Message\`\`\`[context message]\`\`\`## Page 1: [Name] (generate first — establishes design language)\`\`\`[prompt]\`\`\`## Page 2: [Name]\`\`\`[prompt]\`\`\`## Iteration Prompts[tailored follow-ups]
Output structure for design systems:
# v0.dev Design System Prompts — [App Name]## How to Use1.Go to v0.dev → start a NEW chat2.Paste the design system prompt below3.Use Design Mode to fine-tune colors, typography, spacing visually4.Copy the generated token values into your project's globals.css / tokens.css5.For persistent v0 integration, set up a Design System registry (see below)## Design System Prompt\`\`\`[design system prompt]\`\`\`## Iteration Prompts[tailored follow-ups]## Next Steps: v0 Design System Registry (Optional)To make v0 use your design system automatically in all future chats:1.Fork vercel/registry-starter2.Replace tokens.css with your generated tokens3.Deploy and connect to your v0 project