Frontend Accessibility

Frontend Accessibility

Teaches an AI coding agent to build WCAG-compliant interfaces using semantic HTML, ARIA, keyboard navigation, colour contrast and screen reader support.

Skill files7 files

references/

templates/

SKILL.md89 lines
1
---
2
name: frontend-accessibility
3
description: >
4
Implement WCAG compliance using semantic HTML, ARIA, keyboard navigation, and
5
screen reader support. Use when building inclusive applications for all users.
6
---
7
8
# Frontend Accessibility
9
10
## Table of Contents
11
12
- [Overview](#overview)
13
- [When to Use](#when-to-use)
14
- [Quick Start](#quick-start)
15
- [Reference Guides](#reference-guides)
16
- [Best Practices](#best-practices)
17
18
## Overview
19
20
Build accessible web applications following WCAG guidelines with semantic HTML, ARIA attributes, keyboard navigation, and screen reader support for inclusive user experiences.
21
22
## When to Use
23
24
- Compliance with accessibility standards
25
- Inclusive design requirements
26
- Screen reader support
27
- Keyboard navigation
28
- Color contrast issues
29
30
## Quick Start
31
32
Minimal working example:
33
34
```html
35
<!-- Good semantic structure -->
36
<nav aria-label="Main navigation">
37
<ul>
38
<li><a href="/">Home</a></li>
39
<li><a href="/about">About</a></li>
40
<li><a href="/contact">Contact</a></li>
41
</ul>
42
</nav>
43
44
<main>
45
<article>
46
<header>
47
<h1>Article Title</h1>
48
<time datetime="2024-01-15">January 15, 2024</time>
49
</header>
50
<p>Article content...</p>
51
</article>
52
53
<aside aria-label="Related articles">
54
<h2>Related Articles</h2>
55
<ul>
56
<li><a href="/article1">Article 1</a></li>
57
<li><a href="/article2">Article 2</a></li>
58
</ul>
59
</aside>
60
// ... (see reference guides for full implementation)
61
```
62
63
## Reference Guides
64
65
Detailed implementations in the `references/` directory:
66
67
| Guide | Contents |
68
|---|---|
69
| [Semantic HTML and ARIA](references/semantic-html-and-aria.md) | Semantic HTML and ARIA |
70
| [Keyboard Navigation](references/keyboard-navigation.md) | Keyboard Navigation |
71
| [Color Contrast and Visual Accessibility](references/color-contrast-and-visual-accessibility.md) | Color Contrast and Visual Accessibility |
72
| [Screen Reader Announcements](references/screen-reader-announcements.md) | Screen Reader Announcements |
73
| [Accessibility Testing](references/accessibility-testing.md) | Accessibility Testing |
74
75
## Best Practices
76
77
### ✅ DO
78
79
- Follow established patterns and conventions
80
- Write clean, maintainable code
81
- Add appropriate documentation
82
- Test thoroughly before deploying
83
84
### ❌ DON'T
85
86
- Skip testing or validation
87
- Ignore error handling
88
- Hard-code configuration values
89

© AJ Geddes · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 13,415 prompts

More by @OpenSourceBuffGuy

See all
GTA VI Character Reveal Poster From a Photo prompt image

GTA VI Character Reveal Poster From a Photo

Turns an uploaded photo into a Grand Theft Auto VI style character reveal poster with a loading bar and a small original-photo inset, keeping the person's face and hair.

image-prompt, json-prompt, reference-image, face-reference, style-transfer, guardrails, structured-output, gta-style, video-games, character-design, poster, game-assets, digital-art, illustration, cinematic, vibrant-colors, golden-hour, portrait, long-form, gpt-image, chatgpt, for-artists, placeholders

Late nineties VHS camcorder portrait in night car prompt image

Late nineties VHS camcorder portrait in night car

Creates a late-1990s VHS camcorder portrait of a young woman in a night car, stacking tape artifacts, a burned-in REC overlay and a warm neon colour grade, with a negative list.

image-prompt, gpt-image, reference-image, face-reference, negative-prompt, film-photography, vintage, night-scene, neon, portrait, woman, candid, vertical-format, moody, glitch-art, film-grain, motion-blur, cityscape, cars, romantic, home-video, bokeh, muted-colors, for-photographers, for-artists

Butterfly on Wheat at Golden Sunrise prompt image

Butterfly on Wheat at Golden Sunrise

Paints a classical oil painting of a butterfly resting on a golden wheat stalk in misty backlit sunrise light with dewdrop bokeh.

image-prompt, oil-painting, painting, classical-art, animals, flowers, landscape, golden-hour, bokeh, dramatic-lighting, soft-lighting, vertical-format, macro, dreamy, impressionism, fine-art, vibrant-colors, spring, for-artists, gpt-image, wallpaper, quick

Reviews

Loading reviews…

Discussion

Loading comments…