web-design-guidelines

Applies WCAG accessibility, responsive design, and performance rules to web interface code.

2|Updated Jul 25, 2026
One-click install
npx skills add https://github.com/ankaboot-source/boucle --skill web-design-guidelines-ankaboot-source
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: web-design-guidelines
Source: https://github.com/ankaboot-source/boucle/tree/main/.jcode/skills/web-design-guidelines
Command: npx skills add https://github.com/ankaboot-source/boucle --skill web-design-guidelines-ankaboot-source

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Web interfaces frequently ship with accessibility violations, broken responsive layouts, and performance regressions because guidelines are scattered across WCAG specs, MDN docs, and team conventions. This Skill consolidates framework-agnostic rules into a single reference so HTML, CSS, and JavaScript code meets accessibility, responsiveness, and performance standards from the start. ## Core Features & Use Cases - Accessibility and WCAG 2.2 compliance: Enforces semantic HTML, ARIA labeling, keyboard navigation, focus indicators, color contrast ratios, and live regions mapped to specific success criteria. - Responsive and modern CSS patterns: Covers mobile-first layouts, fluid sizing with clamp(), container queries, content-based breakpoints, and touch target sizing. - Forms, performance, and theming guidance: Provides rules for form validation, lazy loading, code splitting, dark mode with CSS custom properties, prefers-reduced-motion, and internationalization with logical properties. - Use Case: When reviewing a pull request containing a new modal component, use this Skill to verify focus trapping, aria-modal attributes, keyboard dismissal, and reduced-motion fallbacks before merge. ## Quick Start Review this HTML form component against the web design guidelines and fix any accessibility or responsive design violations.

Frequently Asked Questions about web-design-guidelines

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I make a web interface WCAG 2.2 compliant?

WCAG 2.2 compliance requires semantic HTML elements, programmatically associated form labels, 4.5:1 contrast for normal text, visible focus indicators, keyboard navigation for all interactive elements, and ARIA live regions for dynamic content. The guidelines map each rule to specific success criteria at Level A and AA.

How to implement responsive design with modern CSS?

Use a mobile-first approach with min-width media queries, fluid sizing via clamp(), min(), and max(), and container queries for component-level responsiveness. Set breakpoints where content breaks rather than at device widths, typically starting at 30rem, 48rem, 64rem, and 80rem.

When should I use ARIA attributes versus native HTML?

Prefer native HTML elements like button, nav, and dialog over ARIA roles whenever they exist, since native elements provide keyboard access and semantics for free. Use ARIA only for patterns without native equivalents, such as tabs, trees, or comboboxes.

Does this work with React, Vue, or other frameworks?

The guidelines are framework-agnostic and based on web platform standards, WCAG 2.2, and MDN documentation. The rules apply to any stack that outputs HTML and CSS, regardless of the JavaScript framework used.

Why do animations cause accessibility issues?

Animations can trigger vestibular disorders and seizures when they flash more than three times per second or ignore user preferences. Wrap animations in a prefers-reduced-motion media query and animate only compositor-friendly properties like transform and opacity.

What are the limitations of these design guidelines?

The guidelines provide rules and code patterns but do not execute automated audits or render tests. Actual conformance verification still requires tools like screen readers, contrast checkers, and real-device testing alongside these rules.