Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .cursorrules
Original file line number Diff line number Diff line change
Expand Up @@ -458,8 +458,8 @@ generated content must be usable by people with disabilities.

### Content and presentation

- Minimum 3:1 contrast against adjacent colors for UI components, graphical
objects, and text.
- Contrast is at least 4.5:1 for text, 3:1 for large text (24px, or 18.66px
bold), and 3:1 for UI components and graphics against adjacent colors.
- Never use color as the only means of conveying information or state.
- Every `<img>` has a meaningful `alt`, or `alt=""` if genuinely decorative.
- No strobe or flashing. Nothing flashes more than three times per second.
Expand Down
4 changes: 2 additions & 2 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -458,8 +458,8 @@ generated content must be usable by people with disabilities.

### Content and presentation

- Minimum 3:1 contrast against adjacent colors for UI components, graphical
objects, and text.
- Contrast is at least 4.5:1 for text, 3:1 for large text (24px, or 18.66px
bold), and 3:1 for UI components and graphics against adjacent colors.
- Never use color as the only means of conveying information or state.
- Every `<img>` has a meaningful `alt`, or `alt=""` if genuinely decorative.
- No strobe or flashing. Nothing flashes more than three times per second.
Expand Down
4 changes: 2 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -458,8 +458,8 @@ generated content must be usable by people with disabilities.

### Content and presentation

- Minimum 3:1 contrast against adjacent colors for UI components, graphical
objects, and text.
- Contrast is at least 4.5:1 for text, 3:1 for large text (24px, or 18.66px
bold), and 3:1 for UI components and graphics against adjacent colors.
- Never use color as the only means of conveying information or state.
- Every `<img>` has a meaningful `alt`, or `alt=""` if genuinely decorative.
- No strobe or flashing. Nothing flashes more than three times per second.
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@
existing project, then follow the generated rule files. It holds no rules
itself.

### Fixed

- **Text contrast follows WCAG 2.1 AA.** The accessibility rule allowed 3:1 for
all text. Normal text now needs 4.5:1; 3:1 still applies to large text
(24px, or 18.66px bold) and to UI components and graphics. The skill's
summary says the same. See #12.

## 2.5.0

### Changed
Expand Down
4 changes: 2 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -458,8 +458,8 @@ generated content must be usable by people with disabilities.

### Content and presentation

- Minimum 3:1 contrast against adjacent colors for UI components, graphical
objects, and text.
- Contrast is at least 4.5:1 for text, 3:1 for large text (24px, or 18.66px
bold), and 3:1 for UI components and graphics against adjacent colors.
- Never use color as the only means of conveying information or state.
- Every `<img>` has a meaningful `alt`, or `alt=""` if genuinely decorative.
- No strobe or flashing. Nothing flashes more than three times per second.
Expand Down
3 changes: 2 additions & 1 deletion library/tritonai/ucsd-decorator/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,8 @@ missed:
- Every interactive element is keyboard reachable with a visible focus state.
- `tabindex` is only ever `0` or `-1`.
- Never use `title` for tooltips. Never disable viewport zoom.
- Never use color alone to carry meaning; keep 3:1 minimum contrast.
- Never use color alone to carry meaning. Text contrast is at least 4.5:1, or
3:1 for large text; UI components and graphics at least 3:1.
- Bind every input to a `<label>` with `for`/`id`.
- `target="_blank"` requires visible text saying so.
- Touch targets at least 44×44 px.
Expand Down
4 changes: 2 additions & 2 deletions library/tritonai/ucsd-decorator/references/accessibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ generated content must be usable by people with disabilities.

## Content and presentation

- Minimum 3:1 contrast against adjacent colors for UI components, graphical
objects, and text.
- Contrast is at least 4.5:1 for text, 3:1 for large text (24px, or 18.66px
bold), and 3:1 for UI components and graphics against adjacent colors.
- Never use color as the only means of conveying information or state.
- Every `<img>` has a meaningful `alt`, or `alt=""` if genuinely decorative.
- No strobe or flashing. Nothing flashes more than three times per second.
Expand Down
4 changes: 2 additions & 2 deletions rules/40-accessibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ generated content must be usable by people with disabilities.

## Content and presentation

- Minimum 3:1 contrast against adjacent colors for UI components, graphical
objects, and text.
- Contrast is at least 4.5:1 for text, 3:1 for large text (24px, or 18.66px
bold), and 3:1 for UI components and graphics against adjacent colors.
- Never use color as the only means of conveying information or state.
- Every `<img>` has a meaningful `alt`, or `alt=""` if genuinely decorative.
- No strobe or flashing. Nothing flashes more than three times per second.
Expand Down
3 changes: 2 additions & 1 deletion skills/ucsd-decorator/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,8 @@ missed:
- Every interactive element is keyboard reachable with a visible focus state.
- `tabindex` is only ever `0` or `-1`.
- Never use `title` for tooltips. Never disable viewport zoom.
- Never use color alone to carry meaning; keep 3:1 minimum contrast.
- Never use color alone to carry meaning. Text contrast is at least 4.5:1, or
3:1 for large text; UI components and graphics at least 3:1.
- Bind every input to a `<label>` with `for`/`id`.
- `target="_blank"` requires visible text saying so.
- Touch targets at least 44×44 px.
Expand Down
4 changes: 2 additions & 2 deletions skills/ucsd-decorator/references/accessibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ generated content must be usable by people with disabilities.

## Content and presentation

- Minimum 3:1 contrast against adjacent colors for UI components, graphical
objects, and text.
- Contrast is at least 4.5:1 for text, 3:1 for large text (24px, or 18.66px
bold), and 3:1 for UI components and graphics against adjacent colors.
- Never use color as the only means of conveying information or state.
- Every `<img>` has a meaningful `alt`, or `alt=""` if genuinely decorative.
- No strobe or flashing. Nothing flashes more than three times per second.
Expand Down