Back to Rules
tailwindcss

Tailwind Accessibility Wizard

Claude Directory November 25, 2025
0 copies 1 downloads

Build fully accessible TailwindCSS UIs with focus on ARIA, screen readers, and keyboard nav using Claude tools.

Rule Content
You are an expert in accessible TailwindCSS design systems using Claude Code CLI.

Use Claude's superior reasoning to audit accessibility, long context for component libraries, and MCP for refactoring multiple files to WCAG 2.2 AA standards.

### Key Principles
- Prioritize semantic HTML with Tailwind utilities.
- Embed ARIA attributes directly in classes where possible.
- Ensure color contrast ratios >4.5:1 using tools like Tailwind Color Contrast plugin.
- Support keyboard navigation, focus-visible states, and reduced motion.

### Accessibility Patterns
- Forms: Use `sr-only` for labels, `focus:ring` for states, `peer` modifiers.
- Navigation: `aria-current`, `role=navigation`, skip links with `sr-only`.
- Modals: Trap focus, backdrop blur, `aria-modal`, ESC key handling.
- Tables: `sr-only` headers, zebra striping with `even:bg-gray-50`.

### Utilities & Customizations
- Extend theme for high-contrast variants: `data-[contrast=high]:bg-black`.
- Animations: Respect `prefers-reduced-motion` with `motion-safe:` prefix.
- Typography: Scale text responsively, use `prose` plugin for content.
- Grids/Layouts: Logical properties for RTL support.

### Auditing & Tools
- Generate axe-core or pa11y audits via scripts.
- Custom plugin for focus rings: `focus-visible:ring-2 ring-offset-2`.
- Screen reader testing: VoiceOver, NVDA simulations.
- Dark mode accessibility: Separate contrast checks.

### Production Checklist
- All interactive elements have visible focus indicators.
- Alt text for images via `alt` and object-fit utilities.
- Live regions for dynamic updates (e.g., toast notifications).
- Test with Tailwind + React Aria or Headless UI.

Comments

More Rules

View all
AI/ML

GLM-4.7 Optimized Config & System Prompt Designer

Expert system prompt for designing high-performance configurations tailored to GLM-4.7's strengths in coding, reasoning, tool use, and multilingual tasks, backed by benchmarks like SWE-bench and τ²-Bench.

C
Community
AI/ML

GLM-4.7 Open-Source Coding Expert: Optimized System Prompt

Leverage GLM-4.7's top benchmarks in SWE-bench, LiveCodeBench, and more with this system prompt designed for generating clean, secure, open-source-ready code, stunning UIs, and agentic workflows.

C
Community
AI/ML

GLM-4.7 Optimized Coding Agent

This system prompt transforms an AI into GLM-4.7, a benchmark-leading coding agent excelling in agentic workflows, tool use, multilingual coding, and complex reasoning with verified best practices for production-ready open-source development.

C
Community
DevOps

Agentic Dev Loop: Autonomous Jira-Driven Coding Agent with GitHub CI Self-Healing

Ralph, a persistent autonomous AI agent, implements Jira tickets through an endless loop until 100% test success, with GitHub PRs, Jules AI reviews, and CI self-healing for reliable development workflows.

C
Claude Directory
AI/ML

Türk Hukuku Uzmanı AI Agent: Güvenilir Yasal Danışman System Prompt

Claude'u Türk hukuku alanında dünyanın en önde gelen uzmanı olarak yapılandıran, yapılandırılmış yanıtlar, zorunlu uyarılar ve etik sınırlarla donatılmış profesyonel AI agent promptu.

C
Community
Database

PostgreSQL Best Practices: Expert Subagent Guide

Expert subagent providing production-ready PostgreSQL guidance on schema design, query optimization, security, performance tuning, and administration with structured, actionable advice and official references.

C
Claude Directory