cli/assets/skills/brand/references/update.md
Update brand colors, typography, and style - automatically syncs to all design system files.
<args>$ARGUMENTS</args>
This command systematically updates:
docs/brand-guidelines.md - Human-readable brand docassets/design-tokens.json - Token source of truthassets/design-tokens.css - Generated CSS variablesUse AskUserQuestion to collect:
Theme Selection:
Primary Color:
Secondary Color:
Accent Color:
Brand Mood (for AI image generation):
Edit docs/brand-guidelines.md:
Run the sync script:
node .claude/skills/brand/scripts/sync-brand-to-tokens.cjs
This will:
assets/design-tokens.json with new color names and valuesassets/design-tokens.css with correct CSS variablesConfirm all files are updated:
# Check brand context extraction
node .claude/skills/brand/scripts/inject-brand-context.cjs --json | head -30
# Check CSS variables
grep "primary" assets/design-tokens.css | head -5
Output summary:
| File | Purpose |
|---|---|
docs/brand-guidelines.md | Human-readable brand documentation |
assets/design-tokens.json | Token definitions (primitive→semantic→component) |
assets/design-tokens.css | CSS variables for UI components |
brand - Brand context extraction and syncdesign-system - Token generation# Interactive mode
/brand:update
# With theme hint
/brand:update "Ocean Professional"
# Quick preset
/brand:update "midnight purple"
If user specifies a preset name, use these defaults:
| Preset | Primary | Secondary | Accent |
|---|---|---|---|
| ocean-professional | #3B82F6 Ocean Blue | #F59E0B Golden Amber | #10B981 Emerald |
| electric-creative | #FF6B6B Coral | #9B5DE5 Electric Purple | #00F5D4 Neon Mint |
| forest-calm | #059669 Forest Green | #92400E Warm Brown | #FBBF24 Sunlight |
| midnight-purple | #7C3AED Violet | #EC4899 Pink | #06B6D4 Cyan |
| sunset-warm | #F97316 Orange | #DC2626 Red | #FACC15 Yellow |