Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
AI-powered brand identity skill for generating cohesive brand guidelines, color palettes, and visual identity.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/update.md
1Update brand colors, typography, and style - automatically syncs to all design system files.23<args>$ARGUMENTS</args>45## Overview67This command systematically updates:81. `docs/brand-guidelines.md` - Human-readable brand doc92. `assets/design-tokens.json` - Token source of truth103. `assets/design-tokens.css` - Generated CSS variables1112## Workflow1314### Step 1: Gather Brand Input1516Use `AskUserQuestion` to collect:1718**Theme Selection:**19- Theme name (e.g., "Ocean Professional", "Electric Creative", "Forest Calm")2021**Primary Color:**22- Color name (e.g., "Ocean Blue", "Coral", "Forest Green")23- Hex code (e.g., #3B82F6)2425**Secondary Color:**26- Color name (e.g., "Golden Amber", "Electric Purple")27- Hex code2829**Accent Color:**30- Color name (e.g., "Emerald", "Neon Mint")31- Hex code3233**Brand Mood (for AI image generation):**34- Mood keywords (e.g., "professional, trustworthy, premium" or "bold, creative, energetic")3536### Step 2: Update Brand Guidelines3738Edit `docs/brand-guidelines.md`:39401. **Quick Reference table** - Update color names and hex codes412. **Brand Concept section** - Update theme name and description423. **Color Palette section** - Update Primary, Secondary, Accent colors with shades434. **AI Image Generation section** - Update base prompt, keywords, mood descriptors4445### Step 3: Sync to Design Tokens4647Run the sync script:48```bash49node .claude/skills/brand/scripts/sync-brand-to-tokens.cjs50```5152This will:53- Update `assets/design-tokens.json` with new color names and values54- Regenerate `assets/design-tokens.css` with correct CSS variables5556### Step 4: Verify Sync5758Confirm all files are updated:59```bash60# Check brand context extraction61node .claude/skills/brand/scripts/inject-brand-context.cjs --json | head -306263# Check CSS variables64grep "primary" assets/design-tokens.css | head -565```6667### Step 5: Report6869Output summary:70- Theme: [name]71- Primary: [name] ([hex])72- Secondary: [name] ([hex])73- Accent: [name] ([hex])74- Files updated: brand-guidelines.md, design-tokens.json, design-tokens.css7576## Files Modified7778| File | Purpose |79|------|---------|80| `docs/brand-guidelines.md` | Human-readable brand documentation |81| `assets/design-tokens.json` | Token definitions (primitive→semantic→component) |82| `assets/design-tokens.css` | CSS variables for UI components |8384## Skills Used8586- `brand` - Brand context extraction and sync87- `design-system` - Token generation8889## Examples9091```bash92# Interactive mode93/brand:update9495# With theme hint96/brand:update "Ocean Professional"9798# Quick preset99/brand:update "midnight purple"100```101102## Color Presets103104If user specifies a preset name, use these defaults:105106| Preset | Primary | Secondary | Accent |107|--------|---------|-----------|--------|108| ocean-professional | #3B82F6 Ocean Blue | #F59E0B Golden Amber | #10B981 Emerald |109| electric-creative | #FF6B6B Coral | #9B5DE5 Electric Purple | #00F5D4 Neon Mint |110| forest-calm | #059669 Forest Green | #92400E Warm Brown | #FBBF24 Sunlight |111| midnight-purple | #7C3AED Violet | #EC4899 Pink | #06B6D4 Cyan |112| sunset-warm | #F97316 Orange | #DC2626 Red | #FACC15 Yellow |113114## Important115116- **Always sync all three files** - Never update just brand-guidelines.md alone117- **Verify extraction** - Run inject-brand-context.cjs after update to confirm118- **Test image generation** - Optionally generate a test image to verify brand application119