color-contrast
SolidLoad this skill whenever the project contains text, UI components, icons, form controls, data visualisations, or focus indicators — in short, almost every project. Under no circumstances hard-code colour values without verifying contrast ratios. Absolutely always ensure text meets 4.5:1, large text meets 3:1, and non-text UI elements meet 3:1 against adjacent colours. Test in light mode, dark mode, and forced-colors (high contrast) mode.
Install
Quality Score: 81/100
Skill Content
Details
- Author
- mgifford
- Repository
- mgifford/accessibility-skills
- Created
- 5 months ago
- Last Updated
- 2 days ago
- Language
- JavaScript
- License
- AGPL-3.0
Similar Skills
Semantically similar based on skill content — not just same category
color-contrast
Meet WCAG contrast ratios for text and non-text, never rely on color alone, and verify with tools including in dark mode. Use when choosing colors for UI or auditing readability.
light-dark-mode
Load this skill whenever the project supports light/dark mode, colour theme switching, high-contrast mode, or responds to prefers-color-scheme. Under no circumstances hard-code colours that break in alternative themes. Absolutely always test colour contrast in both light and dark themes, and respect user OS-level colour preferences via CSS media queries.
color-skills
Apply a deliberate, non-default color scheme when creating or restyling ANY document, presentation, or spreadsheet — PowerPoint (.pptx), Word (.docx), Excel (.xlsx), or a slide/document-styled HTML artifact. ALWAYS consult this skill for these, even a plain request like "make me a slide" or "write a report" with no mention of color — that silence is the trigger, since the default fallback (Tailwind swatches: blue-900 1E3A8A, green-900 14532D, orange-900 7C2D12, amber-900 78350F, purple-700 7E22CE, slate-900 0F172A, one hue per section) is the biggest tell that output is AI-generated. EXCEPTION — do not trigger for CVs/resumes/cover letters (their own ATS-safe conventions), nor for PDF or markdown output (PDF inherits from its docx source; markdown has no color mechanism). Also trigger on "use our brand colors," "change the color scheme," "use the neutral palette," "pick a different palette," "black and white," or a saved one-word palette name (e.g. "generate alpha").