本文へ移動
cccskills
無料GitHub で公開

manage-color-contrast

Ensure WCAG AA accessibility and readability

日本語の概要は準備中です。原文の説明を表示しています。

gnurio/refactoring-ui-pluginスター 453(GitHub 453 + cccskills 0)

実行スコア 未検証

インストール方法を見る

含まれるファイル(1)

  • SKILL.md2.6 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Skill: Manage Color Contrast

Purpose

Ensure text and interactive elements have sufficient contrast against their backgrounds for readability and accessibility.

Type

Evaluative + Corrective

Input

  • Text colors and sizes
  • Background colors
  • UI element specifications

Output

  • Contrast ratio calculations
  • Pass/Fail against WCAG standards
  • Recommendations for fixes

Transformation Performed

Calculates contrast ratios and ensures compliance with WCAG AA standards (4.5:1 for normal text, 3:1 for large text and UI components).

Decision Criteria

PASS (Good Contrast)

  • Normal text (< 18px): 4.5:1 minimum (WCAG AA)
  • Large text (≥ 18px bold or ≥ 24px): 3:1 minimum
  • UI components (buttons, inputs): 3:1 minimum for boundaries
  • Focus indicators: 3:1 minimum against adjacent colors

FAIL (Poor Contrast)

  • Light gray text on white (< 4.5:1)
  • White text on light colors
  • Disabled states that look like active (too much contrast)
  • Placeholder text same as input text

Contrast Ratio Quick Reference

Text Color on WhiteRatioPass AA?
#000000 (black)21:1✓
#33333312.6:1✓
#6666665.9:1✓
#7575754.6:1✓ (minimum)
#9999992.8:1✗
#CCCCCC1.6:1✗

Common Failure Modes

FailureDescriptionFix
Light Gray Text#999 or lighter for body textUse #666 minimum, #333 preferred
Ghost TextPlaceholder same as valueMake placeholder lighter (#999)
Low-contrast PrimaryBrand color too light for white textDarken brand color or use dark text
Subtle LinksLinks barely different from textAdd underline or increase contrast
Disabled ConfusionDisabled buttons too prominentReduce to 30% opacity or use gray
Icon FadeIcons too light to seeMatch text color or use higher contrast

Prerequisites

  • Color palette defined
  • Typography scale defined

Dependencies

  • build-color-palette (gray scale needed)

Refactoring UI References

  • "Don't use grey text on colored backgrounds"
  • "Ensure sufficient contrast"

Example Assessment

Input: Body text #888888 on white background

Evaluation: FAIL

  • Ratio: ~3.5:1
  • Below 4.5:1 requirement

Recommendation: Change to #666666 (5.9:1) minimum Prefer #333333 or #1A1A1A for body text

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

Use systematic spacing with 25% minimum jumps, start with excess whitespace

日本語の概要は準備中です。原文の説明を表示しています。

gnurio/refactoring-ui-plugin4532026年4月26日 更新

Create clear typographic hierarchy using hand-crafted font sizes, weights, and colors

日本語の概要は準備中です。原文の説明を表示しています。

gnurio/refactoring-ui-plugin4532026年4月26日 更新

Create comprehensive palette with 8-10 greys, 5-10 primary, 5-10 accent shades

日本語の概要は準備中です。原文の説明を表示しています。

gnurio/refactoring-ui-plugin4532026年4月26日 更新

Create clear primary/secondary/tertiary action distinctions

日本語の概要は準備中です。原文の説明を表示しています。

gnurio/refactoring-ui-plugin4532026年4月26日 更新

Create helpful, actionable zero-content states

日本語の概要は準備中です。原文の説明を表示しています。

gnurio/refactoring-ui-plugin4532026年4月26日 更新

Remove unnecessary borders, backgrounds, shadows, decorations

日本語の概要は準備中です。原文の説明を表示しています。

gnurio/refactoring-ui-plugin4532026年4月26日 更新

gnurio のスキルをすべて見る

このスキルの問題を報告する