Style System Component
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.
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
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 Optimization
One-click improvement with structure analysis and pattern suggestions.
Version History
Track every edit. Compare versions side-by-side with word-level diffs.
Folders & Tags
Organize your library with nested folders, tags, and drag-and-drop.
$ npm i -g @promptingbox/mcpUse 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.