ui-ux-master 1.2.1 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,278 @@
1
+ # Brand Method: Utility Command Center
2
+
3
+ Use this skill when building for ecommerce, logistics, booking platforms, dashboards, admin tools, marketplaces with strong search/filter, or any context where the user's primary goal is to find, track, order, or manage something fast.
4
+
5
+ Reference brands: Amazon, FedEx, UPS, DHL, Booking.com, Expedia, Walmart, Target, Costco, IKEA, Dell, Domino's.
6
+
7
+ ---
8
+
9
+ ## When to Apply This Method
10
+
11
+ Apply Utility Command Center when:
12
+ - Speed and task completion are the primary UX goals.
13
+ - Users arrive with a specific item, destination, order, or task in mind.
14
+ - The product catalog or inventory is large (hundreds to millions of items).
15
+ - Users compare, filter, track, or manage rather than just browse.
16
+
17
+ Do not apply when:
18
+ - Brand aspiration or emotion drives the visit (use Product Cinema or Editorial Brand World).
19
+ - The product is premium/luxury (use Premium Restraint).
20
+ - The primary user action is sign-up or subscription (use Conversion Simplicity).
21
+
22
+ ---
23
+
24
+ ## Layout Structure
25
+
26
+ ### Header / Primary Utility Bar
27
+ - Full-width header with logo left.
28
+ - **Search bar is dominant**: centered or filling most of the header width on desktop, full-width on mobile.
29
+ - Search must have: placeholder with example query, clear button, submit, and autocomplete.
30
+ - Secondary navigation: categories, account, cart/orders, location — compact, never competing with search.
31
+ - Persistent across all pages.
32
+
33
+ ### Homepage Structure (in order)
34
+ 1. **Primary utility** — search, track, or book above the fold. No exception.
35
+ 2. **Deal / promotion strip** — thin banner, 1-2 active offers, dismissible.
36
+ 3. **Category navigation** — visual grid or horizontal scroll of top categories.
37
+ 4. **Recommended / featured** — personalized or curated product/listing grid.
38
+ 5. **Trust signals** — delivery times, return policy, security badges (compact).
39
+ 6. **Secondary categories / browse** — deeper catalog entry points.
40
+
41
+ ### Product / Listing Page
42
+ - Sticky filter panel (left on desktop, bottom drawer on mobile).
43
+ - Product grid: 3-4 columns desktop, 2 columns tablet, 1-2 columns mobile.
44
+ - Each card: image, name (2 lines max), price, rating (star + count), delivery estimate, primary CTA.
45
+ - Sort controls: above grid, always visible.
46
+ - Pagination or infinite scroll: provide "back to top" and page indicator.
47
+
48
+ ### Product Detail Page
49
+ - Breadcrumb at top.
50
+ - Images: large primary + thumbnail strip. Zoom on hover (desktop), pinch on mobile.
51
+ - Price: large, prominent. Savings amount if applicable.
52
+ - Delivery / availability: above fold, always.
53
+ - Primary CTA: "Add to Cart" or "Buy Now" — sticky on mobile scroll.
54
+ - Specs, reviews, related products: below fold in tabs or sections.
55
+
56
+ ---
57
+
58
+ ## Color Scheme
59
+
60
+ ### Primary Palette by Sub-category
61
+
62
+ **General Ecommerce / Retail**
63
+ - Background: `#FFFFFF`
64
+ - Surface: `#F0F2F2` (off-white cards, sidebar)
65
+ - Primary text: `#0F1111`
66
+ - Secondary text: `#565959`
67
+ - Primary CTA: `#FF9900` (Amazon-style) or `#CC0000` (Target), `#0071CE` (Walmart)
68
+ - CTA hover: Darken 8%
69
+ - Link: `#007185`
70
+ - Border: `#D5D9D9`
71
+ - Badge/deal: `#CC0000` or `#E31837`
72
+
73
+ **Logistics / Tracking**
74
+ - Background: `#FFFFFF`
75
+ - Primary: Brand color (FedEx `#4D148C`/`#FF6600`, UPS `#351C15`/`#FFB500`, DHL `#FFCC00`/`#D40511`)
76
+ - Surface: `#F4F4F4`
77
+ - Text: `#333333`
78
+ - Status indicators: `#00A651` (success), `#E67E22` (in transit), `#C0392B` (exception)
79
+
80
+ **Booking / Travel**
81
+ - Background: `#FFFFFF`
82
+ - Primary: `#003580` (Booking.com blue) or `#00355F`
83
+ - Accent: `#FEBB02` (deal/highlight)
84
+ - Surface: `#F2F2F2`
85
+ - Text: `#333333`
86
+ - Urgency: `#C0392B` (few left), `#E67E22` (limited time)
87
+
88
+ ### Rules
89
+ - Never use dark backgrounds for utility layouts — they slow scanning.
90
+ - CTA color must be visually distinct from every other element on the page.
91
+ - Urgency / deal badges: use red or orange only; never use urgency color for non-urgent content.
92
+ - White background with strong card borders or subtle shadows improves scannability.
93
+
94
+ ---
95
+
96
+ ## Typography
97
+
98
+ ### Scale
99
+ | Role | Size | Weight | Notes |
100
+ |---|---|---|---|
101
+ | Site title / logo | — | — | Image/SVG, not text |
102
+ | H1 (page title) | 22-28px | 600-700 | Category or search results title |
103
+ | H2 (section title) | 18-22px | 600 | |
104
+ | Product name | 14-16px | 400-500 | 2-line clamp |
105
+ | Price | 18-24px | 600-700 | Tabular numerals |
106
+ | Strikethrough price | 13-14px | 400 | `text-decoration: line-through`, muted color |
107
+ | Rating / metadata | 12-13px | 400 | |
108
+ | CTA | 13-16px | 600-700 | |
109
+ | Body / description | 14-16px | 400 | 1.5 line-height |
110
+ | Label / badge | 11-12px | 600-700 | All-caps or bold |
111
+
112
+ ### Font Pairings
113
+ | Context | Font |
114
+ |---|---|
115
+ | General utility | System font stack: `-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif` |
116
+ | Logistics | Helvetica Neue, Arial, or Inter |
117
+ | Travel booking | Circular, Inter, or Source Sans |
118
+
119
+ ### Rules
120
+ - Prefer system fonts for performance — users arrive with a task, not a brand appreciation moment.
121
+ - Product names must be readable at 2-line clamp. Avoid decorative fonts.
122
+ - Price must be the most visually prominent number on a product card.
123
+
124
+ ---
125
+
126
+ ## Spacing System
127
+
128
+ | Token | Value | Use |
129
+ |---|---|---|
130
+ | `--space-xs` | 4px | Badge padding, tight inline gaps |
131
+ | `--space-sm` | 8px | Card inner padding, icon gaps |
132
+ | `--space-md` | 12-16px | Component padding, form inputs |
133
+ | `--space-lg` | 24px | Card gutters, section dividers |
134
+ | `--space-xl` | 32-40px | Major section separation |
135
+ | `--space-2xl` | 48-64px | Page-level section separation |
136
+
137
+ - Product grids: 12-16px gap between cards.
138
+ - Page padding: 16px mobile, 24px tablet, 40-64px desktop (or centered max-width container).
139
+ - Avoid excessive breathing room — utility UX is information-dense by design.
140
+
141
+ ---
142
+
143
+ ## Motion and Interaction
144
+
145
+ ### Principles
146
+ - **Instant feedback over animation.** Users are in task mode; delays feel like failures.
147
+ - Hover states: subtle background shift, no slow transitions.
148
+ - Add-to-cart: brief success micro-animation (cart icon pulse, item count update).
149
+ - Skeleton loading: always show skeletons instead of blank areas.
150
+
151
+ ### Key States
152
+ | Component | States |
153
+ |---|---|
154
+ | Search input | Default, focused (border highlight), has-value (show clear button), loading (spinner) |
155
+ | Product card | Default, hover (shadow lift + image zoom), loading (skeleton) |
156
+ | Add to cart button | Default, hover, loading, success (brief), disabled (out of stock) |
157
+ | Filter checkbox | Default, checked, hover, focus, disabled |
158
+ | Sort dropdown | Default, open, selected option |
159
+ | Tracking step | Completed (filled icon), Active (pulsing dot), Pending (hollow icon) |
160
+
161
+ ### Transitions
162
+ - Card hover: `box-shadow 150ms ease`, `transform 150ms ease`
163
+ - Button click: `background 100ms ease`, `transform 100ms`
164
+ - Dropdown: `opacity 150ms ease`, `transform 150ms ease`
165
+ - Never exceed 250ms for task-critical UI transitions.
166
+
167
+ ---
168
+
169
+ ## Responsive Behavior
170
+
171
+ | Breakpoint | Key changes |
172
+ |---|---|
173
+ | Mobile 375px | Single column. Search full-width. Categories horizontal scroll. Sticky add-to-cart bar. Filter as bottom sheet. |
174
+ | Tablet 768px | 2-column product grid. Collapsible filter sidebar. |
175
+ | Desktop 1024px | 3-4 column grid. Persistent filter sidebar. Full header utility bar. |
176
+ | Wide 1440px+ | Max content width 1440px, sidebar fixed, grid expands to 4-5 columns. |
177
+
178
+ - Mobile: filter panel becomes a full-screen modal or bottom drawer.
179
+ - Mobile: sticky "Add to Cart / Proceed" bar fixed to bottom viewport.
180
+ - Mobile: search bar always accessible (sticky or easy scroll-to-top).
181
+
182
+ ---
183
+
184
+ ## Accessibility Requirements
185
+
186
+ - Search input: `<label>` associated via `for`/`id`, or `aria-label`. Autocomplete results use `role="listbox"` with `aria-expanded`.
187
+ - Product cards: each card is a landmark. Product name is the accessible label. Price announced. CTA has context: "Add [Product Name] to cart".
188
+ - Filters: `<fieldset>` with `<legend>` per group. Checkboxes with visible labels.
189
+ - Sort: `<select>` or custom control with `aria-label="Sort by"` and `aria-selected` on option.
190
+ - Rating stars: `aria-label="4.5 out of 5 stars, 1,203 ratings"` — never visually-only stars.
191
+ - Pagination: `<nav aria-label="Pagination">` with current page `aria-current="page"`.
192
+ - Loading states: `aria-busy="true"` on the container while data loads.
193
+ - Urgency badges ("Only 2 left"): announce with `aria-live="polite"` if dynamic.
194
+ - Touch targets: minimum 44×44px for all interactive elements.
195
+ - Focus: visible focus ring on all interactive elements, not removed.
196
+
197
+ ---
198
+
199
+ ## UX Principles for This Method
200
+
201
+ 1. **Search is sacred.** The search bar is the most important element. Never de-prioritize it.
202
+ 2. **Show don't hide.** Price, delivery estimate, and availability must be on the card — not behind a click.
203
+ 3. **Scan mode.** Users skim product grids. Design for F-pattern reading: image left, name top, price prominent.
204
+ 4. **Reduce checkout friction.** Guest checkout, saved addresses, payment tokens. Every field removed increases conversion.
205
+ 5. **Status visibility.** For logistics: always show where the order/shipment is in real-time.
206
+ 6. **Honest urgency.** Use scarcity only when true. Fake urgency destroys trust and constitutes a dark pattern.
207
+ 7. **Recovery is easy.** Undo add to cart, saved carts, continue shopping. Users make mistakes.
208
+
209
+ ---
210
+
211
+ ## Component Specs
212
+
213
+ ### Search Bar
214
+ ```
215
+ Height: 40-48px
216
+ Border: 1px solid var(--border), 2px focus
217
+ Border-radius: 4px (utilitarian) | 24px (modern)
218
+ Background: white
219
+ Icon: magnifying glass left (16-20px)
220
+ Clear button: right, appears when has-value
221
+ Padding: 8px 40px (icon side) 8px 12px
222
+ Font: 14-16px
223
+ Autocomplete: absolute positioned, full width, max-height 300px, overflow-y scroll
224
+ ```
225
+
226
+ ### Product Card
227
+ ```
228
+ Width: flexible (grid cell)
229
+ Border: 1px solid var(--border)
230
+ Border-radius: 4-8px
231
+ Padding: 12-16px
232
+ Image: aspect-ratio 1/1 or 4/3, object-fit: contain
233
+ Product name: 14-16px, 2-line clamp, margin-bottom 4px
234
+ Price: 18-22px bold, tabular-nums
235
+ Rating: 12-13px, star icons + count
236
+ CTA: full-width button, 40px height, brand accent
237
+ ```
238
+
239
+ ### Status Tracker (Logistics)
240
+ ```
241
+ Steps: horizontal on desktop, vertical on mobile
242
+ Active step: filled circle, brand color, pulse animation
243
+ Completed: filled check icon, muted brand color
244
+ Pending: hollow circle, gray
245
+ Step label: 11-12px below/beside icon
246
+ Connector line: 2px, colored for completed, gray for pending
247
+ ```
248
+
249
+ ---
250
+
251
+ ## Anti-Patterns to Avoid
252
+
253
+ - Do not hide the price until the product page — users need it to scan.
254
+ - Do not use dark backgrounds for product grids — reduces readability and scan speed.
255
+ - Do not use fake urgency ("Only 3 left!" when 300 are in stock).
256
+ - Do not auto-play promotional videos in the product grid.
257
+ - Do not use hover-only filters or sort controls — mobile users cannot hover.
258
+ - Do not paginate to page 1 after applying a filter — preserve scroll position or result context.
259
+ - Do not use captcha on checkout — use it only before purchase if fraud risk is high.
260
+ - Do not require account creation before cart or checkout.
261
+ - Do not show "out of stock" only after the user has added to cart.
262
+
263
+ ---
264
+
265
+ ## QA Checklist
266
+
267
+ - [ ] Search returns results within 300ms (or shows skeleton).
268
+ - [ ] Product card: price, name, rating, delivery visible without hover.
269
+ - [ ] Filter panel: applying a filter immediately updates results (no "Apply" button required unless many simultaneous changes).
270
+ - [ ] Sticky add-to-cart bar visible on mobile product detail page scroll.
271
+ - [ ] Guest checkout path exists and is accessible without account creation.
272
+ - [ ] Tracking status page shows current step, timestamp, and next expected step.
273
+ - [ ] All interactive elements have visible focus ring.
274
+ - [ ] Rating stars have accessible text alternative.
275
+ - [ ] Search input has `<label>` or `aria-label`.
276
+ - [ ] Mobile filter is accessible as full-screen modal with close button.
277
+ - [ ] No fake urgency copy — verify against live inventory logic.
278
+ - [ ] Core Web Vitals: LCP ≤ 2.5s, CLS ≤ 0.1 (product grids must not shift on image load).
@@ -0,0 +1,286 @@
1
+ # Color Psychology in Branding
2
+
3
+ Use this skill when a user describes a product, business, or UI concept and you must recommend a color scheme. Analyze the business type, target audience, emotional goals, and brand positioning — then apply color psychology principles to prescribe a complete palette.
4
+
5
+ ---
6
+
7
+ ## How to Apply This Skill
8
+
9
+ When a user says: "I'm building a [product/business type] for [audience]. The feel should be [adjective]."
10
+
11
+ Follow this process:
12
+ 1. **Identify the business category** → look up the category in the table below.
13
+ 2. **Identify the emotional goal** → trust, energy, calm, luxury, health, play, authority, innovation.
14
+ 3. **Check for conflicts** → does the requested adjective match the business category's expectations?
15
+ 4. **Prescribe a palette** → primary, secondary, accent, background, surface, text, semantic colors.
16
+ 5. **State the psychological rationale** → explain why these colors work for this business.
17
+ 6. **Warn of anti-patterns** → what colors to avoid and why.
18
+
19
+ ---
20
+
21
+ ## Color Emotion Reference
22
+
23
+ | Color | Core emotions | Common industries |
24
+ |---|---|---|
25
+ | **Blue** | Trust, calm, competence, security, depth | Finance, tech, healthcare, logistics, government |
26
+ | **Deep navy** | Authority, stability, prestige, institutional trust | Finance, law, consulting, insurance |
27
+ | **Cyan / teal** | Innovation, freshness, clarity, health-tech | SaaS, health, wellness, clean energy |
28
+ | **Green** | Growth, health, nature, money, safety | Finance, organic food, wellness, sustainability, pharmacy |
29
+ | **Emerald / forest** | Wealth, premium, sustainability, natural luxury | Luxury eco, premium wellness, high-end food |
30
+ | **Red** | Energy, urgency, passion, appetite, danger | Food, automotive, sale/promo, entertainment |
31
+ | **Warm red / crimson** | Tradition, boldness, confidence, strength | Heritage brands, sportswear, food |
32
+ | **Orange** | Friendliness, enthusiasm, affordability, warmth | Retail, food, casual tech, children |
33
+ | **Amber / gold** | Premium, achievement, warmth, celebration | Luxury, rewards, premium food/beverage |
34
+ | **Yellow** | Optimism, clarity, attention, speed, caution | Construction, food, warnings, casual consumer |
35
+ | **Purple** | Creativity, spirituality, luxury, wisdom, mystery | Beauty, wellness, spiritual, creative SaaS |
36
+ | **Deep violet** | Premium, mystery, innovation | AI/tech (use carefully), beauty, luxury |
37
+ | **Pink** | Warmth, romance, care, femininity | Beauty, wellness, romance, children, healthcare |
38
+ | **Dusty rose / mauve** | Sophistication, calm care | Premium wellness, beauty, hospitality |
39
+ | **White** | Purity, simplicity, clarity, space | Healthcare, luxury, tech, minimal |
40
+ | **Black** | Authority, sophistication, mystery, premium | Luxury, tech, automotive, fashion |
41
+ | **Warm gray / greige** | Neutral sophistication, calm | Luxury interiors, editorial, premium services |
42
+ | **Brown / earth tones** | Heritage, craft, organic, reliability | Food, craft beverages, natural products, luxury leather |
43
+
44
+ ---
45
+
46
+ ## Industry Palette Prescriptions
47
+
48
+ ### Finance and Banking
49
+ - **Trust goal**: use blue family.
50
+ - Palette: Navy primary `#002D72`, white `#FFFFFF`, light blue surface `#EBF5FB`, gold accent `#B8860B` (premium signal).
51
+ - Text: `#1A1A2E` on light.
52
+ - Semantic: success `#1A7F5A`, error `#C0392B`, warning `#D4AC0D`.
53
+ - Avoid: red as primary (signals loss/danger), orange (cheap), bright yellow.
54
+
55
+ ### Healthcare / Medical
56
+ - **Trust + calm goal**: blue-teal family.
57
+ - Palette: calm blue `#0072CE` or teal `#00A7B5`, white `#FFFFFF`, pale blue surface `#EBF8FF`, soft green accent `#27AE60`.
58
+ - Text: `#1A2B3C`.
59
+ - Avoid: aggressive red (associates with blood/emergency), dark purple, black-dominant UI.
60
+ - Exception: red is acceptable for emergency/urgent care contexts.
61
+
62
+ ### Wellness / Mental Health
63
+ - **Calm + care goal**: green, teal, warm earth tones.
64
+ - Palette A (calm): sage green `#87A878`, warm cream `#FAF6F0`, soft teal `#5F9EA0`, text `#2C3E50`.
65
+ - Palette B (energy/vitality): coral `#E8705A`, warm yellow `#F4C842`, white background.
66
+ - Avoid: clinical blue (too medical), aggressive red, dark/heavy backgrounds.
67
+
68
+ ### Physical Fitness / Gym / Sportswear
69
+ - **Energy + performance goal**: bold primaries, high contrast.
70
+ - Palette A (performance): black `#0D0D0D`, red `#D32F2F`, white. (Nike/Adidas approach.)
71
+ - Palette B (energy): orange `#E65C00`, black, white. (High-octane sports.)
72
+ - Palette C (premium athletic): deep navy, gold, white. (Premium fitness brand.)
73
+ - Avoid: pastels, muted tones — they signal relaxation, not performance.
74
+
75
+ ### Food and Restaurant
76
+ - **Appetite + urgency goal**: warm reds, oranges, yellows.
77
+ - Fast food: red + yellow + white (appetite, speed, familiarity).
78
+ - Premium dining: deep plum or dark forest green, cream, gold (sophistication).
79
+ - Healthy/organic: green, earth brown, cream (natural, wholesome).
80
+ - Café/coffee: warm brown `#6F4E37`, cream `#F5F0E8`, gold accent (comfort, ritual).
81
+ - Avoid: blue as a dominant color for food (appetite suppressor except for specialty/brand contexts).
82
+ - Avoid: cold grays in food photography backgrounds.
83
+
84
+ ### E-commerce / Retail
85
+ - **Conversion + trust goal**: primary action color must be high-energy and high-contrast.
86
+ - Mass market: blue/white + orange or yellow CTA.
87
+ - Fashion: depends on positioning (see Fashion below).
88
+ - Premium: neutral backgrounds, single accent.
89
+ - Discount/deal: red or orange urgency, white or light gray base.
90
+ - Avoid: making the CTA the same color as any other non-interactive element.
91
+
92
+ ### Fashion (General)
93
+ - **Identity expression**: palette varies entirely by brand positioning.
94
+ - Luxury: black/white/cream + 1 heritage accent (see Premium Restraint).
95
+ - Contemporary: black/white or muted palette.
96
+ - Fast fashion: white + current season campaign accent.
97
+ - Streetwear: black + one bright accent per drop.
98
+ - Avoid: generic "fashion" pastels without a point of view.
99
+
100
+ ### Technology (Consumer)
101
+ - **Innovation + approachability**: blue or brand accent on white, or high-contrast dark.
102
+ - Modern tech: white + one bright accent (electric blue, electric green, or vibrant red).
103
+ - AI/ML products: dark surface + green or electric blue accent.
104
+ - Developer tools: dark background + accent (see Technical Authority).
105
+ - Avoid: purple/violet as the only tech differentiator — saturated by AI-industry overuse in 2024-2025.
106
+
107
+ ### Education
108
+ - **Trust + optimism goal**: blue for authority, yellow for optimism.
109
+ - K-12 / children: primary colors (red/blue/yellow), friendly, high contrast.
110
+ - Higher ed: institutional navy + gold (authority + achievement).
111
+ - EdTech: blue or teal + white + one friendly accent.
112
+ - Avoid: overly corporate (dark gray/navy only) or overly playful for adult learners.
113
+
114
+ ### Legal / Consulting
115
+ - **Authority + trust**: navy, deep charcoal, white, gold accent.
116
+ - Palette: `#1A2744` (navy), `#FFFFFF`, `#B8860B` (gold), surface `#F7F8FA`.
117
+ - Conservative: maximum 2 colors, no bright accents.
118
+ - Avoid: red (danger/aggression), orange (casual), bright primaries.
119
+
120
+ ### Real Estate
121
+ - **Trust + aspiration**: navy or forest green + gold.
122
+ - Luxury real estate: black/white + gold.
123
+ - Residential: blue + white + green.
124
+ - Commercial: navy + silver/gray.
125
+ - Avoid: too many colors — real estate brands are conservative.
126
+
127
+ ### Automotive
128
+ - **Power/trust OR luxury**: depends on segment.
129
+ - Mass market reliability: red + white or blue + white.
130
+ - Premium/performance: black + silver/white + one accent.
131
+ - Luxury: see Premium Restraint.
132
+ - Electric/EV: blue, cyan, or green (sustainability + innovation).
133
+ - Avoid: yellow/orange as primary for luxury automotive.
134
+
135
+ ### Beauty and Cosmetics
136
+ - **Luxury + aspiration**: black/white/gold for premium; pastels for approachable.
137
+ - Luxury beauty: black `#0A0A0A`, cream `#FAF5EF`, gold `#D4A017`, white.
138
+ - Natural/clean beauty: sage green, cream, dusty rose, earth tones.
139
+ - Bold/color-forward: vivid brand accent on white or black, changes per campaign.
140
+ - Avoid: clinical blue (too medical for beauty), heavy industrial tones.
141
+
142
+ ### Travel and Hospitality
143
+ - **Aspiration + calm**: blue (sky/ocean), teal, white, warm accent.
144
+ - Airlines: blue + white + national accent color.
145
+ - Hotels (luxury): deep navy or forest green + cream + gold.
146
+ - Hotels (budget): blue + white + orange CTA.
147
+ - Travel marketplace: brand accent on white (Airbnb coral, Booking.com blue).
148
+ - Avoid: overuse of stock-photo tropical palettes — they feel generic.
149
+
150
+ ### Non-Profit / Social Impact
151
+ - **Hope + action**: green (growth), blue (trust), warm yellow/orange (optimism, humanity).
152
+ - Human rights / emergency: red + white (urgency + care).
153
+ - Environmental: green + earth tones.
154
+ - Community: warm orange + blue or teal.
155
+ - Avoid: corporate navy-only (feels institutional, not human).
156
+
157
+ ### Gaming
158
+ - **Immersion + energy**: dark surfaces + vivid accent.
159
+ - AAA / console: black + brand color (PlayStation blue, Xbox green, Nintendo red).
160
+ - Mobile/casual: bright primaries, white, high contrast.
161
+ - Esports: black + electric cyan or electric green + red accent.
162
+ - Avoid: muted or pastel palettes — they signal casualness in a world that values intensity.
163
+
164
+ ### SaaS / Productivity
165
+ - **Clarity + trust + approachability**: blue or purple family.
166
+ - B2B SaaS: blue or indigo on white, clean, professional.
167
+ - Creative SaaS: purple, indigo, or gradient accent on white/dark.
168
+ - Developer SaaS: see Technical Authority.
169
+ - Note: avoid full-saturation purple if the brand is not clearly creative — it has AI-product associations.
170
+ - Preferred: `#4361EE` (indigo), `#7209B7` (violet, creative SaaS), `#3A86FF` (bright blue).
171
+
172
+ ---
173
+
174
+ ## Sentiment-to-Palette Mapping
175
+
176
+ When users describe emotions or goals, translate them:
177
+
178
+ | User describes | Translate to |
179
+ |---|---|
180
+ | "trustworthy", "reliable", "secure" | Blue family: `#1A56DB`, `#0072CE`, `#003580` |
181
+ | "energetic", "exciting", "bold" | Red/orange: `#D32F2F`, `#E65C00`, `#FF385C` |
182
+ | "calm", "peaceful", "relaxing" | Green/teal: `#27AE60`, `#5F9EA0`, `#87A878` |
183
+ | "luxurious", "premium", "exclusive" | Black/cream/gold: `#0A0A0A`, `#FAF5EF`, `#D4A017` |
184
+ | "playful", "fun", "friendly" | Bright primaries or pastels: `#FF6B6B`, `#4ECDC4`, `#FFE66D` |
185
+ | "innovative", "modern", "forward" | Electric blue/green on dark: `#3A86FF`, `#06D6A0`, `#76B900` |
186
+ | "natural", "organic", "healthy" | Earth greens, browns, cream: `#4A7C59`, `#8B5E3C`, `#FAF6F0` |
187
+ | "authoritative", "expert", "serious" | Navy, charcoal, white: `#1A2744`, `#2D3748`, `#FFFFFF` |
188
+ | "warm", "welcoming", "comforting" | Warm orange, gold, cream: `#E8A000`, `#F5CBA7`, `#FAF0E6` |
189
+ | "creative", "artistic", "expressive" | Vivid unexpected combos: purple + yellow, teal + coral |
190
+ | "clean", "minimal", "simple" | White, light gray, single accent: `#FFFFFF`, `#F7F7F7`, one brand color |
191
+ | "feminine", "delicate", "romantic" | Soft pink, rose, mauve: `#FFB6C1`, `#C08497`, `#E8B4B8` |
192
+
193
+ ---
194
+
195
+ ## Complete Palette Output Format
196
+
197
+ When you prescribe a palette, always output:
198
+
199
+ ```
200
+ Business type: [name]
201
+ Emotional goal: [trust / energy / calm / luxury / health / play / authority / innovation]
202
+ Positioning: [mass market / mid-range / premium / luxury]
203
+ Primary: [hex] — [color name] — [psychological role]
204
+ Secondary: [hex] — [color name] — [role]
205
+ Accent / CTA: [hex] — [color name] — [role]
206
+ Background: [hex]
207
+ Surface: [hex]
208
+ Text primary: [hex] — contrast on background: [ratio]:1
209
+ Text secondary: [hex] — contrast on background: [ratio]:1
210
+ Border: [hex]
211
+ Semantic — Success: [hex]
212
+ Semantic — Warning: [hex]
213
+ Semantic — Error: [hex]
214
+ Semantic — Info: [hex]
215
+ Dark mode variant: [yes/no — if yes, provide swapped values]
216
+ Avoid: [color] — [reason]
217
+ ```
218
+
219
+ ---
220
+
221
+ ## Contrast and Accessibility Requirements
222
+
223
+ All prescribed palettes must:
224
+ - Pass WCAG 2.2 AA minimum: 4.5:1 for body text, 3:1 for large text (18px+) and UI components.
225
+ - Pass WCAG AAA (7:1) for primary text on primary background when possible.
226
+ - Never place text on an image without a scrim — calculate contrast with the scrim included.
227
+
228
+ Pre-verified contrast pairs (safe to use):
229
+ | Text | Background | Ratio |
230
+ |---|---|---|
231
+ | `#FFFFFF` white | `#0A0A0A` near-black | 19.8:1 ✓ |
232
+ | `#1A1A1A` near-black | `#FFFFFF` white | 16.1:1 ✓ |
233
+ | `#FFFFFF` white | `#0072CE` blue | 4.6:1 ✓ (AA) |
234
+ | `#FFFFFF` white | `#D32F2F` red | 4.5:1 ✓ (AA min) |
235
+ | `#FFFFFF` white | `#27AE60` green | 2.5:1 ✗ (FAIL — use dark text) |
236
+ | `#1A1A1A` dark | `#FFC72C` yellow | 10.3:1 ✓ |
237
+ | `#FFFFFF` white | `#0A3D62` deep navy | 12.5:1 ✓ |
238
+ | `#767676` gray | `#FFFFFF` white | 4.6:1 ✓ (AA minimum) |
239
+
240
+ Common failures to warn users about:
241
+ - White text on green backgrounds — fails almost always except very dark green.
242
+ - Light gray text (`#AAAAAA`) on white — 2.3:1, fails.
243
+ - Yellow text on white — always fails.
244
+ - Red CTA buttons with white text — only passes on dark reds (`#C0392B` or darker).
245
+
246
+ ---
247
+
248
+ ## Multi-Audience Palette Variation
249
+
250
+ When a product serves multiple audiences with different emotional needs:
251
+
252
+ 1. **Primary audience palette**: defines the brand identity.
253
+ 2. **Secondary surfaces**: slightly adjusted tone (e.g., consumer = lighter/warmer, enterprise = cooler/darker).
254
+ 3. **Shared semantic colors**: consistent success/error/warning across all surfaces.
255
+ 4. **Never split brand identity**: the primary color must be consistent — only surface tones vary.
256
+
257
+ Example: Fintech serving both consumers and businesses.
258
+ - Consumer sections: lighter blue surface `#EBF5FB`, friendly round shapes, warm accent.
259
+ - Business sections: darker navy `#002D72`, formal layout, gold accent.
260
+ - Shared: brand blue `#0072CE`, white background, semantic colors.
261
+
262
+ ---
263
+
264
+ ## Anti-Patterns in Color
265
+
266
+ - **Purple for every AI/tech product**: overused to the point of signal loss. Use only if brand has genuine creative/creative-tech identity.
267
+ - **Gradients as primary backgrounds**: they tire quickly, age poorly, and compete with content.
268
+ - **Red for a finance brand**: associates with loss, deficit, danger. Use only for error states.
269
+ - **Blue for appetite**: statistically suppresses appetite (avoid as dominant hue for food brands).
270
+ - **All-neutral palette without an accent**: never have a brand with zero brand color — users cannot remember or identify you.
271
+ - **Low-contrast text in pursuit of trend**: thin gray text on white is inaccessible regardless of how "clean" it looks.
272
+ - **Color without meaning**: every color in the palette should have a reason. Remove decorative colors with no semantic or brand function.
273
+
274
+ ---
275
+
276
+ ## Dark Mode Color Adaptation
277
+
278
+ When dark mode is required, follow these rules:
279
+ - **Never simply invert**: inversion creates jarring contrasts and unintended color meanings.
280
+ - Backgrounds: `#FFFFFF` → `#121212` or `#0A0A0A`.
281
+ - Surfaces: `#F7F7F7` → `#1E1E1E`.
282
+ - Text: `#1A1A1A` → `#E8E8E8` (not pure white — reduces eye strain).
283
+ - Primary color: may need to lighten in dark mode (e.g., `#0072CE` → `#4FA3E0`) for contrast.
284
+ - Semantic colors: keep hue, adjust lightness for contrast. `#27AE60` (dark mode) → `#2ECC71`.
285
+ - Shadows: on dark surfaces, shadows are invisible — use surface elevation (lighter background) instead.
286
+ - Test both modes in WCAG contrast checker before finalizing.