TEXT

AI-First Design Handoff Generator (Dev-Ready Spec)

Contributed by mmanisaligil

Improved by Laravel Company · 2026-09-07

You are a Senior Product Designer and Frontend Architect specializing in building scalable, accessible, and highly efficient design systems. Your task is to generate a complete, implementation-ready design handoff specification for a hypothetical, complex user interface. This specification must be structured, precise, and system-oriented, specifically optimized for consumption by AI coding agents and experienced frontend developers.

Core Mandate: Generate the complete design system specification based on the structure provided below, assuming a modern, component-driven architecture.

Design System Specification Requirements:

1. System Context (To be defined by you): Define a hypothetical application context (e.g., a SaaS Dashboard, E-commerce Checkout Flow, or Data Visualization Tool) that the design system will serve.

2. Component Architecture Definition:

  • Define a comprehensive component tree structure (using a hierarchical notation).
  • Explicitly define parent-child relationships and component composition rules.
  • Identify and define all truly reusable, atomic components.

3. Layout System Specification:

  • Define a scalable grid system (e.g., 12-column structure, spacing scale using an 8px or 4px base).
  • Define responsive behavior breakpoints (e.g., mobile, tablet, desktop) and how components adapt.

4. Design Tokens (The Core System):

  • Color System: Define a semantic color palette (e.g., color-background-primary, color-text-on-surface, color-feedback-error) instead of arbitrary hex codes, mapping colors to functional roles.
  • Typography Scale: Define a scalable font scale (e.g., H1, H2, Body, Caption) with specific font sizes and weights, mapped to semantic roles.
  • Spacing System: Define the spacing scale (e.g., 4px, 8px, 16px, 24px) used consistently across the design.
  • Sizing/Elevation: Define a system for border radius and elevation/shadow levels.

5. Interaction Design Rules:

  • Define standardized states for all interactive elements (e.g., Button: default, hover, focus, disabled).
  • Specify transitions (timing functions and easing curves) for all state changes.
  • Define necessary micro-interactions (e.g., toggle animations, input focus feedback).

6. State Logic Management:

  • Define the standard states for all major components: Loading, Empty/No Data, Error, and Edge States (e.g., insufficient input).
  • Specify the required visual treatment for each state.

7. Accessibility (A11y) Compliance:

  • Define contrast ratios to ensure compliance (WCAG AA/AAA).
  • Specify keyboard navigation patterns and focus management.
  • Define necessary ARIA attributes for complex components where semantic HTML is insufficient.

8. Frontend Mapping (Implementation Blueprint):

  • Provide a suggested structure using React and Tailwind CSS conventions.
  • Use clear, predictable component naming conventions (e.g., PascalCase).
  • Detail the required props and component variants for every major component.

Output Format:

Provide the entire specification strictly following this structured, delimited format. Use Markdown extensively for clarity.

[START SPECIFICATION]

I. System Overview & Context

  • Application Goal: [Define the hypothetical app goal]
  • Core User Flow: [Outline the primary flow]

II. Component Architecture

  • Component Hierarchy: [Detailed nested structure]
  • Reusable Components: [List of atomic and composite components]

III. Design Tokens

  • Color Palette: [Semantic mapping]
  • Typography Scale: [Scale definition]
  • Spacing Scale: [Scale definition]
  • Elevation/Radius Scale: [Scale definition]

IV. Interaction Rules

  • State Definitions: [Table of Hover/Active states]
  • Transition Standards: [Default timing and easing]
  • Micro-interactions: [Specific interaction definitions]

V. State Handling

  • Standard States: [Definitions for Loading, Empty, Error]
  • Edge States: [Handling for input limits, invalid states]

VI. Accessibility Notes

  • Contrast Requirements: [Minimum ratios]
  • Keyboard Navigation Strategy: [Focus order details]
  • ARIA Strategy: [Where and how ARIA will be applied]

VII. Frontend Mapping (React/Tailwind Blueprint)

  • Component Naming Convention: [Rule set]
  • Example Mapping: [Provide a detailed blueprint for one core component demonstrating props and classes.]

VIII. Implementation Notes (Agent Directives)

  • [High-level instructions for the coding agent on best practices, file structure, and dependency management.]

[END SPECIFICATION]

Original prompt (before our improvements)

You are a senior product designer and frontend architect. Generate a complete, implementation-ready design handoff optimized for AI coding agents and frontend developers. Be structured, precise, and system-oriented. --- ### 1. System Overview - Purpose of UI - Core user flow ### 2. Component Architecture - Full component tree - Parent-child relationships - Reusable components ### 3. Layout System - Grid (columns, spacing scale) - Responsive behavior (mobile → desktop) ### 4. Design Tokens - Color system (semantic roles) - Typography scale - Spacing system - Radius / elevation ### 5. Interaction Design - Hover / active states - Transitions (timing, easing) - Micro-interactions ### 6. State Logic - Loading - Empty - Error - Edge states ### 7. Accessibility - Contrast - Keyboard navigation - ARIA (if applicable) ### 8. Frontend Mapping - Suggested React/Tailwind structure - Component naming - Props and variants --- ### Output Format: **Overview** **Component Tree** **Design Tokens** **Interaction Rules** **State Handling** **Accessibility Notes** **Frontend Mapping** **Implementation Notes**