4.8 KiB
Setting Up v0-UX/UI Architect in Roocode
This guide will help you set up and use the v0-UX/UI Architect persona in Roocode for efficient frontend development.
Setup Instructions
1. Initial Setup
-
Clone the BMAD-Method Repository
git clone https://github.com/bmadcode/BMAD-METHOD.git cd BMAD-METHOD -
Open in Roocode
- Launch Roocode
- Open the cloned BMAD-METHOD folder
- Navigate to
bmad-agent/personas/v0-ux-ui-architect.ide.md
-
Configure Roocode
- Ensure Roocode has access to your project files
- Set up any necessary extensions or settings
2. Persona Activation
-
Direct File Method
- Open
bmad-agent/personas/v0-ux-ui-architect.ide.mdin Roocode - Ask Roocode: "Embody this persona for my project"
- Open
-
IDE Orchestrator Method
- Open
bmad-agent/ide-bmad-orchestrator.md - Ask Roocode: "Activate the v0-UX/UI Architect persona"
- Open
3. Project Context Setup
For optimal results, provide the following context:
-
Project Structure Overview
- Use Roocode's project exploration features
- Or provide a brief description of your project structure
-
Tech Stack Information
- Share your package.json or describe your tech stack
- Highlight any specific libraries or frameworks you're using
Advanced Configuration
Roocode Visual Settings
Configure these settings for optimal visual development:
{
"roocode.visualFeedback": "enhanced",
"roocode.componentPreview": "realtime",
"roocode.designSystem": "auto-detect",
"bmad.visualPersona": "v0-ux-ui-architect"
}
Design System Integration
Create a .roocode/design-config.json file:
{
"designTokens": "./src/tokens/design-tokens.json",
"componentLibrary": "./src/components",
"personaPreferences": {
"v0-ux-ui-architect": {
"framework": "react",
"styling": "tailwind",
"accessibility": "wcag-aa"
}
}
}
Usage Guide
Basic Component Creation
-
Simple Component Request
Create a responsive card component with: - Image - Title - Description - Action button -
Component with Variants
Create a button component with: - Primary, secondary, and tertiary variants - Different sizes (sm, md, lg) - Loading state - Disabled state
Advanced Usage
-
Design System Integration
Create a modal component that follows our existing design system. It should have a header, body, footer, and close button. -
Multi-Component Creation
Create a form with: - Text input - Dropdown select - Checkbox group - Submit button All components should be reusable and follow accessibility best practices. -
Rapid Prototyping Roocode excels at rapid prototyping. Try:
Create a dashboard layout with navigation, stats cards, and a data table.
Roocode-Specific Tips
-
Leverage Visual Feedback
- Roocode's visual feedback loop is excellent for iterative development
- Try: "Create a component and show me how it would look with different data"
-
Component Library Integration
- Roocode works well with component libraries
- Example: "Create a form using our existing component library"
-
Rapid Iteration
- Use Roocode's quick feedback cycle for rapid iteration
- Try: "Let's iterate on this component to improve the mobile experience"
-
Visual Design Focus
- Roocode can help with visual design aspects
- Example: "Improve the visual hierarchy of this component"
Performance Optimization
Visual Rendering Performance
- Enable hardware acceleration for component previews
- Use Roocode's caching for faster iterations
- Configure optimal viewport settings for responsive design
Design Workflow Enhancement
- Set up automated design token synchronization
- Use Roocode's visual diff features for component changes
- Enable real-time collaboration features
Troubleshooting
Common Issues
-
Visual Rendering
- Problem: Components don't render as expected
- Solution: Provide more specific visual requirements or references
-
Component Library Compatibility
- Problem: Generated components don't match library patterns
- Solution: Provide examples from your component library
-
Iteration Confusion
- Problem: Iterations lose track of previous requirements
- Solution: Summarize all requirements when requesting iterations
Getting Help
If you encounter issues with the v0-UX/UI Architect persona in Roocode:
- Check the BMAD-Method documentation
- Join the BMAD-Method community
- Submit an issue on GitHub