본문으로 건너뛰기
cccskills
무료GitHub에 공개

accessibility-a11y

Implement web accessibility (a11y) best practices following WCAG guidelines to create inclusive, accessible user interfaces.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md5.2 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Accessibility (a11y) Best Practices

You are an expert in web accessibility and inclusive design. Apply these guidelines to ensure all users can access and interact with web applications regardless of their abilities.

Core Accessibility Principles

  • Follow WCAG (Web Content Accessibility Guidelines) standards
  • Use semantic HTML to improve accessibility and screen reader compatibility
  • Ensure high accessibility standards using ARIA roles and native accessibility props
  • Design for all users including those with visual, auditory, motor, and cognitive disabilities
  • Test with various assistive technologies

Semantic HTML

Structural Elements

  • Use semantic elements like <header>, <main>, <footer>, <nav>, <article>, <section>, <aside>
  • Employ <button> for interactive elements, not <div> or <span>
  • Use proper heading hierarchy (h1-h6) without skipping levels
  • Use landmarks (e.g., <nav>, <main>, <aside>) for screen reader navigation
  • Avoid deprecated markup

Form Accessibility

  • Associate labels with form inputs using for and id attributes
  • Group related form elements with <fieldset> and <legend>
  • Provide clear error messages and validation feedback
  • Use appropriate input types (email, tel, number, etc.)
  • Include placeholder text as supplementary hints, not replacements for labels

ARIA Implementation

When to Use ARIA

  • Use ARIA roles and attributes to enhance accessibility where semantic HTML is insufficient
  • Prefer native HTML elements over ARIA when possible
  • Use aria-label for elements without visible text labels
  • Implement aria-describedby for additional context
  • Use aria-live regions for dynamic content updates

Common ARIA Patterns

  • Use role="button" only when a non-button element must act as a button
  • Implement aria-expanded for collapsible content
  • Use aria-hidden="true" for decorative elements
  • Apply aria-current="page" for navigation highlighting
  • Use aria-labelledby to reference visible labels

Visual Accessibility

Color and Contrast

  • Ensure sufficient color contrast for text (minimum 4.5:1 for normal text, 3:1 for large text)
  • Never use color as the only means of conveying information
  • Provide alternative indicators (icons, patterns, text) alongside color
  • Test designs with color blindness simulators

Focus Management

  • Use focus styles to indicate focus state clearly
  • Ensure visible focus indicators on all interactive elements
  • Manage focus appropriately when content changes dynamically
  • Avoid removing outline styles without providing alternatives
  • Implement logical tab order

Keyboard Navigation

Navigation Requirements

  • Provide keyboard navigation for all interactive elements
  • Ensure all functionality is accessible via keyboard alone
  • Use tabindex appropriately (0 for natural order, -1 for programmatic focus)
  • Implement keyboard shortcuts for complex interactions
  • Avoid keyboard traps

Interactive Elements

  • Ensure interactive elements are large enough for touch (minimum 44x44 pixels)
  • Implement keyboard event handlers (onKeyDown, onKeyPress) alongside click handlers
  • Support Enter and Space keys for activating buttons
  • Implement arrow key navigation for complex widgets

Content Accessibility

Images and Media

  • Ensure all images have descriptive alt text
  • Use empty alt="" for decorative images
  • Provide captions for videos
  • Include transcripts for audio content
  • Use descriptive link text (avoid "click here")

Text and Typography

  • Use relative units (rem, em) for typography
  • Ensure text can be resized up to 200% without loss of functionality
  • Maintain adequate line height and letter spacing
  • Avoid justified text which can create uneven spacing
  • Support user preferences for reduced motion

Responsive and Adaptive Design

Mobile-First Approach

  • Design mobile-first, then scale upward
  • Implement responsive layouts that work across devices
  • Ensure touch targets are appropriately sized
  • Support both portrait and landscape orientations

User Preferences

  • Respect prefers-reduced-motion for animations
  • Support prefers-color-scheme for dark/light modes
  • Consider prefers-contrast for high contrast needs
  • Implement prefers-reduced-transparency when applicable

Testing and Validation

Automated Testing

  • Use tools like Lighthouse for accessibility audits
  • Integrate axe-core for automated accessibility testing
  • Run accessibility checks in CI/CD pipelines
  • Address all critical and serious accessibility issues

Manual Testing

  • Test with screen readers (NVDA, JAWS, VoiceOver)
  • Navigate entirely by keyboard
  • Test with browser zoom at 200%
  • Use browser accessibility inspection tools
  • Test with actual users who have disabilities when possible

CSS Best Practices for Accessibility

  • Use external stylesheets; avoid inline styles for maintainability
  • Leverage Flexbox and Grid for robust layouts
  • Use class selectors for styling (BEM naming methodology recommended)
  • Implement responsive design with media queries
  • Ensure hover states also have focus equivalents

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

fellipeutaka/kanpeki332026년 8월 28일 업데이트

bun

무료

Bun runtime, package manager, bundler, and test runner. Use when running scripts with bun, managing packages, serving HTTP with Bun.serve, querying databases with Bun.sql/bun:sqlite/Bun.redis, shell scripting with $, using S3/file I/O, writing tests with bun:test, bundling or compiling to executable, or using any Bun-specific API (spawn, glob, semver, FFI, workers, plugins, HTMLRewriter).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

fellipeutaka/kanpeki332026년 8월 28일 업데이트

Create high-quality git commits: review/stage intended changes, split into logical commits, and write clear commit messages (including Conventional Commits). Use when the user asks to commit, craft a commit message, stage changes, or split work into multiple commits.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

fellipeutaka/kanpeki332026년 8월 28일 업데이트

denji

무료

Manage SVG icons as framework components using Denji CLI. Use when the user needs to add, remove, list, or manage SVG icons in React, Preact, Solid, Qwik, Vue, or Svelte projects. Triggers include requests to "add an icon", "set up icons", "manage SVG icons", "remove an icon", "list icons", or any task involving Iconify icons as framework components.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

fellipeutaka/kanpeki332026년 8월 28일 업데이트

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

fellipeutaka/kanpeki332026년 8월 28일 업데이트

This skill is for interface design — dashboards, admin panels, apps, tools, and interactive products. NOT for marketing design (landing pages, marketing sites, campaigns).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

fellipeutaka/kanpeki332026년 8월 28일 업데이트

fellipeutaka의 스킬 모두 보기

이 스킬의 문제 신고