
Web Design Builder
- 346 installs
- 56 repo stars
- Updated October 20, 2025
- rknall/claude-skills
web design builder is a Claude skill that generates accessible HTML5, CSS, and JavaScript web designs from specifications and optionally verifies them with Playwright MCP for developers building landing pages and prototy
About
web design builder is an rknall Claude skill that creates and refactors complete HTML5, CSS, and JavaScript web designs from specifications or natural-language descriptions. It gathers scope, framework preference—Vanilla HTML, Tailwind CSS, React, Vue, or Alpine.js—and accessibility targets, then produces semantic markup with ARIA landmarks, mobile-first responsive CSS Grid or Flexbox layouts, and progressive-enhancement JavaScript. When Playwright MCP is available, the skill automates WCAG-oriented checks, keyboard navigation tests, screenshots at 375px, 768px, and 1440px breakpoints, and functionality validation, then emits a structured verification report with prioritized fixes. Developers reach for it to spin up landing pages, SaaS marketing sites, form-heavy interfaces, or refactor legacy HTML/CSS/JS into WCAG 2.1 Level AA-compliant responsive designs without starting from a component library.
- web design builder
Web Design Builder by the numbers
- 346 all-time installs (skills.sh)
- +14 installs in the week ending Aug 5, 2026 (Skillselion tracking)
- Ranked #1,214 of 4,347 Backend & APIs skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/rknall/claude-skills --skill web-design-builderAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 346 |
|---|---|
| repo stars | ★ 56 |
| Last updated | October 20, 2025 |
| Repository | rknall/claude-skills ↗ |
How do you build accessible responsive HTML landing pages?
Use web design developer for development tasks
Who is it for?
Frontend developers prototyping landing pages, marketing sites, or component mockups who want semantic HTML output with optional automated accessibility verification.
Skip if: Teams standardizing on a specific component library like Nuxt UI or MUI when the task is library integration rather than bespoke HTML generation.
When should I use this skill?
A developer asks to create, mock up, or refactor a landing page, web app shell, or HTML/CSS/JS design with responsive and accessible requirements.
What you get
Complete HTML/CSS/JS design files, optional Playwright verification report, responsive screenshots, and prioritized accessibility fix recommendations.
- HTML/CSS/JS source files
- Verification report
- Responsive screenshots
By the numbers
- Targets WCAG 2.1 Level AA accessibility compliance minimum
- Tests three responsive breakpoints: 375px, 768px, and 1440px
- Supports 5 framework options including Tailwind CSS, React, and Vue
Files
Web Design Builder
This skill creates professional HTML5/JavaScript web designs from specifications, with automatic accessibility and functionality verification using Playwright MCP.
When to Use This Skill
Activate this skill when the user requests:
- Create a web design from a specification or description
- Build a landing page, website, or web application
- Create a design mockup or prototype
- Refactor or improve existing HTML/CSS/JavaScript code
- Build responsive web interfaces
- Create component libraries or design systems
- Generate accessible web designs with WCAG compliance
Core Workflow
Phase 1: Requirements Gathering
When a user requests a web design, start by understanding their needs:
1. Clarify the Design Scope
- What type of design? (landing page, dashboard, form, etc.)
- Target audience and use case
- Required features and functionality
- Content and copy (provided or placeholder?)
- Brand colors, fonts, or design system
- Responsive requirements (mobile-first?)
2. Technical Preferences
- Framework preference:
- Vanilla HTML/CSS/JS (simple, no dependencies)
- Tailwind CSS (utility-first, recommended for rapid development)
- React (component-based, for complex interactions)
- Vue (progressive framework)
- Alpine.js (lightweight reactivity)
- Browser support requirements
- Accessibility requirements (WCAG level)
- Performance constraints
3. Check Playwright MCP Availability
IMPORTANT: Before starting the design process, check if Playwright MCP is available:
// Check if mcp__playwright tools are available
// Look for tools like: mcp__playwright__navigate, mcp__playwright__screenshot, etc.If Playwright MCP is NOT available:
- Inform the user: "Playwright MCP is not installed. Design verification will be skipped."
- Provide installation instructions (see MCP Setup section below)
- Continue with design generation but skip verification phase
- Mark this clearly in the output
If Playwright MCP IS available:
- Inform the user: "Playwright MCP detected. Design will be automatically verified."
- Include verification in the workflow
Phase 2: Design Generation
Step 1: Create Design Mockup
Generate a complete HTML/CSS/JS mockup including:
HTML Structure:
- Semantic HTML5 elements
- Proper heading hierarchy (h1 → h6)
- ARIA landmarks (header, nav, main, aside, footer)
- Accessible form labels and inputs
- Alt text for images
- Unique page title
CSS Styling:
- Responsive design (mobile-first)
- CSS Grid or Flexbox for layouts
- Custom properties (CSS variables) for theming
- Smooth transitions and animations
- Print styles (if applicable)
- Dark mode support (optional)
JavaScript Functionality:
- Progressive enhancement
- Accessible interactions (keyboard support)
- Form validation
- Dynamic content loading
- Event handling
- Error handling
Accessibility Features:
- WCAG 2.1 Level AA compliance minimum
- Keyboard navigation support
- Focus indicators
- Screen reader friendly
- Color contrast compliance (4.5:1 minimum)
- Skip links
- ARIA attributes where needed
Example Output Structure:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Page Title</title>
<style>
/* Modern CSS with custom properties */
:root {
--primary-color: #0066cc;
--text-color: #1a1a1a;
--bg-color: #ffffff;
--spacing: 1rem;
}
/* Reset and base styles */
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
line-height: 1.6;
color: var(--text-color);
background: var(--bg-color);
}
/* Responsive layout */
@media (max-width: 768px) {
/* Mobile styles */
}
</style>
</head>
<body>
<!-- Accessible skip link -->
<a href="#main-content" class="skip-link">Skip to main content</a>
<!-- Semantic structure -->
<header role="banner">
<nav aria-label="Main navigation">
<!-- Navigation -->
</nav>
</header>
<main id="main-content" role="main">
<!-- Main content -->
</main>
<footer role="contentinfo">
<!-- Footer -->
</footer>
<script>
// Progressive enhancement JavaScript
(function() {
'use strict';
// Feature detection
if (!('querySelector' in document)) return;
// Your JavaScript here
})();
</script>
</body>
</html>Step 2: Save Design to File
Save the generated design to a file:
// Recommended file structure
project-name/
index.html // Main HTML file
styles.css // Separate CSS (if needed)
script.js // Separate JS (if needed)
assets/
images/ // Image assets
fonts/ // Custom fontsUse the Write tool to create the file:
- Save to user's current directory or ask for preferred location
- Use descriptive filename (e.g.,
landing-page.html,dashboard.html) - Create single-file HTML for mockups (CSS/JS inline)
- Create separate files for production builds
Phase 3: Design Verification (ONLY if Playwright MCP is available)
IMPORTANT: Only execute this phase if Playwright MCP was detected in Phase 1.
Step 1: Launch Browser and Load Design
Use Playwright MCP to open the design:
// Navigate to the local HTML file
await mcp__playwright__navigate({
url: 'file:///path/to/design.html'
});Step 2: Accessibility Testing
Run comprehensive accessibility checks:
1. Automated Accessibility Scan
- Check for WCAG violations
- Verify color contrast ratios
- Check heading hierarchy
- Verify ARIA attributes
- Check form labels
- Verify alt text on images
2. Keyboard Navigation Test
- Tab through all interactive elements
- Verify focus indicators are visible
- Check tab order is logical
- Test Escape key behavior (modals, dropdowns)
- Verify no keyboard traps
3. Screen Reader Compatibility
- Check ARIA landmarks
- Verify semantic HTML usage
- Check dynamic content announcements
- Verify form error messages
Step 3: Visual Testing
Capture screenshots and verify layout:
// Take full-page screenshot
await mcp__playwright__screenshot({
fullPage: true,
path: 'design-screenshot.png'
});
// Test responsive breakpoints
const breakpoints = [
{ width: 375, height: 667, name: 'mobile' },
{ width: 768, height: 1024, name: 'tablet' },
{ width: 1440, height: 900, name: 'desktop' }
];
for (const bp of breakpoints) {
await mcp__playwright__setViewportSize({
width: bp.width,
height: bp.height
});
await mcp__playwright__screenshot({
path: `design-${bp.name}.png`
});
}Step 4: Functionality Testing
Test interactive elements:
1. Form Validation
- Test required fields
- Test input validation
- Test error messages
- Test success states
2. Interactive Components
- Test buttons and links
- Test modals and dialogs
- Test dropdowns and menus
- Test tabs and accordions
- Test carousels and sliders
3. JavaScript Functionality
- Verify event handlers work
- Test dynamic content loading
- Check console for errors
- Verify progressive enhancement
Step 5: Performance Check
Evaluate performance metrics:
1. Load Time
- Measure page load time
- Check resource loading
- Identify bottlenecks
2. Resource Optimization
- Check CSS file size
- Check JavaScript file size
- Verify image optimization
- Check for unused CSS/JS
Phase 4: Verification Report
Generate a comprehensive report:
# Design Verification Report
## Overview
- **Design Type**: [Landing Page / Dashboard / etc.]
- **Framework**: [Vanilla / Tailwind / React / etc.]
- **Verification Date**: [Date]
- **Playwright MCP**: [Available / Not Available]
## Accessibility Compliance
### WCAG 2.1 Level AA
✅ **PASSED**: Color contrast (4.5:1 minimum)
✅ **PASSED**: Keyboard navigation
✅ **PASSED**: Semantic HTML structure
⚠️ **WARNING**: Missing alt text on 2 images
❌ **FAILED**: Form missing associated labels
### Issues Found
1. **HIGH**: Form input #email missing label
- Location: Line 45
- Fix: Add `<label for="email">Email</label>`
2. **MEDIUM**: Image missing alt text
- Location: Line 78
- Fix: Add `alt="Description of image"`
## Visual Testing
### Responsive Breakpoints
✅ **Mobile (375px)**: Layout renders correctly
✅ **Tablet (768px)**: Layout renders correctly
✅ **Desktop (1440px)**: Layout renders correctly
### Screenshots
- [x] Full page screenshot saved
- [x] Mobile screenshot saved
- [x] Tablet screenshot saved
- [x] Desktop screenshot saved
## Functionality Testing
### Interactive Elements
✅ Navigation menu works
✅ Form submission works
✅ Modal opens and closes
⚠️ Focus not returned to trigger after modal close
### JavaScript
✅ No console errors
✅ Event handlers working
✅ Progressive enhancement implemented
## Performance
### Metrics
- **Page Load Time**: 1.2s
- **Total File Size**: 45KB
- **CSS Size**: 12KB
- **JavaScript Size**: 8KB
### Optimization Opportunities
- Consider minifying CSS (potential 30% reduction)
- Lazy load images below the fold
- Consider code splitting for JavaScript
## Recommendations
### High Priority
1. Fix form label associations
2. Add missing alt text to images
3. Implement focus management for modal
### Medium Priority
1. Minify CSS and JavaScript for production
2. Add loading states for dynamic content
3. Implement error boundaries for JavaScript
### Low Priority
1. Add dark mode support
2. Enhance animations with reduced motion support
3. Add print styles
## Next Steps
1. Review and fix high-priority issues
2. Re-run verification after fixes
3. Test with actual screen readers
4. Conduct user testing
5. Deploy to staging environmentPhase 5: Iteration and Refinement
Based on verification results:
1. Fix Critical Issues
- Address all accessibility violations
- Fix broken functionality
- Resolve layout issues
2. Apply Improvements
- Implement recommended optimizations
- Enhance visual design based on feedback
- Refine interactions and animations
3. Re-verify
- Run verification again after fixes
- Ensure all issues are resolved
- Generate updated report
4. Deliver Final Design
- Provide clean, production-ready code
- Include documentation
- Provide deployment instructions
- Share verification report
Design Patterns & Best Practices
Responsive Design
Mobile-First Approach:
/* Base styles for mobile */
.container {
padding: 1rem;
}
/* Tablet and up */
@media (min-width: 768px) {
.container {
padding: 2rem;
max-width: 960px;
margin: 0 auto;
}
}
/* Desktop and up */
@media (min-width: 1024px) {
.container {
padding: 3rem;
max-width: 1200px;
}
}Accessible Forms
<form class="contact-form">
<div class="form-field">
<label for="name">
Name <span aria-label="required">*</span>
</label>
<input
type="text"
id="name"
name="name"
required
aria-required="true"
aria-describedby="name-error"
/>
<span id="name-error" class="error" role="alert" hidden>
Please enter your name
</span>
</div>
</form>Interactive Components
Accessible Modal:
function openModal(modalId) {
const modal = document.getElementById(modalId);
const lastFocused = document.activeElement;
modal.hidden = false;
modal.setAttribute('aria-modal', 'true');
// Focus first focusable element
const firstFocusable = modal.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
firstFocusable?.focus();
// Store last focused for return
modal.dataset.lastFocused = lastFocused;
// Trap focus
trapFocus(modal);
}
function closeModal(modalId) {
const modal = document.getElementById(modalId);
modal.hidden = true;
// Return focus
const lastFocused = document.querySelector(`[data-last-focused="${modal.id}"]`);
lastFocused?.focus();
}Framework-Specific Guidelines
Tailwind CSS
Pros:
- Rapid development
- Consistent design system
- Built-in responsive utilities
- Excellent for prototyping
Setup:
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: '#0066cc',
}
}
}
}
</script>Example:
<div class="container mx-auto px-4">
<h1 class="text-4xl font-bold text-gray-900 mb-4">
Welcome
</h1>
<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">
Click Me
</button>
</div>React
Pros:
- Component reusability
- Virtual DOM performance
- Large ecosystem
- Great for SPAs
Example:
function DesignComponent() {
const [isOpen, setIsOpen] = React.useState(false);
return (
<div className="container">
<button
onClick={() => setIsOpen(!isOpen)}
aria-expanded={isOpen}
>
Toggle
</button>
{isOpen && (
<div className="content">
Content here
</div>
)}
</div>
);
}Alpine.js
Pros:
- Lightweight (15KB)
- Declarative syntax
- No build step needed
- Good for progressive enhancement
Example:
<div x-data="{ open: false }">
<button @click="open = !open" :aria-expanded="open">
Toggle
</button>
<div x-show="open" x-transition>
Content here
</div>
</div>MCP Setup Instructions
If Playwright MCP is not available, provide these instructions to the user:
Installing Playwright MCP
Option 1: Via NPM (Recommended)
# Install Playwright MCP server
npm install -g @playwright/mcp-server
# Configure in Claude Code
claude code mcp add playwrightOption 2: Manual Setup
1. Create MCP configuration file:
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": ["@playwright/mcp-server"],
"env": {}
}
}
}2. Restart Claude Code
Verification: After installation, verify Playwright MCP is working:
# Check MCP servers
claude code mcp listYou should see playwright in the list of available MCP servers.
Communication Style
When working with users:
1. Clarify Requirements First
- Ask about design goals and constraints
- Understand technical requirements
- Confirm framework preferences
2. Provide Context
- Explain design decisions
- Justify framework choices
- Describe accessibility considerations
3. Show Progress
- Inform when generating design
- Update during verification (if MCP available)
- Share findings incrementally
4. Be Actionable
- Provide specific fixes for issues
- Include code examples
- Offer alternatives when appropriate
5. Handle MCP Unavailability Gracefully
- Clearly state when verification is skipped
- Provide manual testing guidance
- Offer installation instructions
Deliverables
At the end of the design process, provide:
1. Complete Design Files
- HTML, CSS, JavaScript files
- Assets (if any)
- README with setup instructions
2. Verification Report (if MCP available)
- Accessibility compliance results
- Visual testing screenshots
- Functionality test results
- Performance metrics
- Prioritized recommendations
3. Documentation
- Component usage guide
- Customization instructions
- Browser support information
- Deployment guidelines
4. Next Steps
- Suggested improvements
- Testing recommendations
- Production checklist
Example Workflow
User Request:
"Create a landing page for a SaaS product with a hero section, features, pricing, and contact form."
Your Response:
1. Clarify Requirements:
- "I'll create a modern SaaS landing page. A few questions:
- Do you have brand colors or should I use a professional default palette?
- Framework preference? I recommend Tailwind CSS for rapid development.
- Any specific features to highlight?
- Contact form fields needed?"
2. Check Playwright MCP:
- "Checking for Playwright MCP... Not detected. Design verification will be skipped. Would you like installation instructions?"
3. Generate Design:
- Create complete HTML/CSS/JS file
- Include hero, features, pricing, contact form
- Make it responsive and accessible
- Save to
saas-landing-page.html
4. Manual Verification Guide (since MCP not available):
- Provide checklist for manual testing
- Share accessibility testing tools
- Suggest browser testing approach
5. Deliver:
- Share complete design file
- Provide customization guide
- Offer iteration if needed
Remember: The goal is to create beautiful, accessible, functional web designs that work for all users, with automatic verification when possible!
Web Design Templates
Ready-to-use templates for common web design patterns.
Landing Page Template
Modern SaaS Landing Page
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Product Name - Tagline</title>
<style>
:root {
--primary: #4F46E5;
--primary-dark: #4338CA;
--secondary: #10B981;
--text: #1F2937;
--text-light: #6B7280;
--bg: #FFFFFF;
--bg-alt: #F9FAFB;
}
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
line-height: 1.6;
color: var(--text);
background: var(--bg);
}
.skip-link {
position: absolute;
top: -40px;
left: 0;
background: var(--primary);
color: white;
padding: 8px 16px;
text-decoration: none;
z-index: 100;
}
.skip-link:focus {
top: 0;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem;
}
/* Header */
header {
padding: 1rem 0;
border-bottom: 1px solid #E5E7EB;
}
nav {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
font-size: 1.5rem;
font-weight: 700;
color: var(--primary);
}
.nav-links {
display: flex;
gap: 2rem;
list-style: none;
}
.nav-links a {
color: var(--text);
text-decoration: none;
font-weight: 500;
}
.nav-links a:hover,
.nav-links a:focus {
color: var(--primary);
}
.btn {
padding: 0.75rem 1.5rem;
border-radius: 6px;
font-weight: 600;
text-decoration: none;
display: inline-block;
transition: all 0.2s;
}
.btn-primary {
background: var(--primary);
color: white;
}
.btn-primary:hover,
.btn-primary:focus {
background: var(--primary-dark);
}
/* Hero Section */
.hero {
padding: 4rem 0;
text-align: center;
}
.hero h1 {
font-size: clamp(2rem, 5vw, 3.5rem);
margin-bottom: 1.5rem;
font-weight: 800;
}
.hero p {
font-size: 1.25rem;
color: var(--text-light);
margin-bottom: 2rem;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
.hero-cta {
display: flex;
gap: 1rem;
justify-content: center;
flex-wrap: wrap;
}
/* Features Section */
.features {
padding: 4rem 0;
background: var(--bg-alt);
}
.section-title {
text-align: center;
font-size: 2.5rem;
margin-bottom: 3rem;
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
}
.feature-card {
background: white;
padding: 2rem;
border-radius: 12px;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.feature-icon {
width: 48px;
height: 48px;
background: var(--primary);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 1rem;
color: white;
font-size: 1.5rem;
}
.feature-card h3 {
margin-bottom: 0.5rem;
}
/* Mobile Menu */
.mobile-toggle {
display: none;
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
}
@media (max-width: 768px) {
.nav-links {
display: none;
position: absolute;
top: 100%;
left: 0;
right: 0;
background: white;
flex-direction: column;
padding: 1rem;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.nav-links.active {
display: flex;
}
.mobile-toggle {
display: block;
}
}
</style>
</head>
<body>
<a href="#main" class="skip-link">Skip to main content</a>
<header role="banner">
<nav class="container" aria-label="Main navigation">
<div class="logo">Logo</div>
<button class="mobile-toggle" aria-label="Toggle menu" aria-expanded="false">
☰
</button>
<ul class="nav-links">
<li><a href="#features">Features</a></li>
<li><a href="#pricing">Pricing</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
</header>
<main id="main" role="main">
<section class="hero">
<div class="container">
<h1>Build Something Amazing</h1>
<p>The best solution for your business needs. Fast, reliable, and easy to use.</p>
<div class="hero-cta">
<a href="#signup" class="btn btn-primary">Get Started</a>
<a href="#demo" class="btn">Watch Demo</a>
</div>
</div>
</section>
<section id="features" class="features">
<div class="container">
<h2 class="section-title">Features</h2>
<div class="features-grid">
<div class="feature-card">
<div class="feature-icon" aria-hidden="true">⚡</div>
<h3>Fast Performance</h3>
<p>Lightning-fast speeds that keep your users engaged.</p>
</div>
<div class="feature-card">
<div class="feature-icon" aria-hidden="true">🔒</div>
<h3>Secure by Default</h3>
<p>Enterprise-grade security built into every layer.</p>
</div>
<div class="feature-card">
<div class="feature-icon" aria-hidden="true">📊</div>
<h3>Powerful Analytics</h3>
<p>Gain insights with comprehensive analytics tools.</p>
</div>
</div>
</div>
</section>
</main>
<footer role="contentinfo">
<div class="container">
<p>© 2025 Company Name. All rights reserved.</p>
</div>
</footer>
<script>
(function() {
'use strict';
const toggle = document.querySelector('.mobile-toggle');
const nav = document.querySelector('.nav-links');
if (toggle && nav) {
toggle.addEventListener('click', function() {
const expanded = this.getAttribute('aria-expanded') === 'true';
this.setAttribute('aria-expanded', !expanded);
nav.classList.toggle('active');
});
}
})();
</script>
</body>
</html>Form Template
Accessible Contact Form
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Us</title>
<style>
/* Add styles from above template */
.form-container {
max-width: 600px;
margin: 4rem auto;
padding: 2rem;
background: white;
border-radius: 12px;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.form-field {
margin-bottom: 1.5rem;
}
label {
display: block;
margin-bottom: 0.5rem;
font-weight: 600;
color: var(--text);
}
label .required {
color: #DC2626;
}
input,
textarea,
select {
width: 100%;
padding: 0.75rem;
border: 2px solid #E5E7EB;
border-radius: 6px;
font-size: 1rem;
font-family: inherit;
transition: border-color 0.2s;
}
input:focus,
textarea:focus,
select:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
input[aria-invalid="true"],
textarea[aria-invalid="true"] {
border-color: #DC2626;
}
.hint {
display: block;
margin-top: 0.25rem;
font-size: 0.875rem;
color: var(--text-light);
}
.error {
display: block;
margin-top: 0.25rem;
font-size: 0.875rem;
color: #DC2626;
}
.success {
padding: 1rem;
background: #D1FAE5;
color: #065F46;
border-radius: 6px;
margin-bottom: 1rem;
}
</style>
</head>
<body>
<main class="form-container">
<h1>Contact Us</h1>
<p>Fill out the form below and we'll get back to you soon.</p>
<form id="contact-form" novalidate>
<div class="form-field">
<label for="name">
Name <span class="required" aria-label="required">*</span>
</label>
<input
type="text"
id="name"
name="name"
required
aria-required="true"
aria-describedby="name-error"
autocomplete="name"
/>
<span id="name-error" class="error" role="alert" hidden>
Please enter your name
</span>
</div>
<div class="form-field">
<label for="email">
Email <span class="required" aria-label="required">*</span>
</label>
<input
type="email"
id="email"
name="email"
required
aria-required="true"
aria-describedby="email-hint email-error"
autocomplete="email"
/>
<span id="email-hint" class="hint">
We'll never share your email with anyone else.
</span>
<span id="email-error" class="error" role="alert" hidden>
Please enter a valid email address
</span>
</div>
<div class="form-field">
<label for="message">
Message <span class="required" aria-label="required">*</span>
</label>
<textarea
id="message"
name="message"
rows="5"
required
aria-required="true"
aria-describedby="message-error"
></textarea>
<span id="message-error" class="error" role="alert" hidden>
Please enter a message
</span>
</div>
<button type="submit" class="btn btn-primary">Send Message</button>
</form>
</main>
<script>
(function() {
'use strict';
const form = document.getElementById('contact-form');
form.addEventListener('submit', function(e) {
e.preventDefault();
// Clear previous errors
const errors = form.querySelectorAll('.error');
errors.forEach(error => error.hidden = true);
const fields = form.querySelectorAll('input, textarea');
fields.forEach(field => field.removeAttribute('aria-invalid'));
let isValid = true;
// Validate each required field
const name = document.getElementById('name');
if (!name.value.trim()) {
showError(name, 'name-error');
isValid = false;
}
const email = document.getElementById('email');
if (!email.value.trim() || !isValidEmail(email.value)) {
showError(email, 'email-error');
isValid = false;
}
const message = document.getElementById('message');
if (!message.value.trim()) {
showError(message, 'message-error');
isValid = false;
}
if (isValid) {
// Submit form
console.log('Form is valid, submitting...');
showSuccess();
}
});
function showError(field, errorId) {
field.setAttribute('aria-invalid', 'true');
const error = document.getElementById(errorId);
error.hidden = false;
field.focus();
}
function isValidEmail(email) {
return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email);
}
function showSuccess() {
const success = document.createElement('div');
success.className = 'success';
success.setAttribute('role', 'status');
success.textContent = 'Thank you! Your message has been sent.';
form.insertBefore(success, form.firstChild);
form.reset();
}
})();
</script>
</body>
</html>Dashboard Template
Admin Dashboard Layout
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dashboard</title>
<style>
/* Base styles */
:root {
--sidebar-width: 250px;
--header-height: 60px;
}
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
background: #F3F4F6;
}
/* Layout Grid */
.dashboard {
display: grid;
grid-template-areas:
"sidebar header"
"sidebar main";
grid-template-columns: var(--sidebar-width) 1fr;
grid-template-rows: var(--header-height) 1fr;
min-height: 100vh;
}
/* Sidebar */
.sidebar {
grid-area: sidebar;
background: #1F2937;
color: white;
padding: 1rem;
}
.sidebar nav ul {
list-style: none;
padding: 0;
}
.sidebar nav a {
display: block;
padding: 0.75rem 1rem;
color: #D1D5DB;
text-decoration: none;
border-radius: 6px;
transition: background 0.2s;
}
.sidebar nav a:hover,
.sidebar nav a[aria-current="page"] {
background: #374151;
color: white;
}
/* Header */
.header {
grid-area: header;
background: white;
border-bottom: 1px solid #E5E7EB;
padding: 0 2rem;
display: flex;
align-items: center;
justify-content: space-between;
}
/* Main Content */
.main-content {
grid-area: main;
padding: 2rem;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1.5rem;
margin-bottom: 2rem;
}
.stat-card {
background: white;
padding: 1.5rem;
border-radius: 8px;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.stat-value {
font-size: 2rem;
font-weight: 700;
color: #1F2937;
}
.stat-label {
color: #6B7280;
font-size: 0.875rem;
}
@media (max-width: 768px) {
.dashboard {
grid-template-areas:
"header"
"main";
grid-template-columns: 1fr;
grid-template-rows: var(--header-height) 1fr;
}
.sidebar {
position: fixed;
left: -250px;
top: 0;
bottom: 0;
z-index: 100;
transition: left 0.3s;
}
.sidebar.active {
left: 0;
}
}
</style>
</head>
<body>
<div class="dashboard">
<aside class="sidebar" role="navigation" aria-label="Main navigation">
<h2>Dashboard</h2>
<nav>
<ul>
<li><a href="#overview" aria-current="page">Overview</a></li>
<li><a href="#analytics">Analytics</a></li>
<li><a href="#users">Users</a></li>
<li><a href="#settings">Settings</a></li>
</ul>
</nav>
</aside>
<header class="header" role="banner">
<h1>Dashboard Overview</h1>
<button class="mobile-menu-toggle" aria-label="Toggle menu">☰</button>
</header>
<main class="main-content" role="main">
<div class="stats-grid">
<div class="stat-card">
<div class="stat-value">1,234</div>
<div class="stat-label">Total Users</div>
</div>
<div class="stat-card">
<div class="stat-value">$12,345</div>
<div class="stat-label">Revenue</div>
</div>
<div class="stat-card">
<div class="stat-value">98.5%</div>
<div class="stat-label">Uptime</div>
</div>
</div>
</main>
</div>
</body>
</html>These templates provide solid starting points for common web design patterns with accessibility and responsiveness built in.
Web Design Builder Skill
Create professional, accessible HTML5/JavaScript web designs with automatic Playwright verification.
Overview
This skill generates complete, production-ready web designs from specifications, with automatic accessibility and functionality testing using Playwright MCP integration.
Key Features
- Complete Design Generation: HTML5, CSS3, JavaScript from specifications
- Automatic Verification: Playwright MCP integration for testing (when available)
- Accessibility First: WCAG 2.1 Level AA compliance built-in
- Responsive Design: Mobile-first, tested across breakpoints
- Modern Frameworks: Vanilla, Tailwind CSS, React, Vue, Alpine.js support
- Interactive Testing: Keyboard navigation, form validation, component functionality
- Visual Verification: Screenshots at multiple breakpoints
- Performance Optimization: Load time analysis, resource optimization
When to Use
- Create landing pages, websites, or web applications
- Build responsive web interfaces from specifications
- Generate design mockups or prototypes
- Refactor existing HTML/CSS/JavaScript code
- Create accessible, WCAG-compliant designs
- Build component libraries or design systems
Playwright MCP Integration
Automatic Detection
The skill automatically detects if Playwright MCP is installed. If not available:
- User is informed before starting
- Verification steps are skipped
- Manual testing guidance is provided
- Installation instructions are offered
When Playwright MCP is Available
Automatic verification includes: 1. Accessibility Testing
- WCAG compliance checking
- Color contrast verification
- Keyboard navigation testing
- Screen reader compatibility
2. Visual Testing
- Screenshots at mobile (375px), tablet (768px), desktop (1440px)
- Full-page captures
- Responsive layout verification
3. Functionality Testing
- Form validation
- Interactive components
- JavaScript functionality
- Error handling
4. Performance Analysis
- Load time measurement
- Resource size analysis
- Optimization recommendations
Workflow
Phase 1: Requirements Gathering
- Design scope and type
- Target audience and use case
- Technical preferences (framework, browser support)
- Accessibility requirements
- Check Playwright MCP availability
Phase 2: Design Generation
- Create semantic HTML5 structure
- Responsive CSS with mobile-first approach
- Accessible JavaScript with progressive enhancement
- Save to file
Phase 3: Verification (if Playwright MCP available)
- Launch browser and load design
- Run accessibility tests
- Capture responsive screenshots
- Test interactive functionality
- Analyze performance
Phase 4: Verification Report
- Comprehensive accessibility compliance report
- Visual testing results
- Functionality test outcomes
- Performance metrics
- Prioritized recommendations
Phase 5: Iteration
- Fix critical issues
- Apply improvements
- Re-verify
- Deliver final design
Supported Frameworks
Vanilla HTML/CSS/JS
- No dependencies
- Simple and fast
- Best for: Static sites, simple interactions
Tailwind CSS
- Utility-first CSS
- Rapid development
- Best for: Prototypes, modern interfaces
React
- Component-based
- Virtual DOM
- Best for: Complex SPAs, interactive apps
Vue
- Progressive framework
- Easy to learn
- Best for: Medium complexity apps
Alpine.js
- Lightweight (15KB)
- Declarative syntax
- Best for: Progressive enhancement
Installation
/plugin marketplace add rknall/claude-skills
/plugin install web-design-builderExample Usage
Basic Landing Page
Create a landing page for a SaaS product with:
- Hero section with CTA
- Features grid (3 columns)
- Pricing table
- Contact form
Use Tailwind CSS and make it fully accessible.Dashboard Interface
Build an admin dashboard with:
- Sidebar navigation
- Top header with user menu
- Stats cards
- Data table
- Charts
Responsive design, dark mode support.Contact Form
Create an accessible contact form with:
- Name, email, message fields
- Real-time validation
- Success/error states
- WCAG AA compliant
Include keyboard navigation support.Installing Playwright MCP
If Playwright MCP is not installed:
# Install Playwright MCP server
npm install -g @playwright/mcp-server
# Configure in Claude Code
claude code mcp add playwright
# Restart Claude CodeDesign Templates
The skill includes templates for:
- SaaS Landing Pages
- Contact Forms
- Admin Dashboards
- Product Pages
- Portfolio Sites
See design-templates.md for complete examples.
Accessibility Features
All designs include:
- ✅ Semantic HTML5 elements
- ✅ ARIA landmarks and labels
- ✅ Keyboard navigation support
- ✅ Focus indicators (3:1 contrast)
- ✅ Color contrast compliance (4.5:1 minimum)
- ✅ Skip links
- ✅ Screen reader friendly
- ✅ Responsive and zoomable
- ✅ Form labels and validation
- ✅ Alt text for images
Deliverables
- Complete HTML/CSS/JavaScript files
- Verification report (if MCP available)
- Screenshots at multiple breakpoints
- Usage documentation
- Customization guide
- Deployment instructions
Version History
- 1.0.0 (2025-10-18): Initial release
- Playwright MCP integration
- Multiple framework support
- Accessibility-first approach
- Comprehensive verification
License
This skill is provided as-is for use with Claude Code.
Related skills
How it compares
Pick web design builder for bespoke HTML/CSS prototypes with optional Playwright verification; pick a framework-specific skill when building inside Nuxt, Next.js, or a design-system library.
FAQ
Does web design builder require Playwright MCP?
web design builder works without Playwright MCP but skips automated verification. When Playwright MCP is detected, the skill runs accessibility scans, responsive screenshots at three breakpoints, and functionality tests, then delivers a verification report.
Which frameworks does web design builder support?
web design builder supports vanilla HTML/CSS/JS, Tailwind CSS, React, Vue, and Alpine.js. It produces semantic HTML5 with mobile-first responsive layouts and targets WCAG 2.1 Level AA accessibility compliance.