WCAG 2.2 AA Accessibility & Inclusive Design Compliance Audit
Audit digital interfaces for WCAG 2.2 AA compliance, color contrast, keyboard focus, and screen reader UX.
Compatibility & Specs
212 words • 1553 characters
Customize Prompt
Fill in the variables below. Your customized prompt updates instantly in the browser — no AI API needed.
What the component does and how users engage with it
The markup or React JSX to audit
Foreground text hex, background hex, border colors
How users currently interact using keyboard or touch
How to Use This Prompt
Follow this 3-step workflow to extract high-signal responses from any compatible AI model.
1. Tailor the Parameters
Use the interactive customizer above to substitute the bracketed placeholders with your exact context, requirements, and constraints.
2. Send to AI Model
Copy the prompt and paste it into Claude, ChatGPT, Gemini, or Copilot. These models follow structured multi-step constraints reliably.
3. Review and Iterate
Review the output against the verified benchmark below. Follow up in the conversation to stress-test edge cases or refine tone.
Prompt Variables & Parameters
Reference breakdown of every dynamic variable embedded in this prompt template.
| Placeholder | Parameter Name | Type | Status | Description & Guidance |
|---|---|---|---|---|
| [component_description] | Component & User Interaction | text | Required | What the component does and how users engage with itDefault: A collapsible accordion FAQ component that toggles answers when headers are clicked. |
| [code_markup] | Current HTML / React Code | textarea | Required | The markup or React JSX to auditDefault: <div className="accordion-item"> <div className="accordion-header" onClick={() => setIsOpen(!isOpen)}> <span className="text-gray-400">{title}</span> <i className={isOpen ? "icon-chevron-up" : "icon-chevron-down"} /> </div> {isOpen && <div className="accordion-content text-gray-500">{content}</div>} </div> |
| [color_tokens] | Color Palette & Text Colors | text | Required | Foreground text hex, background hex, border colorsDefault: Header text: #9CA3AF on white #FFFFFF background. Content text: #6B7280 on white background. |
| [interaction_patterns] | Keyboard & Touch Patterns | text | Required | How users currently interact using keyboard or touchDefault: Users click with mouse or tap screen. It is not currently focusable via Tab key. |
Example Output & Parameters Breakdown
Inspect verified benchmark AI responses and review how parameters, system constraints, and input variables calibrate generation.
Parameters & Variable Breakdown
4 InputsVerified AI Benchmark Response
Grounded OutputBest Use Cases
Scenarios and roles where this prompt produces maximum leverage.
Tips for Best Results
Techniques to elevate response fidelity
- •Provide rich background context rather than one-sentence inputs to receive deep, non-generic responses.
- •Engage in multi-turn conversation: use the initial output as a baseline, then ask the AI to sharpen specific sections.
- •Prompt the model to highlight any hidden assumptions or missing trade-offs in its recommendations.
Common Mistakes to Avoid
Frequent failure modes and anti-patterns
- •Giving minimal context and expecting nuanced, expert-level strategic output.
- •Not validating factual references, citations, or statistical claims with verified primary sources.
- •Skipping the customization step and pasting raw bracketed template variables into the AI chat.
Frequently Asked Questions About This Prompt
Technical guidance on model compatibility, parameter substitution, iteration techniques, and commercial usage.
Q1.Which AI models work best with the "WCAG 2.2 AA Accessibility & Inclusive Design Compliance Audit" prompt?
This prompt is thoroughly tested and compatible with Claude, Chatgpt, Gemini. For multi-step reasoning, architectural planning, and code refactoring, Claude 3.7/3.5 Sonnet and ChatGPT-4o provide the highest constraint adherence. For large-document synthesis, Google Gemini 2.5 Pro is also recommended.
Q2.How do I customize the parameters in this prompt template?
This template features 4 customizable parameter(s): [component_description], [code_markup], [color_tokens], [interaction_patterns]. Replace each bracketed placeholder with your project's specific details, constraints, or code before submitting to your AI model. You can also use our interactive workbench on this page to populate and copy the completed prompt in one click.
Q3.Can I use this prompt and its outputs for commercial projects?
Yes. All prompts published on Beautiful AI Prompt are 100% free for both personal and commercial use. You hold full ownership of all code, copy, strategies, or imagery generated by your selected AI model when running this prompt.
Q4.How does this prompt prevent AI hallucinations and ensure output accuracy?
This template enforces explicit negative constraints, few-shot parameter boundaries, and schema requirements (such as tabular comparisons or step-by-step logic). This suppresses speculative drift and forces the AI model to ground its response in your provided inputs.
Part of Curated Collections
This prompt is sequenced as part of these goal-oriented workflows
Related AI Prompts
Complementary workflows in Design & UI/UX
UI Design Visual Hierarchy, Contrast & Spatial Rhythm Critique
Conduct an objective, rigorous visual critique of a digital interface layout, typography, and density.
›You are a Principal Product Designer and Design Systems Architect. Review the following interface layout and design specifications with objective, actionable rigor. Avoid subjective praise or vague advice like 'make it cleaner'. Evaluate it against fundamental design laws: visual hierarchy, spatial rhythm (8pt grid), typographic contrast, visual weight, and interaction affordance. Product Type & Primary User Goal: [product_context] Current Screen / Component Layout & Hierarchy: [screen_layout] Color Palette & Typography System: [design_tokens] Known Usability Concerns or Friction Points: [usability_concerns] Deliver a Systematic UI Design Critique: 1. Visual Hierarchy & Eye-Scanning Flow: Map the viewer's likely scanning path (Z-pattern or F-pattern). Identify visual competition where secondary elements distract from the primary call-to-action. 2. Typography Scale & Density: Audit font sizes, line heights, weights, and letter-spacing. Flag issues where text lacks distinct contrast or causes visual vibration. 3. Spatial Rhythm & Alignment: Evaluate padding, margins, and layout alignment against a strict 4px/8px grid system. Point out uneven whitespace, claustrophobic elements, or disconnected groupings. 4. Action Hierarchy & Affordance: Evaluate primary, secondary, and tertiary button states. Ensure interactive elements look clickable and disabled states don't cause confusion. 5. Specific Prescriptive Redesign Blueprint: Provide precise CSS/Tailwind values or spatial adjustments to elevate the UI to a world-class, premium aesthetic.
Design System Semantic Token Architecture & Component Matrix
Architect scalable design tokens (color, spacing, typography) and component variant matrices.
›You are a Principal Design Systems Architect bridging UI design (Figma) and modern frontend code (CSS Variables, Tailwind CSS, Radix UI). I need to design a scalable design system foundation for a multi-platform product. Brand Identity & Product Domain: [brand_context] Theming & Dark Mode Requirements: [theme_requirements] Core Components in Scope: [component_scope] Frontend Framework & Styling Engine: [tech_stack] Deliver the Comprehensive Design System Architecture Plan: 1. 3-Tier Token Architecture: Structure the design tokens systematically: - Primitives (Global / Raw Values: slate-500, blue-600, 16px) - Semantics (Purpose-driven: surface-primary, text-muted, border-interactive) - Component-Specific (btn-primary-bg, input-focus-ring) 2. Dark Mode Elevation & Contrast Token Strategy: Define how surfaces, borders, and shadows behave between light and dark themes without relying on inverted pure black/white. 3. Component Variant Matrix: For the requested core components, document the exact props, variant names (`default`, `secondary`, `destructive`, `ghost`), sizes (`sm`, `md`, `lg`), and interactive states (`hover`, `focus-visible`, `active`, `disabled`, `loading`). 4. CSS Variable / Tailwind v4 Configuration: Provide the exact CSS variable definitions (in OKLCH or HSL) and Tailwind utility mappings ready to paste into `globals.css`.
React Component Composition & Compound Component Architecture Review
Refactor bloated prop-drilling components into clean, composable compound components with flexible layouts.
›You are a Principal Frontend Architect and Design System Lead. I have a monolithic, brittle React component that has accumulated too many boolean flags and needs to be refactored into a composable Compound Component architecture. Current Bloated Component Code & Props Interface: [bloated_component_code] Desired Consumer Flexibility / Layout Variations: [desired_flexibility] State & Event Coordination Needed Across Sub-Components: [state_coordination] Perform a Component Architecture Overhaul: 1. Prop Explosion & Coupling Antipatterns: Detail why the current design violates the Open-Closed Principle (e.g. `showIcon`, `isModal`, `hasBorder`, `buttonPosition` flags). 2. Compound Component API Design: Define the clean JSX consumer usage syntax showing how sub-components (e.g. `<Card.Header>`, `<Card.Body>`, `<Card.Footer>`, `<Card.Action>`) compose together naturally. 3. TypeScript & Context Implementation: Write the complete, production-ready implementation using an internal React Context, custom hook (`useCardContext`), and strict TypeScript typing for sub-components. 4. Keyboard Navigation & ARIA Binding: Ensure internal context coordinates required WAI-ARIA states (e.g. `aria-expanded`, `aria-controls`) seamlessly across sub-components.