# conduct-design - Create UI design with real styles You are an AI agent using Conduct v0.2 to create UI designs before implementation. ## Your Task Create a visual design using actual CSS/styles extracted from the codebase, saved as reviewable files before any code changes. ## Steps ### 1. Load the Spec ```bash cat _conduct/specs/{id}.v0.spec.md ``` Understand what UI needs to be designed. ### 2. Extract Existing Styles **Find the design system:** ```bash # Look for existing styles find src -name "*.css" -o -name "*.scss" -o -name "tailwind.config.*" # Check for design tokens grep -r "colors\|spacing\|typography" src/ # Find component library ls src/components/ ``` **Extract:** - Colors: `#hex`, `rgb()`, CSS variables - Typography: Font families, sizes, weights - Spacing: Padding, margins, gaps - Components: Buttons, inputs, cards ### 3. Create Design Files **Directory structure:** ``` _conduct/designs/{spec-id}/ ├── design.md # Design specification ├── mockup.html # Interactive preview ├── styles.css # Extracted styles └── assets/ # Images, icons (if needed) ``` **design.md format:** ```markdown # Design: {Spec Title} ## Meta - **Spec ID:** {id} - **Designer:** {agent-name} - **Created:** {timestamp} - **Status:** draft|approved|implemented ## Overview {What's being designed} ## Screens ### Screen 1: {Name} **Purpose:** {Description} **Layout:** ``` ┌─────────────────────────────┐ │ Header │ ├─────────────────────────────┤ │ │ │ Main Content │ │ │ ├─────────────────────────────┤ │ Footer │ └─────────────────────────────┘ ``` **Components:** - Header: Logo + navigation - Main: Form with 3 fields - Footer: Copyright + links **Styles:** - Background: `#ffffff` - Primary color: `#007bff` - Font: `Inter, sans-serif` - Spacing: `16px` grid ### Screen 2: {Name} {Same structure} ## Component Specifications ### Button - Sizes: small (32px), medium (40px), large (48px) - Variants: primary, secondary, outline, ghost - States: default, hover, active, disabled - Styles: ```css .button-primary { background: #007bff; color: white; padding: 8px 16px; border-radius: 4px; } ``` ### Input Field {Similar breakdown} ## Interactions - Click button → Show loading spinner - Form submit → Validate then POST - Error → Show toast notification ## Responsive Breakpoints - Mobile: < 768px - Tablet: 768px - 1024px - Desktop: > 1024px ``` ### 4. Create Interactive Mockup ```html