Skip to content
Development
Command

/suggest-colors

Suggest alternative colors that meet WCAG contrast requirements.

From plugin
rohitg00-claude-code-toolkit
2.5k199 skills138 agents199 commands
Install
$ npx -y skills add rohitg00/awesome-claude-code-toolkit --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/suggest-colors

Context preview

What this command does when you run it.

Suggest alternative colors that meet WCAG contrast requirements.

Command definition

suggest-colors.md

/suggest-colors - Suggest Accessible Colors

Suggest alternative colors that meet WCAG contrast requirements.

Steps

1. Identify the failing color pairs from the contrast audit 2. For each failing pair, determine the target ratio: 4.5:1 (AA normal) or 3:1 (AA large) 3. Calculate the minimum adjustment needed to meet the target ratio 4. Generate color alternatives by adjusting lightness while preserving hue and saturation 5. Provide at least 3 alternative colors for each failing pair 6. Verify each suggestion meets the target contrast ratio 7. Check that suggested colors fit within the project's design system palette 8. Show color swatches (hex codes) with their contrast ratios 9. Suggest pairing options: darkening the foreground vs lightening the background 10. Verify suggested colors also work for color-blind users (deuteranopia, protanopia) 11. Generate a CSS variable override file with the accessible alternatives 12. Present before/after comparison showing the visual difference

Rules

  • Prefer minimal color changes to maintain the design intent
  • Suggest colors that stay within the same hue family
  • Provide options for both adjusting foreground and background
  • Check suggestions against the full color palette for consistency
  • Verify suggestions work for all color blindness types
  • Do not suggest pure black/white unless the design already uses them
  • Include the exact hex/RGB values for easy implementation
Read more
Ships withrohitg00-claude-code-toolkit

The most comprehensive toolkit for Claude Code -- 135 agents, 35 curated skills (+400,000 via SkillKit), 42 commands, 176+ plugins, 20 hooks, 15 rules, 7 templates, 15 MCP configs, 26 companion apps, 53 ecosystem entries, and more.

Get the whole plugin