/saas-design-principles:accessibilityfrom saas-design-principles
Guides WCAG 2.2 AA compliance, keyboard navigation, focus management, ARIA, color contrast, and SPA accessibility fixes. Includes testing and component primitive recommendations.
Ships in saas-design-principles. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
WCAG 2.2 Level AA is the target — not because it is aspirational, but because it is law. The ADA Title II final rule requires WCAG 2.1 AA compliance for government-facing software. The European Accessibility Act applies to any SaaS accessible to EU citizens. Over 4,000 accessibility lawsuits were filed in 2023 alone.
Every interactive element must be operable by keyboard alone:
| Key | Action |
|---|---|
| Tab | Navigate between elements |
| Enter/Space | Activate element |
| Escape | Close modals, popovers, dropdowns — always |
| Arrow keys | Navigate within composite widgets |
Focus must always be visible. Many CSS resets strip :focus styles — this is a critical accessibility violation. Ensure every focusable element has a visible focus indicator.
Single-page applications break three browser behaviors that most teams miss entirely. Traditional page loads reset focus, announce the new page title, and reset scroll position. SPAs break all three.
Mandatory SPA fixes:
tabindex="-1" on the element receiving programmatic focus<title> tag on every navigationWhen uncertain where to place focus after navigation, move it to the top of the page — it is always correct.
Do not build modals, dialogs, or dropdown menus from scratch. The edge cases are vast and the failure modes are invisible to sighted developers.
Use libraries like Radix UI (the foundation of shadcn/ui) that handle ARIA attributes, focus management, and keyboard navigation internally.
Automated testing catches roughly 30% of accessibility issues. Manual testing catches the rest.
Manual testing methods:
Working implementations in examples/:
examples/spa-route-change-focus.md — Title update, focus management, and ARIA announcements for React Router, Vue Router, and SvelteKitexamples/keyboard-navigation-composite.md — Roving tabindex pattern for tab panels, with comparison to Radix UI primitivesWhen reviewing or building for accessibility:
:focus styles<title> tag updates on every navigationalt="" for decorative images)What SKILL.md sets; muted values are Claude Code's defaults
13 skills in this plugin
/authenticationThis skill should be used when the user is building or reviewing login flows, magic links, SSO (SAML/OIDC), multi-factor authentication (MFA), OTP input fields, password reset, or session management. Covers the modern auth stack hierarchy, MFA fatigue prevention, session expiry UX, and GDPR compliance for authentication./data-tablesThis skill should be used when the user is building or reviewing data tables, pagination, column alignment, bulk actions, sorting, filtering, row selection, or table-to-card responsive patterns. Covers the pagination vs infinite scroll decision, DataTable vs IndexTable patterns, and column default strategy./design-tokensThis skill should be used when the user is building or reviewing theming systems, design tokens, dark mode implementation, CSS custom properties, color naming conventions, or theme switching architecture. Covers the three-tier token model (primitive/semantic/component), purpose-based naming, and the DTCG specification./error-handlingThis skill should be used when the user is building or reviewing error states, validation errors, permission errors (403), session expiry warnings, offline handling, concurrent edit conflicts, rate limiting, or server error (500) recovery flows. Covers the full taxonomy of SaaS failure modes and graceful degradation patterns./form-designThis skill should be used when the user is building or reviewing form validation, inline validation, auto-save vs explicit save patterns, form error messages, multi-step wizards, toggle switches, or input fields. Covers the "reward early, punish late" validation strategy and form UX best practices./notification-hierarchyThis skill should be used when the user is building or reviewing toast notifications, banners, modal dialogs, inline messages, snackbars, or alert systems. Covers the four-tier notification hierarchy, feedback patterns, success and error messaging, and alert fatigue prevention.npx claudepluginhub oborchers/fractional-cto --plugin saas-design-principlesOther plugins' skills for the same job