home / skills / dasien / claudemultiagenttemplate / web-ui-design

This skill helps you design responsive web interfaces using mobile-first layouts, accessibility principles, and reusable components for modern UX.

npx playbooks add skill dasien/claudemultiagenttemplate --skill web-ui-design

Review the files below or copy the command above to add this skill to your agents.

Files (1)
SKILL.md
2.3 KB
---
name: "Web UI Design"
description: "Design responsive web interfaces using modern UX principles, accessibility standards, and mobile-first approaches"
category: "ui-design"
required_tools: ["Read", "Write", "WebSearch", "WebFetch"]
---

# Web UI Design

## Purpose
Design modern, responsive web interfaces using HTML/CSS/JavaScript frameworks, following current UX best practices and accessibility standards.

## When to Use
- Creating web application interfaces
- Designing responsive layouts
- Planning component hierarchies
- Organizing page navigation

## Key Capabilities
1. **Responsive Design** - Create layouts that work on all screen sizes
2. **Component Thinking** - Break UI into reusable components
3. **Accessibility** - Ensure WCAG compliance and screen reader support

## Approach
1. Design mobile-first, then scale up
2. Use grid/flexbox for responsive layouts
3. Break UI into reusable components
4. Follow accessibility guidelines (ARIA, semantic HTML)
5. Ensure color contrast and keyboard navigation
6. Provide loading states and error feedback

## Example
**Context**: User profile page
````html
<!-- Mobile-first responsive design -->
<div class="profile-container">
  <header class="profile-header">
    <img src="avatar.jpg" alt="User avatar" class="avatar">
    <h1>John Doe</h1>
  </header>
  
  <section class="profile-info">
    <div class="info-grid">
      <div class="info-item">
        <label>Email</label>
        <span>[email protected]</span>
      </div>
      <div class="info-item">
        <label>Role</label>
        <span>Developer</span>
      </div>
    </div>
  </section>
  
  <footer class="profile-actions">
    <button class="btn-primary">Edit Profile</button>
    <button class="btn-secondary">Change Password</button>
  </footer>
</div>

<style>
.profile-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

@media (max-width: 768px) {
  .info-grid { grid-template-columns: 1fr; }
}
</style>
````

## Best Practices
- ✅ Mobile-first responsive design
- ✅ Semantic HTML elements (header, nav, main, footer)
- ✅ Accessible forms with labels and ARIA attributes
- ✅ Loading states and error messages
- ❌ Avoid: Fixed pixel widths
- ❌ Avoid: Relying only on color for information

Overview

This skill designs modern, responsive web interfaces using mobile-first approaches, current UX principles, and accessibility standards. It focuses on practical component-based layouts, semantic HTML, and usable interactions to create interfaces that work across devices and assistive technologies.

How this skill works

The skill inspects design goals and content structure, then proposes mobile-first layouts using CSS Grid and Flexbox. It breaks interfaces into reusable components, specifies ARIA and semantic markup for accessibility, and defines loading, error, and state patterns to improve UX and performance.

When to use it

  • Building web application pages or single-page app views
  • Converting wireframes into responsive, production-ready layouts
  • Defining component hierarchies and reusable UI primitives
  • Improving accessibility and keyboard navigation for existing UIs
  • Creating consistent mobile-first designs that scale to desktop

Best practices

  • Design mobile-first, then adapt layouts for larger screens
  • Use semantic HTML (header, main, nav, footer) and appropriate ARIA roles
  • Compose layouts with CSS Grid and Flexbox for robust responsiveness
  • Provide visible loading states, clear error feedback, and focus management
  • Ensure sufficient color contrast and never rely on color alone to convey information

Example use cases

  • Designing a responsive user profile or dashboard with componentized cards
  • Transforming a desktop-only page into a mobile-friendly layout using grid/flex techniques
  • Defining a form pattern with accessible labels, validation messaging, and keyboard flow
  • Creating a reusable header/navigation that collapses to a mobile menu
  • Specifying loading skeletons and error states for slow network conditions

FAQ

Do you follow accessibility standards?

Yes. Designs use semantic HTML, ARIA where appropriate, keyboard focus management, and WCAG contrast guidance.

How do you handle component reusability?

I break UIs into small, purposeful components with clear props/state boundaries and recommended CSS patterns for reuse.