color-consistency-checker

Detect hardcoded hex colors in TypeScript and TSX files and suggest Tailwind CSS classes.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/jonsdoesch87-ai/craft-beer-wizard --skill color-consistency-checker
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: color-consistency-checker
Source: https://github.com/jonsdoesch87-ai/craft-beer-wizard/tree/main/.cursor/skills/color-consistency-checker
Command: npx skills add https://github.com/jonsdoesch87-ai/craft-beer-wizard --skill color-consistency-checker

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill identifies and helps rectify inconsistent color usage within a project, specifically by finding hardcoded hex color values that should be replaced with semantic Tailwind CSS classes.

Core Features & Use Cases

  • Hardcoded Color Detection: Scans code for hardcoded hex color values.
  • Tailwind Class Suggestion: Recommends appropriate Tailwind CSS classes for replacement.
  • Consistency Enforcement: Helps maintain a unified visual style across the project.
  • Use Case: During a code review, run this Skill to quickly spot any stray hex codes that deviate from the project's established color palette, ensuring brand consistency.

Quick Start

Run the color-consistency-checker skill to find hardcoded hex colors in the project's TypeScript files.

Frequently Asked Questions about color-consistency-checker

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find hardcoded hex colors in TypeScript files?

To find hardcoded hex colors in TypeScript files, scan the codebase for hex values and suggest replacements with semantic Tailwind CSS classes. This process identifies inconsistencies in primary colors, hover states, and background shades.

What is the best way to enforce color consistency in a Tailwind project?

Enforcing color consistency involves checking TypeScript and TSX files against a predefined color schema in `tailwind.config.ts` and `app/globals.css`. It suggests replacing hardcoded hex values with semantic Tailwind classes to maintain visual uniformity.

How does hardcoded color detection work for frontend code reviews?

Hardcoded color detection works by scanning TypeScript and TSX files for stray hex values during a code review. It validates these values against your established color palette and recommends appropriate Tailwind CSS class replacements.

Can I check TSX files for color inconsistencies against my tailwind config?

Yes, you can check TSX files for color inconsistencies by validating them against a predefined color schema defined in `tailwind.config.ts`. The checker identifies hardcoded hex values and suggests semantic Tailwind CSS classes as replacements.

What are the limitations of using Tailwind classes to replace hex colors?

A limitation of replacing hex colors with Tailwind classes is that valid replacements depend entirely on a predefined color schema in `tailwind.config.ts` and `app/globals.css`. Hardcoded values deviating from this established palette must be manually updated to match.