Load 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.
$npx -y skills add mgifford/accessibility-skills --skill color-contrastInstalls into the current project.
Run `npx skills use "https://github.com/mgifford/accessibility-skills" --skill "mgifford/accessibility-skills/color-contrast"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/mgifford/accessibility-skills" that are relevant to the current task. Run `npx skills add "https://github.com/mgifford/accessibility-skills"` and select the relevant skills, then follow their instructions.