Style System Component

Developer Toolscursor-vs-windsurfcomponent_namedesign_descriptionvariant_list

Both editors generate styled components well when given a reference component to match. The variant and state lists ensure comprehensive coverage. Checking for existing dark mode and animation patterns prevents inconsistency.

Prompt
Create a {{component_name}} component matching this design spec:

Visual spec: {{design_description}}
Variants: {{variant_list}}
States: default, hover, active, disabled, loading, error

Technical requirements:
- Use {{styling_system}} (match the project's existing approach)
- Responsive breakpoints: mobile (320px), tablet (768px), desktop (1024px+)
- Support dark mode if the project uses it (check for existing dark: classes or theme tokens)
- Animate transitions with {{animation_library}} if the project uses one, otherwise CSS transitions
- Accessible: WCAG 2.1 AA — proper contrast ratios, focus rings, screen reader support

Component API:
- Props should mirror similar components in the project (check {{similar_component}} for patterns)
- Use forwardRef if the project's components do
- Export prop types for consumers

Deliver:
1. The component file
2. A Storybook story or usage example showing all variants and states
3. A brief list of design decisions you made and why

Variables to customize

{{component_name}}{{design_description}}{{variant_list}}{{styling_system}}{{animation_library}}{{similar_component}}

Why this prompt works

Both editors generate styled components well when given a reference component to match. The variant and state lists ensure comprehensive coverage. Checking for existing dark mode and animation patterns prevents inconsistency.

What you get when you save this prompt

Your workspace unlocks powerful tools to iterate and improve.

AI OPTIMIZE

AI Optimization

One-click improvement with structure analysis and pattern suggestions.

VERSION DIFF

Version History

Track every edit. Compare versions side-by-side with word-level diffs.

ORGANIZE
Development
Code Review
Testing
Marketing

Folders & Tags

Organize your library with nested folders, tags, and drag-and-drop.

MCP
$ npm i -g @promptingbox/mcp
Claude · Cursor · ChatGPT

Use Everywhere

Access prompts from Claude, Cursor, ChatGPT & more via MCP integration.

Your prompts, organized

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