Transform Kiro into an expert UI/UX developer capable of building accessible, modern, and design-system-compliant user interfaces.
This is an early attempt at creating a Kiro Power (v0.1.0). It's ready to be used and provides comprehensive UI development guidance, but we're actively seeking contributions, refinements, and polishing touches from the community. If you encounter issues or have ideas for improvements, please open an issue or submit a pull request!
- Overview
- Features
- Installation
- Quick Start
- Usage Examples
- MCP Server Integration
- Steering Files
- Examples
- Troubleshooting
- Contributing
- License
The UI Development Power provides comprehensive guidance for building production-ready user interfaces with a focus on accessibility, modern design patterns, and best practices. Whether you're building a simple form or a complex design system, this power gives Kiro the expertise to help you create beautiful, accessible, and performant UIs.
- Accessibility-First: Automatically ensures WCAG 2.2 Level AA compliance in all generated code
- Component Library Expertise: Recommends the best libraries (Chakra UI, Radix UI, MUI, etc.) for your needs
- Design-to-Code: Seamlessly converts Figma designs to production-ready React components
- Responsive Design: Implements mobile-first patterns that work across all devices
- Automated Testing: Integrates Playwright for visual testing and Lighthouse for accessibility audits
- Performance Optimization: Builds fast, efficient UIs with lazy loading and optimized animations
- β WCAG 2.2 Level AA Compliance - Automatic accessibility best practices
- β 12 Specialized Steering Files - Context-aware guidance for every UI challenge
- β 3 MCP Server Integrations - Figma, Playwright, and Lighthouse
- β Component Library Recommendations - Expert guidance on choosing the right tools
- β Design System Support - Create and maintain consistent design systems
- β Mobile-First Responsive Design - Layouts that work on all devices
- β Form Design Patterns - Accessible, user-friendly forms with validation
- β Performance Optimization - Fast, efficient UI implementations
- β Visual Regression Testing - Automated screenshot comparison
- β Accessibility Audits - Automated WCAG compliance checking
- Frameworks: React, Vue, Svelte, and more
- Component Libraries: Chakra UI, Radix UI, Headless UI, MUI, shadcn/ui, Ant Design, Fluent UI
- Styling: Tailwind CSS, CSS Modules, styled-components, Emotion
- Build Tools: Vite, Next.js, Create React App, Remix
- Testing: Playwright, Lighthouse, axe-core
- Node.js 18 or higher - Download here
- Kiro IDE - Get Kiro
- npm, yarn, or pnpm - Package manager (comes with Node.js)
- Open Kiro and navigate to the Powers panel
- Search for "UI Development Expert" or use the command palette
- Click Install to add the power to your workspace
Alternatively, you can manually install by cloning this repository into your Kiro powers directory:
# Clone the repository
git clone https://github.com/your-org/ui-development-power.git
# Navigate to your Kiro powers directory
cd ~/.kiro/powers/
# Copy the power
cp -r /path/to/ui-development-power ./ui-developmentThe power includes three MCP servers for enhanced functionality:
Access Figma design files and extract components:
# Get your Figma API token from:
# https://www.figma.com/developers/api#access-tokens
# Set the environment variable
export FIGMA_API_KEY="your_figma_api_token_here"For browser automation and visual testing:
# Install Playwright browsers
npx playwright installFor accessibility and performance audits (no setup required):
# Lighthouse will be automatically installed via npxOpen Kiro and activate the UI Development Power. You'll be guided through an onboarding process:
Step 1: Environment validation (Node.js version check)
Step 2: MCP server configuration
Step 3: Project context gathering
Step 4: Automated hook setup
Try asking Kiro:
"Help me build an accessible login form with email and password fields"
Kiro will automatically:
- Load the relevant steering files (accessibility-standards.md, form-design-patterns.md)
- Generate WCAG-compliant code
- Include proper labels, ARIA attributes, and keyboard navigation
- Implement inline validation with helpful error messages
Check out the examples directory for complete, runnable code:
- Accessible Form - Complete form with validation
- Responsive Layout - Mobile-first responsive design
- Figma to React - Design-to-code workflow
Ask Kiro:
"I need to build a dashboard with data tables and charts. Which component library should I use?"
Kiro will:
- Analyze your requirements (enterprise features, data visualization)
- Recommend Ant Design or Fluent UI
- Provide integration steps
- Show code examples
Ask Kiro:
"Run an accessibility audit on my login page at http://localhost:3000/login"
Kiro will:
- Use the Lighthouse MCP server
- Run WCAG 2.2 Level AA compliance checks
- Report violations with specific fixes
- Provide code examples for remediation
Ask Kiro:
"Convert this Figma design to a React component: [Figma URL]"
Kiro will:
- Access the Figma file via MCP server
- Extract design tokens (colors, spacing, typography)
- Generate React component code
- Apply your design system tokens
- Ensure accessibility compliance
Ask Kiro:
"Create a responsive navigation bar that collapses to a hamburger menu on mobile"
Kiro will:
- Load responsive-design-patterns.md steering file
- Generate mobile-first CSS
- Implement accessible hamburger menu
- Include keyboard navigation
- Use appropriate breakpoints
Ask Kiro:
"Add inline validation to my signup form with real-time feedback"
Kiro will:
- Load form-design-patterns.md steering file
- Implement accessible error messages
- Add ARIA live regions for screen readers
- Use appropriate input types
- Provide helpful validation feedback
Capabilities:
- Fetch design file structure and components
- Extract design tokens (colors, typography, spacing)
- Generate design system rules
- Access component specifications
Usage:
"Get the color palette from my Figma design system"
"Extract spacing tokens from this Figma file"
"Show me all button components in the design file"
Capabilities:
- Capture screenshots across different devices
- Visual regression testing
- Cross-browser testing
- Automated UI testing
Usage:
"Take a screenshot of my homepage on mobile and desktop"
"Run visual regression tests on the login page"
"Test my form across Chrome, Firefox, and Safari"
Capabilities:
- WCAG compliance checking
- Performance metrics
- SEO analysis
- Best practices validation
Usage:
"Run a Lighthouse audit on http://localhost:3000"
"Check accessibility compliance for my dashboard"
"Analyze performance metrics for the homepage"
The power includes 12 specialized steering files that load automatically based on your questions:
| Steering File | Topics Covered | When It Loads |
|---|---|---|
| ui-design-principles.md | Fundamental UI/UX concepts, visual hierarchy, user-centered design | Default fallback for general UI questions |
| accessibility-standards.md | WCAG 2.2 Level AA requirements, ARIA attributes, semantic HTML | Keywords: accessibility, a11y, wcag, screen reader |
| accessibility-testing.md | Testing tools (axe-core, Lighthouse), automated checks | Keywords: accessibility testing, audit |
| Steering File | Topics Covered | When It Loads |
|---|---|---|
| component-libraries.md | Chakra UI, Radix UI, MUI, shadcn/ui, Ant Design, Fluent UI comparison | Keywords: component library, chakra, radix, mui |
| design-systems-guide.md | Design tokens, color palettes, typography scales, consistency | Keywords: design system, design tokens |
| color-typography-spacing.md | Visual design tokens, color theory, type scales | Keywords: color, typography, spacing |
| Steering File | Topics Covered | When It Loads |
|---|---|---|
| figma-to-code-workflow.md | Design-to-code process, token extraction, component mapping | Keywords: figma, design, mockup |
| responsive-design-patterns.md | Mobile-first principles, breakpoints, responsive images | Keywords: responsive, mobile, breakpoint |
| form-design-patterns.md | Form UX, validation, error handling, input types | Keywords: form, input, validation |
| micro-interactions.md | Animations, transitions, performant motion | Keywords: animation, transition, micro-interaction |
| Steering File | Topics Covered | When It Loads |
|---|---|---|
| browser-testing-workflow.md | Cross-browser testing, visual regression, Playwright | Keywords: testing, playwright, visual regression |
| performance-optimization.md | Image optimization, lazy loading, virtualization | Keywords: performance, optimization, slow |
The power includes three complete, runnable examples:
A complete form implementation demonstrating:
- Proper label associations
- Inline validation with error messages
- ARIA live regions for screen readers
- Keyboard navigation
- Color contrast compliance
A mobile-first responsive layout showing:
- Flexible grid system
- Responsive breakpoints
- Mobile-optimized navigation
- Responsive images with srcset
- Touch-friendly interactive elements
A complete Figma-to-code workflow demonstrating:
- Design token extraction
- Component mapping
- Design system integration
- Accessibility compliance
- Production-ready code
Problem: Your Node.js version is below 18.
Solution:
# Check your current version
node --version
# Download Node.js 18+ from:
# https://nodejs.org/
# Or use nvm to upgrade:
nvm install 18
nvm use 18Problem: Invalid or missing FIGMA_API_KEY.
Solution:
# Get a new API token from Figma:
# https://www.figma.com/developers/api#access-tokens
# Set the environment variable
export FIGMA_API_KEY="your_token_here"
# For permanent setup, add to your shell profile:
echo 'export FIGMA_API_KEY="your_token_here"' >> ~/.zshrc
source ~/.zshrcProblem: Playwright browser binaries are missing.
Solution:
# Install all browsers
npx playwright install
# Or install specific browsers
npx playwright install chromium
npx playwright install firefox
npx playwright install webkitProblem: Invalid URL or network error.
Solution:
- Ensure the URL is valid and starts with
http://orhttps:// - Check that your development server is running
- Verify network connectivity
- Try with a simpler page first
# Test with a simple page
"Run Lighthouse audit on http://localhost:3000"Problem: Steering file missing or corrupted.
Solution:
# Verify all steering files exist
ls -la steering/
# Reinstall the power if files are missing
# Or restore from the repositoryProblem: MCP server failed to start or timed out.
Solution:
# Check if npx is working
npx --version
# Try running the MCP server manually
npx -y figma-developer-mcp --stdio
# Clear npx cache if needed
rm -rf ~/.npm/_npxIf you encounter issues not covered here:
- Check the Issues - Someone may have already reported it
- Open a new issue - Provide details about your environment and the problem
- Join the discussion - Ask questions in GitHub Discussions
We welcome contributions! See CONTRIBUTING.md for guidelines.
- Fork the repository
- Create a feature branch:
git checkout -b feature/new-steering-file - Make your changes
- Test thoroughly
- Submit a pull request
- New steering files - Add guidance for new UI topics
- Example improvements - Enhance existing examples or add new ones
- Documentation - Improve clarity and add more use cases
- Bug fixes - Fix issues and improve reliability
- MCP server integrations - Add new tool integrations
This project is licensed under the MIT License - see the LICENSE file for details.
- WCAG Guidelines - W3C Web Accessibility Initiative
- Component Libraries - Chakra UI, Radix UI, MUI, and all the amazing open-source projects
- MCP Servers - Figma, Playwright, and Lighthouse teams
- Kiro Community - For feedback and contributions
- Documentation: Full documentation
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: support@kiro.ai
Built with β€οΈ for the Kiro community
Ready to build amazing UIs? Install the power and start creating accessible, beautiful, and performant user interfaces today!