Strategically introduce color to designs that are too monochromatic, gray, or lacking in visual warmth and personality.
MANDATORY PREPARATION
Invoke /frontend-design — it contains design principles, anti-patterns, and the Context Gathering Protocol. Follow the protocol before proceeding — if no design context exists yet, you MUST run /teach-impeccable first. Additionally gather: existing brand colors.
Assess Color Opportunity
Analyze the current state and identify opportunities:
Understand current state:
- Color absence: Pure grayscale? Limited neutrals? One timid accent?
- Missed opportunities: Where could color add meaning, hierarchy, or delight?
- Context: What's appropriate for this domain and audience?
- Brand: Are there existing brand colors we should use?
Identify where color adds value:
- Semantic meaning: Success (green), error (red), warning (yellow/orange), info (blue)
- Hierarchy: Drawing attention to important elements
- Categorization: Different sections, types, or states
- Emotional tone: Warmth, energy, trust, creativity
- Wayfinding: Helping users navigate and understand structure
- Delight: Moments of visual interest and personality
If any of these are unclear from the codebase, Ask the user using AskUserQuestion.
CRITICAL: More color ≠ better. Strategic color beats rainbow vomit every time. Every color should have a purpose.
Plan Color Strategy
Create a purposeful color introduction plan:
- Color palette: What colors match the brand/context? (Choose 2-4 colors max beyond neutrals)
- Dominant color: Which color owns 60% of colored elements?
- Accent colors: Which colors provide contrast and highlights? (30% and 10%)
- Application strategy: Where does each color appear and why?
IMPORTANT: Color should enhance hierarchy and meaning, not create chaos. Less is more when it matters more.
Introduce Color Strategically
Add color systematically across these dimensions:
Semantic Color
State indicators:
- Success: Green tones (emerald, forest, mint)
- Error: Red/pink tones (rose, crimson, coral)
- Warning: Orange/amber tones
- Info: Blue tones (sky, ocean, indigo)
- Neutral: Gray/slate for inactive states
Status badges: Colored backgrounds or borders for states (active, pending, completed, etc.)
Progress indicators: Colored bars, rings, or charts showing completion or health
Accent Color Application
- Primary actions: Color the most important buttons/CTAs
- Links: Add color to clickable text (maintain accessibility)
- Icons: Colorize key icons for recognition and personality
- Headers/titles: Add color to section headers or key labels
- Hover states: Introduce color on interaction
Background & Surfaces
- Tinted backgrounds: Replace pure gray (
#f5f5f5) with warm neutrals (oklch(97% 0.01 60)) or cool tints (oklch(97% 0.01 250))
- Colored sections: Use subtle background colors to separate areas
- Gradient backgrounds: Add depth with subtle, intentional gradients (not generic purple-blue)
- Cards & surfaces: Tint cards or surfaces slightly for warmth
Use OKLCH for color: It's perceptually uniform, meaning equal steps in lightness look equal. Great for generating harmonious scales.
Data Visualization
- Charts & graphs: Use color to encode categories or values
- Heatmaps: Color intensity shows density or importance
- Comparison: Color coding for different datasets or timeframes
Borders & Accents
- Accent borders: Add colored left/top borders to cards or sections
- Underlines: Color underlines for emphasis or active states
- Dividers: Subtle colored dividers instead of gray lines
- Focus rings: Colored focus indicators matching brand
Typography Color
- Colored headings: Use brand colors for section headings (maintain contrast)
- Highlight text: Color for emphasis or categories
- Labels & tags: Small colored labels for metadata or categories
Decorative Elements
- Illustrations: Add colored illustrations or icons
- Shapes: Geometric shapes in brand colors as background elements
- Gradients: Colorful gradient overlays or mesh backgrounds
- Blobs/organic shapes: Soft colored shapes for visual interest
Balance & Refinement
Ensure color addition improves rather than overwhelms:
Maintain Hierarchy
- Dominant color (60%): Primary brand color or most used accent
- Secondary color (30%): Supporting color for variety
- Accent color (10%): High contrast for key moments
- Neutrals (remaining): Gray/black/white for structure
Accessibility
- Contrast ratios: Ensure WCAG compliance (4.5:1 for text, 3:1 for UI components)
- Don't rely on color alone: Use icons, labels, or patterns alongside color
- Test for color blindness: Verify red/green combinations work for all users
Cohesion
- Consistent palette: Use colors from defined palette, not arbitrary choices
- Systematic application: Same color meanings throughout (green always = success)
- Temperature consistency: Warm palette stays warm, cool stays cool
NEVER:
- Use every color in the rainbow (choose 2-4 colors beyond neutrals)
- Apply color randomly without semantic meaning
- Put gray text on colored backgrounds—it looks washed out; use a darker shade of the background color or transparency instead
- Use pure gray for neutrals—add subtle color tint (warm or cool) for sophistication
- Use pure black (
#000) or pure white (#fff) for large areas
- Violate WCAG contrast requirements
- Use color as the only indicator (accessibility issue)
- Make everything colorful (defeats the purpose)
- Default to purple-blue gradients (AI slop aesthetic)
Verify Color Addition
Test that colorization improves the experience:
- Better hierarchy: Does color guide attention appropriately?
- Clearer meaning: Does color help users understand states/categories?
- More engaging: Does the interface feel warmer and more inviting?
- Still accessible: Do all color combinations meet WCAG standards?
- Not overwhelming: Is color balanced and purposeful?
Remember: Color is emotional and powerful. Use it to create warmth, guide attention, communicate meaning, and express personality. But restraint and strategy matter more than saturation and variety. Be colorful, but be intentional.
1---
2name: colorize
3description: "Add strategic color to features that are too monochromatic or lack visual interest, making interfaces more engaging and expressive. Use when the user mentions the design looking gray, dull, lacking warmth, needing more color, or wanting a more vibrant or expressive palette."
4argument-hint: "[target]"
5user-invocable: false
6---
7
8Strategically introduce color to designs that are too monochromatic, gray, or lacking in visual warmth and personality.
9
10## MANDATORY PREPARATION
11
12Invoke /frontend-design — it contains design principles, anti-patterns, and the **Context Gathering Protocol**. Follow the protocol before proceeding — if no design context exists yet, you MUST run /teach-impeccable first. Additionally gather: existing brand colors.
13
14---
15
16## Assess Color Opportunity
17
18Analyze the current state and identify opportunities:
19
201. **Understand current state**:
21 - **Color absence**: Pure grayscale? Limited neutrals? One timid accent?
22 - **Missed opportunities**: Where could color add meaning, hierarchy, or delight?
23 - **Context**: What's appropriate for this domain and audience?
24 - **Brand**: Are there existing brand colors we should use?
25
262. **Identify where color adds value**:
27 - **Semantic meaning**: Success (green), error (red), warning (yellow/orange), info (blue)
28 - **Hierarchy**: Drawing attention to important elements
29 - **Categorization**: Different sections, types, or states
30 - **Emotional tone**: Warmth, energy, trust, creativity
31 - **Wayfinding**: Helping users navigate and understand structure
32 - **Delight**: Moments of visual interest and personality
33
34If any of these are unclear from the codebase, Ask the user using AskUserQuestion.
35
36**CRITICAL**: More color ≠ better. Strategic color beats rainbow vomit every time. Every color should have a purpose.
37
38## Plan Color Strategy
39
40Create a purposeful color introduction plan:
41
42- **Color palette**: What colors match the brand/context? (Choose 2-4 colors max beyond neutrals)
43- **Dominant color**: Which color owns 60% of colored elements?
44- **Accent colors**: Which colors provide contrast and highlights? (30% and 10%)
45- **Application strategy**: Where does each color appear and why?
46
47**IMPORTANT**: Color should enhance hierarchy and meaning, not create chaos. Less is more when it matters more.
48
49## Introduce Color Strategically
50
51Add color systematically across these dimensions:
52
53### Semantic Color
54- **State indicators**:
55 - Success: Green tones (emerald, forest, mint)
56 - Error: Red/pink tones (rose, crimson, coral)
57 - Warning: Orange/amber tones
58 - Info: Blue tones (sky, ocean, indigo)
59 - Neutral: Gray/slate for inactive states
60
61- **Status badges**: Colored backgrounds or borders for states (active, pending, completed, etc.)
62- **Progress indicators**: Colored bars, rings, or charts showing completion or health
63
64### Accent Color Application
65- **Primary actions**: Color the most important buttons/CTAs
66- **Links**: Add color to clickable text (maintain accessibility)
67- **Icons**: Colorize key icons for recognition and personality
68- **Headers/titles**: Add color to section headers or key labels
69- **Hover states**: Introduce color on interaction
70
71### Background & Surfaces
72- **Tinted backgrounds**: Replace pure gray (`#f5f5f5`) with warm neutrals (`oklch(97% 0.01 60)`) or cool tints (`oklch(97% 0.01 250)`)
73- **Colored sections**: Use subtle background colors to separate areas
74- **Gradient backgrounds**: Add depth with subtle, intentional gradients (not generic purple-blue)
75- **Cards & surfaces**: Tint cards or surfaces slightly for warmth
76
77**Use OKLCH for color**: It's perceptually uniform, meaning equal steps in lightness *look* equal. Great for generating harmonious scales.
78
79### Data Visualization
80- **Charts & graphs**: Use color to encode categories or values
81- **Heatmaps**: Color intensity shows density or importance
82- **Comparison**: Color coding for different datasets or timeframes
83
84### Borders & Accents
85- **Accent borders**: Add colored left/top borders to cards or sections
86- **Underlines**: Color underlines for emphasis or active states
87- **Dividers**: Subtle colored dividers instead of gray lines
88- **Focus rings**: Colored focus indicators matching brand
89
90### Typography Color
91- **Colored headings**: Use brand colors for section headings (maintain contrast)
92- **Highlight text**: Color for emphasis or categories
93- **Labels & tags**: Small colored labels for metadata or categories
94
95### Decorative Elements
96- **Illustrations**: Add colored illustrations or icons
97- **Shapes**: Geometric shapes in brand colors as background elements
98- **Gradients**: Colorful gradient overlays or mesh backgrounds
99- **Blobs/organic shapes**: Soft colored shapes for visual interest
100
101## Balance & Refinement
102
103Ensure color addition improves rather than overwhelms:
104
105### Maintain Hierarchy
106- **Dominant color** (60%): Primary brand color or most used accent
107- **Secondary color** (30%): Supporting color for variety
108- **Accent color** (10%): High contrast for key moments
109- **Neutrals** (remaining): Gray/black/white for structure
110
111### Accessibility
112- **Contrast ratios**: Ensure WCAG compliance (4.5:1 for text, 3:1 for UI components)
113- **Don't rely on color alone**: Use icons, labels, or patterns alongside color
114- **Test for color blindness**: Verify red/green combinations work for all users
115
116### Cohesion
117- **Consistent palette**: Use colors from defined palette, not arbitrary choices
118- **Systematic application**: Same color meanings throughout (green always = success)
119- **Temperature consistency**: Warm palette stays warm, cool stays cool
120
121**NEVER**:
122- Use every color in the rainbow (choose 2-4 colors beyond neutrals)
123- Apply color randomly without semantic meaning
124- Put gray text on colored backgrounds—it looks washed out; use a darker shade of the background color or transparency instead
125- Use pure gray for neutrals—add subtle color tint (warm or cool) for sophistication
126- Use pure black (`#000`) or pure white (`#fff`) for large areas
127- Violate WCAG contrast requirements
128- Use color as the only indicator (accessibility issue)
129- Make everything colorful (defeats the purpose)
130- Default to purple-blue gradients (AI slop aesthetic)
131
132## Verify Color Addition
133
134Test that colorization improves the experience:
135
136- **Better hierarchy**: Does color guide attention appropriately?
137- **Clearer meaning**: Does color help users understand states/categories?
138- **More engaging**: Does the interface feel warmer and more inviting?
139- **Still accessible**: Do all color combinations meet WCAG standards?
140- **Not overwhelming**: Is color balanced and purposeful?
141
142Remember: Color is emotional and powerful. Use it to create warmth, guide attention, communicate meaning, and express personality. But restraint and strategy matter more than saturation and variety. Be colorful, but be intentional.