check_color_contrast
Analyze CSS to detect low-contrast color pairs, mixed color sources, and low opacity on text that cause readability issues across theme changes.
Instructions
Detects color contrast issues in CSS: low-contrast hardcoded color pairs (light-on-light, dark-on-dark), mixed color sources (one design token + one hardcoded), and low opacity on text. Catches patterns that break readability across theme changes.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cssText | Yes | CSS code to analyze for color contrast issues |