Check Tailwind colour contrast
tailwind_contrastCalculate WCAG contrast ratios for foreground and background colors, such as Tailwind theme tokens or CSS values, to check if text passes AA or AAA.
Instructions
Compute the WCAG contrast ratio of two colours and whether they pass AA or AAA. Colours may be theme tokens such as 'red-500' or 'white', or literal CSS colours.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | Absolute path to the project to inspect. Defaults to the server's working directory. Use it when the Tailwind project is not the current working directory. | |
| background | Yes | The background colour, e.g. 'slate-900' or 'white' or '#fff' | |
| foreground | Yes | The text colour, e.g. 'white' or 'red-500' or '#333' |