accessibility
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-03-27
- Stars
- ★ 3
- Forks
- 1
02 资源文件 16
- 参考文档README.md3.2 KB
- 参考文档references/animation.md10.2 KB
- 参考文档references/color-systems.md8.4 KB
- 参考文档references/core-api.md9.6 KB
- 参考文档references/export-pipeline.md15.2 KB
- 参考文档references/interaction.md8.1 KB
- 参考文档references/shapes-and-geometry.md7.0 KB
- 参考文档references/troubleshooting.md12.7 KB
- 参考文档references/typography.md6.6 KB
- 参考文档references/visual-effects.md22.9 KB
- 参考文档references/webgl-and-3d.md8.7 KB
- 脚本scripts/export-frames.js5.3 KB
- 脚本scripts/render.sh2.8 KB
- 脚本scripts/serve.sh833 B
- 脚本scripts/setup.sh2.4 KB
- 参考文档templates/viewer.html10.6 KB
03 SKILL.md 正文
Accessibility (WCAG 2.1)
Core Principles
- Perceivable: Alt text for images, captions for video, sufficient color contrast (4.5:1 min)
- Operable: Full keyboard navigation, no keyboard traps, skip-to-content links
- Understandable: Clear labels, error messages with suggestions, consistent navigation
- Robust: Valid HTML, ARIA roles/states only when native HTML is insufficient
React Patterns
- Use semantic HTML (
<button>,<nav>,<main>) over<div>with roles aria-labelfor icon-only buttons,aria-describedbyfor form hints- Manage focus:
useRef+focus()after route changes or modal open - Live regions:
aria-live="polite"for async status,"assertive"for errors visually-hiddenclass for screen-reader-only text (notdisplay:none)
Component Checklist
- Forms:
<label htmlFor>,aria-invalid,aria-errormessage, required indicator - Modals: Focus trap, Escape to close,
role="dialog",aria-modal="true", return focus on close - Tabs:
role="tablist/tab/tabpanel", arrow key navigation,aria-selected - Dropdowns:
aria-expanded,aria-haspopup, arrow key + Home/End support - Images: Meaningful
alt, emptyalt=""for decorative,role="img"for SVG with<title>
Testing
- axe-core:
npm i -D @axe-core/reactor inject via Playwright - Keyboard-only navigation test: Tab through all interactive elements
- Screen reader: VoiceOver (macOS), NVDA (Windows)
- Color contrast: Chrome DevTools > Rendering > Emulate vision deficiencies
04 同仓库更多 Skills
zustand
Zustand state management guide. Use when working with store code (src/store/**), implementing actions, managing state, or creating slices. Triggers on Zustand store development, state management questions, or action implementation.
web-vitals
暂无简介
vercel-storage
Vercel storage expert guidance — Blob, Edge Config, and Marketplace storage (Neon Postgres, Upstash Redis). Use when choosing, configuring, or using data storage with Vercel applications.
vercel-functions
Vercel Functions expert guidance — Serverless Functions, Edge Functions, Fluid Compute, streaming, Cron Jobs, and runtime configuration. Use when configuring, debugging, or optimizing server-side code running on Vercel.
ui-ux-pro-max
UI/UX design intelligence for web and mobile. Includes 50+ styles, 161 color palettes, 57 font pairings, 161 product types, 99 UX guidelines, and 25 chart types across 10 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui, and HTML/CSS). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, and check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, and mobile app. Elements: button, modal, navbar, sidebar, card, table, form, and chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, and flat design. Topics: color systems, accessibility, animation, layout, typography, font pairing, spacing, interaction states, shadow, and gradient. Integrations: shadcn/ui MCP for component search and examples.
turborepo
Turborepo monorepo build system guidance. Triggers on: turbo.json, task pipelines, dependsOn, caching, remote cache, the "turbo" CLI, --filter, --affected, CI optimization, environment variables, internal packages, monorepo structure/best practices, and boundaries. Use when user: configures tasks/workflows/pipelines, creates packages, sets up monorepo, shares code between apps, runs changed/affected packages, debugs cache, or has apps/packages directories.