agentsclimarketplace

Tailwindcss accessibility

Skill fusengine/agents/plugins/tailwindcss/skills/tailwindcss-accessibility

Redefining development through cognitive automation and collaborative agent systems.

Install
npx -y skills add fusengine/agents --skill tailwindcss-accessibility

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 22 stars22 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Use when implementing keyboard-accessible components, screen-reader-only content, prefers-reduced-motion support, or WCAG 2.2 AA/AAA compliance.

SKILL.md

3.5 KB, as published. Nobody here has run it

<objective> Documents Tailwind CSS v4.1 accessibility utilities: `focus-visible` for keyboard-only focus rings, `sr-only` for screen-reader-only content, `motion-safe`/`motion-reduce` for `prefers-reduced-motion` support, and touch-target/contrast-ratio patterns for WCAG 2.2 AA/AAA compliance.

Covers focus-state patterns, minimum touch target sizing (44×44px via min-h-11 min-w-11), and the 4.5:1/3:1 contrast floors — semantic HTML first, Tailwind utilities enhance rather than replace it. </objective>

Tailwind CSS Accessibility

Accessible-by-default patterns using Tailwind CSS v4.1 utility classes.

Agent Workflow (MANDATORY)

Before ANY implementation, use TeamCreate to spawn 3 agents:

  1. fuse-ai-pilot:explore-codebase - Analyze existing a11y patterns
  2. fuse-ai-pilot:research-expert - Verify latest WCAG 2.2 guidelines
  3. mcp__context7__query-docs - Check Tailwind CSS a11y utilities

After implementation, run fuse-ai-pilot:sniper for validation.


Overview

When to Use

  • Implementing keyboard-accessible interactive elements
  • Adding screen reader support to visual-only content
  • Respecting user motion preferences
  • Ensuring sufficient color contrast ratios
  • Meeting WCAG 2.2 AA/AAA compliance requirements
  • Creating accessible touch targets for mobile

Why Tailwind for Accessibility

FeatureBenefit
focus-visibleKeyboard-only focus rings, no mouse clutter
sr-onlyScreen reader content without visual display
motion-safe/reduceRespects prefers-reduced-motion
Utility compositionConsistent a11y patterns across components
CSS-first configCentralized a11y defaults via @theme

Critical Rules

  1. Always use focus-visible — Not focus for interactive elements
  2. Never hide content from screen readers — Use sr-only instead of hidden
  3. Respect motion preferences — Wrap animations in motion-safe:
  4. Minimum touch target 44x44px — Use min-h-11 min-w-11 (2.75rem)
  5. Contrast ratios — 4.5:1 for text, 3:1 for large text (WCAG AA)
  6. Semantic HTML first — Tailwind enhances, never replaces semantics

Quick Reference

Focus States

<button class="focus-visible:outline-2 focus-visible:outline-offset-2
  focus-visible:outline-primary rounded-md">
  Accessible Button
</button>

Screen Reader Only

<span class="sr-only">Open navigation menu</span>

Reduced Motion

<div class="motion-safe:animate-bounce motion-reduce:animate-none">
  Animated content
</div>

Best Practices

  1. Focus rings on all interactive elements — Buttons, links, inputs
  2. Skip links — Add skip-to-content for keyboard navigation
  3. ARIA labels — Supplement with aria-label when visual text absent
  4. Color is not the only indicator — Use icons/text alongside color
  5. Test with keyboard only — Tab through entire UI flow
  6. Test with screen reader — VoiceOver (macOS), NVDA (Windows)

Reference Guide

NeedReference
Focus rings, keyboard navfocus-patterns.md
sr-only, contrast, touch targetswcag-utilities.md

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.