Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
One-time setup that gathers your project's design context and saves it to CLAUDE.md for future sessions.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
reference/colorize.md
1> **Additional context needed**: existing brand colors.23Replace timid grayscale or single-accent designs with a strategic palette: pick a color strategy, choose a hue family that fits the brand, then apply color with intent. More color ≠ better. Strategic color beats rainbow vomit.45---67## Register89Brand: palette IS voice. Pick a color strategy first per SKILL.md (Restrained / Committed / Full palette / Drenched) and follow its dosage. Committed, Full palette, and Drenched deliberately exceed the ≤10% rule; that rule is Restrained only. Unexpected combinations are allowed; a dominant color can own the page when the chosen strategy calls for it.1011Product: semantic-first and almost always Restrained. Accent color is reserved for primary action, current selection, and state indicators. Not decoration. Every color has a consistent meaning across every screen.1213---1415## Assess Color Opportunity1617Analyze the current state and identify opportunities:18191. **Understand current state**:20- **Color absence**: Pure grayscale? Limited neutrals? One timid accent?21- **Missed opportunities**: Where could color add meaning, hierarchy, or delight?22- **Context**: What's appropriate for this domain and audience?23- **Brand**: Are there existing brand colors we should use?24252. **Identify where color adds value**:26- **Semantic meaning**: Success (green), error (red), warning (yellow/orange), info (blue)27- **Hierarchy**: Drawing attention to important elements28- **Categorization**: Different sections, types, or states29- **Emotional tone**: Warmth, energy, trust, creativity30- **Wayfinding**: Helping users navigate and understand structure31- **Delight**: Moments of visual interest and personality3233If any of these are unclear from the codebase, STOP and use Codex's structured user-input/question tool when available; if unavailable, ask directly in chat to clarify what you cannot infer.3435**CRITICAL**: More color ≠ better. Strategic color beats rainbow vomit every time. Every color should have a purpose.3637## Plan Color Strategy3839Create a purposeful color introduction plan:4041- **Color palette**: What colors match the brand/context? (Choose 2-4 colors max beyond neutrals)42- **Dominant color**: Which color owns 60% of colored elements?43- **Accent colors**: Which colors provide contrast and highlights? (30% and 10%)44- **Application strategy**: Where does each color appear and why?4546**IMPORTANT**: Color should enhance hierarchy and meaning, not create chaos. Less is more when it matters more.4748## Introduce Color Strategically4950Add color systematically across these dimensions:5152### Semantic Color53- **State indicators**:54- Success: Green tones (emerald, forest, mint)55- Error: Red/pink tones (rose, crimson, coral)56- Warning: Orange/amber tones57- Info: Blue tones (sky, ocean, indigo)58- Neutral: Gray/slate for inactive states5960- **Status badges**: Colored backgrounds or borders for states (active, pending, completed, etc.)61- **Progress indicators**: Colored bars, rings, or charts showing completion or health6263### Accent Color Application64- **Primary actions**: Color the most important buttons/CTAs65- **Links**: Add color to clickable text (maintain accessibility)66- **Icons**: Colorize key icons for recognition and personality67- **Headers/titles**: Add color to section headers or key labels68- **Hover states**: Introduce color on interaction6970### Background & Surfaces71- **Tinted backgrounds**: Replace pure gray (`#f5f5f5`) with warm neutrals (`oklch(97% 0.01 60)`) or cool tints (`oklch(97% 0.01 250)`)72- **Colored sections**: Use subtle background colors to separate areas73- **Gradient backgrounds**: Add depth with subtle, intentional gradients (not generic purple-blue)74- **Cards & surfaces**: Tint cards or surfaces slightly for warmth7576**Use OKLCH for color**: It's perceptually uniform, meaning equal steps in lightness *look* equal. Great for generating harmonious scales.7778### Data Visualization79- **Charts & graphs**: Use color to encode categories or values80- **Heatmaps**: Color intensity shows density or importance81- **Comparison**: Color coding for different datasets or timeframes8283### Borders & Accents84- **Hairline borders**: 1px colored borders on full perimeter (not side-stripes; see the absolute ban on `border-left/right > 1px`)85- **Underlines**: Color underlines for emphasis or active states86- **Dividers**: Subtle colored dividers instead of gray lines87- **Focus rings**: Colored focus indicators matching brand88- **Surface tints**: A 4-8% background wash of the accent color instead of a stripe8990**NEVER**: `border-left` or `border-right` greater than 1px as a colored accent stripe. This is one of the three absolute bans in the parent skill. If you want to mark a card as "active" or "warning", use a full hairline border, a background tint, a leading glyph, or a numbered prefix. Not a side stripe.9192### Typography Color93- **Colored headings**: Use brand colors for section headings (maintain contrast)94- **Highlight text**: Color for emphasis or categories95- **Labels & tags**: Small colored labels for metadata or categories9697### Decorative Elements98- **Illustrations**: Add colored illustrations or icons99- **Shapes**: Geometric shapes in brand colors as background elements100- **Gradients**: Colorful gradient overlays or mesh backgrounds101- **Blobs/organic shapes**: Soft colored shapes for visual interest102103## Balance & Refinement104105Ensure color addition improves rather than overwhelms:106107### Maintain Hierarchy108- **Dominant color** (60%): Primary brand color or most used accent109- **Secondary color** (30%): Supporting color for variety110- **Accent color** (10%): High contrast for key moments111- **Neutrals** (remaining): Gray/black/white for structure112113### Accessibility114- **Contrast ratios**: Ensure WCAG compliance (4.5:1 for text, 3:1 for UI components)115- **Don't rely on color alone**: Use icons, labels, or patterns alongside color116- **Test for color blindness**: Verify red/green combinations work for all users117118### Cohesion119- **Consistent palette**: Use colors from defined palette, not arbitrary choices120- **Systematic application**: Same color meanings throughout (green always = success)121- **Temperature consistency**: Warm palette stays warm, cool stays cool122123**NEVER**:124- Use every color in the rainbow (choose 2-4 colors beyond neutrals)125- Apply color randomly without semantic meaning126- Put gray text on colored backgrounds. It looks washed out; use a darker shade of the background color or transparency instead127- Use pure gray for neutrals. Add subtle color tint (warm or cool) for depth128- Use pure black (`#000`) or pure white (`#fff`) for large areas129- Violate WCAG contrast requirements130- Use color as the only indicator (accessibility issue)131- Make everything colorful (defeats the purpose)132- Default to purple-blue gradients (AI slop aesthetic)133134## Verify Color Addition135136Test that colorization improves the experience:137138- **Better hierarchy**: Does color guide attention appropriately?139- **Clearer meaning**: Does color help users understand states/categories?140- **More engaging**: Does the interface feel warmer and more inviting?141- **Still accessible**: Do all color combinations meet WCAG standards?142- **Not overwhelming**: Is color balanced and purposeful?143144When the palette earns its place, hand off to `$impeccable polish` for the final pass.145146## Live-mode signature params147148When invoked from live mode, each variant MUST declare a `color-amount` param so the user can dial between a restrained accent and a drenched surface without regeneration. Author the variant's CSS against `var(--p-color-amount, 0.5)`, typically as the alpha multiplier on backgrounds, or as a scaling factor on the chroma axis in an OKLCH expression. 0 = neutral/monochrome, 1 = full saturation / dominant coverage.149150```json151{"id":"color-amount","kind":"range","min":0,"max":1,"step":0.05,"default":0.5,"label":"Color amount"}152```153154Layer 1-2 variant-specific params on top: palette selection (`steps` with named options), temperature warmth, or tint vs. true color. See `reference/live.md` for the full params contract.155