@musashishao/agent-kit 1.0.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.
Potentially problematic release.
This version of @musashishao/agent-kit might be problematic. Click here for more details.
- package/.agent/.shared/ui-ux-pro-max/data/charts.csv +26 -0
- package/.agent/.shared/ui-ux-pro-max/data/colors.csv +97 -0
- package/.agent/.shared/ui-ux-pro-max/data/icons.csv +101 -0
- package/.agent/.shared/ui-ux-pro-max/data/landing.csv +31 -0
- package/.agent/.shared/ui-ux-pro-max/data/products.csv +97 -0
- package/.agent/.shared/ui-ux-pro-max/data/prompts.csv +24 -0
- package/.agent/.shared/ui-ux-pro-max/data/react-performance.csv +45 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/react.csv +54 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/.agent/.shared/ui-ux-pro-max/data/styles.csv +59 -0
- package/.agent/.shared/ui-ux-pro-max/data/typography.csv +58 -0
- package/.agent/.shared/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
- package/.agent/.shared/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/.agent/.shared/ui-ux-pro-max/data/web-interface.csv +31 -0
- package/.agent/.shared/ui-ux-pro-max/scripts/core.py +258 -0
- package/.agent/.shared/ui-ux-pro-max/scripts/design_system.py +487 -0
- package/.agent/.shared/ui-ux-pro-max/scripts/search.py +76 -0
- package/.agent/ARCHITECTURE.md +225 -0
- package/.agent/CONTEXT.md +229 -0
- package/.agent/FEATURE_ROADMAP.md +435 -0
- package/.agent/PROMPT_TEMPLATES.md +261 -0
- package/.agent/agents/backend-specialist.md +263 -0
- package/.agent/agents/database-architect.md +226 -0
- package/.agent/agents/debugger.md +225 -0
- package/.agent/agents/devops-engineer.md +242 -0
- package/.agent/agents/documentation-writer.md +104 -0
- package/.agent/agents/explorer-agent.md +73 -0
- package/.agent/agents/frontend-specialist.md +556 -0
- package/.agent/agents/game-developer.md +162 -0
- package/.agent/agents/mobile-developer.md +377 -0
- package/.agent/agents/orchestrator.md +416 -0
- package/.agent/agents/penetration-tester.md +188 -0
- package/.agent/agents/performance-optimizer.md +187 -0
- package/.agent/agents/project-planner.md +403 -0
- package/.agent/agents/security-auditor.md +170 -0
- package/.agent/agents/seo-specialist.md +111 -0
- package/.agent/agents/test-engineer.md +158 -0
- package/.agent/rules/GEMINI.md +251 -0
- package/.agent/skills/api-patterns/SKILL.md +81 -0
- package/.agent/skills/api-patterns/api-style.md +42 -0
- package/.agent/skills/api-patterns/auth.md +24 -0
- package/.agent/skills/api-patterns/documentation.md +26 -0
- package/.agent/skills/api-patterns/graphql.md +41 -0
- package/.agent/skills/api-patterns/rate-limiting.md +31 -0
- package/.agent/skills/api-patterns/response.md +37 -0
- package/.agent/skills/api-patterns/rest.md +40 -0
- package/.agent/skills/api-patterns/scripts/api_validator.py +211 -0
- package/.agent/skills/api-patterns/security-testing.md +122 -0
- package/.agent/skills/api-patterns/trpc.md +41 -0
- package/.agent/skills/api-patterns/versioning.md +22 -0
- package/.agent/skills/app-builder/SKILL.md +75 -0
- package/.agent/skills/app-builder/agent-coordination.md +71 -0
- package/.agent/skills/app-builder/feature-building.md +53 -0
- package/.agent/skills/app-builder/project-detection.md +34 -0
- package/.agent/skills/app-builder/scaffolding.md +118 -0
- package/.agent/skills/app-builder/tech-stack.md +40 -0
- package/.agent/skills/app-builder/templates/SKILL.md +39 -0
- package/.agent/skills/app-builder/templates/astro-static/TEMPLATE.md +76 -0
- package/.agent/skills/app-builder/templates/chrome-extension/TEMPLATE.md +92 -0
- package/.agent/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
- package/.agent/skills/app-builder/templates/electron-desktop/TEMPLATE.md +88 -0
- package/.agent/skills/app-builder/templates/express-api/TEMPLATE.md +83 -0
- package/.agent/skills/app-builder/templates/flutter-app/TEMPLATE.md +90 -0
- package/.agent/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +90 -0
- package/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +82 -0
- package/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +100 -0
- package/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +106 -0
- package/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +101 -0
- package/.agent/skills/app-builder/templates/python-fastapi/TEMPLATE.md +83 -0
- package/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +93 -0
- package/.agent/skills/architecture/SKILL.md +55 -0
- package/.agent/skills/architecture/context-discovery.md +43 -0
- package/.agent/skills/architecture/examples.md +94 -0
- package/.agent/skills/architecture/pattern-selection.md +68 -0
- package/.agent/skills/architecture/patterns-reference.md +50 -0
- package/.agent/skills/architecture/trade-off-analysis.md +77 -0
- package/.agent/skills/bash-linux/SKILL.md +199 -0
- package/.agent/skills/behavioral-modes/SKILL.md +242 -0
- package/.agent/skills/brainstorming/SKILL.md +163 -0
- package/.agent/skills/brainstorming/dynamic-questioning.md +350 -0
- package/.agent/skills/clean-code/SKILL.md +201 -0
- package/.agent/skills/code-review-checklist/SKILL.md +109 -0
- package/.agent/skills/database-design/SKILL.md +52 -0
- package/.agent/skills/database-design/database-selection.md +43 -0
- package/.agent/skills/database-design/indexing.md +39 -0
- package/.agent/skills/database-design/migrations.md +48 -0
- package/.agent/skills/database-design/optimization.md +36 -0
- package/.agent/skills/database-design/orm-selection.md +30 -0
- package/.agent/skills/database-design/schema-design.md +56 -0
- package/.agent/skills/database-design/scripts/schema_validator.py +172 -0
- package/.agent/skills/deployment-procedures/SKILL.md +241 -0
- package/.agent/skills/doc.md +177 -0
- package/.agent/skills/docker-expert/SKILL.md +409 -0
- package/.agent/skills/documentation-templates/SKILL.md +194 -0
- package/.agent/skills/frontend-design/SKILL.md +396 -0
- package/.agent/skills/frontend-design/animation-guide.md +331 -0
- package/.agent/skills/frontend-design/color-system.md +311 -0
- package/.agent/skills/frontend-design/decision-trees.md +418 -0
- package/.agent/skills/frontend-design/motion-graphics.md +306 -0
- package/.agent/skills/frontend-design/scripts/accessibility_checker.py +183 -0
- package/.agent/skills/frontend-design/scripts/ux_audit.py +722 -0
- package/.agent/skills/frontend-design/typography-system.md +345 -0
- package/.agent/skills/frontend-design/ux-psychology.md +541 -0
- package/.agent/skills/frontend-design/visual-effects.md +383 -0
- package/.agent/skills/game-development/2d-games/SKILL.md +119 -0
- package/.agent/skills/game-development/3d-games/SKILL.md +135 -0
- package/.agent/skills/game-development/SKILL.md +167 -0
- package/.agent/skills/game-development/game-art/SKILL.md +185 -0
- package/.agent/skills/game-development/game-audio/SKILL.md +190 -0
- package/.agent/skills/game-development/game-design/SKILL.md +129 -0
- package/.agent/skills/game-development/mobile-games/SKILL.md +108 -0
- package/.agent/skills/game-development/multiplayer/SKILL.md +132 -0
- package/.agent/skills/game-development/pc-games/SKILL.md +144 -0
- package/.agent/skills/game-development/vr-ar/SKILL.md +123 -0
- package/.agent/skills/game-development/web-games/SKILL.md +150 -0
- package/.agent/skills/geo-fundamentals/SKILL.md +156 -0
- package/.agent/skills/geo-fundamentals/scripts/geo_checker.py +289 -0
- package/.agent/skills/i18n-localization/SKILL.md +154 -0
- package/.agent/skills/i18n-localization/scripts/i18n_checker.py +241 -0
- package/.agent/skills/lint-and-validate/SKILL.md +45 -0
- package/.agent/skills/lint-and-validate/scripts/lint_runner.py +172 -0
- package/.agent/skills/lint-and-validate/scripts/type_coverage.py +173 -0
- package/.agent/skills/mcp-builder/SKILL.md +176 -0
- package/.agent/skills/mobile-design/SKILL.md +394 -0
- package/.agent/skills/mobile-design/decision-trees.md +516 -0
- package/.agent/skills/mobile-design/mobile-backend.md +491 -0
- package/.agent/skills/mobile-design/mobile-color-system.md +420 -0
- package/.agent/skills/mobile-design/mobile-debugging.md +122 -0
- package/.agent/skills/mobile-design/mobile-design-thinking.md +357 -0
- package/.agent/skills/mobile-design/mobile-navigation.md +458 -0
- package/.agent/skills/mobile-design/mobile-performance.md +767 -0
- package/.agent/skills/mobile-design/mobile-testing.md +356 -0
- package/.agent/skills/mobile-design/mobile-typography.md +433 -0
- package/.agent/skills/mobile-design/platform-android.md +666 -0
- package/.agent/skills/mobile-design/platform-ios.md +561 -0
- package/.agent/skills/mobile-design/scripts/mobile_audit.py +670 -0
- package/.agent/skills/mobile-design/touch-psychology.md +537 -0
- package/.agent/skills/nestjs-expert/SKILL.md +552 -0
- package/.agent/skills/nextjs-best-practices/SKILL.md +203 -0
- package/.agent/skills/nodejs-best-practices/SKILL.md +333 -0
- package/.agent/skills/parallel-agents/SKILL.md +175 -0
- package/.agent/skills/performance-profiling/SKILL.md +143 -0
- package/.agent/skills/performance-profiling/scripts/lighthouse_audit.py +76 -0
- package/.agent/skills/plan-writing/SKILL.md +152 -0
- package/.agent/skills/powershell-windows/SKILL.md +167 -0
- package/.agent/skills/prisma-expert/SKILL.md +355 -0
- package/.agent/skills/python-patterns/SKILL.md +441 -0
- package/.agent/skills/react-patterns/SKILL.md +198 -0
- package/.agent/skills/red-team-tactics/SKILL.md +199 -0
- package/.agent/skills/seo-fundamentals/SKILL.md +129 -0
- package/.agent/skills/seo-fundamentals/scripts/seo_checker.py +219 -0
- package/.agent/skills/server-management/SKILL.md +161 -0
- package/.agent/skills/systematic-debugging/SKILL.md +109 -0
- package/.agent/skills/tailwind-patterns/SKILL.md +269 -0
- package/.agent/skills/tdd-workflow/SKILL.md +149 -0
- package/.agent/skills/testing-patterns/SKILL.md +178 -0
- package/.agent/skills/testing-patterns/scripts/test_runner.py +219 -0
- package/.agent/skills/typescript-expert/SKILL.md +429 -0
- package/.agent/skills/typescript-expert/references/tsconfig-strict.json +92 -0
- package/.agent/skills/typescript-expert/references/typescript-cheatsheet.md +383 -0
- package/.agent/skills/typescript-expert/references/utility-types.ts +335 -0
- package/.agent/skills/typescript-expert/scripts/ts_diagnostic.py +203 -0
- package/.agent/skills/ui-ux-pro-max/SKILL.md +351 -0
- package/.agent/skills/ui-ux-pro-max/data/charts.csv +26 -0
- package/.agent/skills/ui-ux-pro-max/data/colors.csv +97 -0
- package/.agent/skills/ui-ux-pro-max/data/icons.csv +101 -0
- package/.agent/skills/ui-ux-pro-max/data/landing.csv +31 -0
- package/.agent/skills/ui-ux-pro-max/data/products.csv +97 -0
- package/.agent/skills/ui-ux-pro-max/data/prompts.csv +24 -0
- package/.agent/skills/ui-ux-pro-max/data/react-performance.csv +45 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/.agent/skills/ui-ux-pro-max/data/styles.csv +59 -0
- package/.agent/skills/ui-ux-pro-max/data/typography.csv +58 -0
- package/.agent/skills/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
- package/.agent/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/.agent/skills/ui-ux-pro-max/data/web-interface.csv +31 -0
- package/.agent/skills/ui-ux-pro-max/scripts/core.py +257 -0
- package/.agent/skills/ui-ux-pro-max/scripts/design_system.py +487 -0
- package/.agent/skills/ui-ux-pro-max/scripts/search.py +76 -0
- package/.agent/skills/vulnerability-scanner/SKILL.md +276 -0
- package/.agent/skills/vulnerability-scanner/checklists.md +121 -0
- package/.agent/skills/vulnerability-scanner/scripts/security_scan.py +458 -0
- package/.agent/skills/webapp-testing/SKILL.md +187 -0
- package/.agent/skills/webapp-testing/scripts/playwright_runner.py +173 -0
- package/.agent/workflows/brainstorm.md +113 -0
- package/.agent/workflows/create.md +59 -0
- package/.agent/workflows/debug.md +103 -0
- package/.agent/workflows/deploy.md +176 -0
- package/.agent/workflows/enhance.md +63 -0
- package/.agent/workflows/orchestrate.md +237 -0
- package/.agent/workflows/plan.md +89 -0
- package/.agent/workflows/preview.md +80 -0
- package/.agent/workflows/status.md +86 -0
- package/.agent/workflows/test.md +144 -0
- package/.agent/workflows/ui-ux-pro-max.md +231 -0
- package/LICENSE +21 -0
- package/README.md +101 -0
- package/bin/cli.js +235 -0
- package/index.js +1 -0
- package/package.json +43 -0
|
@@ -0,0 +1,541 @@
|
|
|
1
|
+
# UX Psychology Reference
|
|
2
|
+
|
|
3
|
+
> Deep dive into UX laws, emotional design, trust building, and behavioral psychology.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. Core UX Laws
|
|
8
|
+
|
|
9
|
+
### Hick's Law
|
|
10
|
+
|
|
11
|
+
**Principle:** The time to make a decision increases logarithmically with the number of choices.
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
Decision Time = a + b × log₂(n + 1)
|
|
15
|
+
Where n = number of choices
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
**Application:**
|
|
19
|
+
- Navigation: Max 5-7 top-level items
|
|
20
|
+
- Forms: Break into steps (progressive disclosure)
|
|
21
|
+
- Options: Default selections when possible
|
|
22
|
+
- Filters: Prioritize most-used, hide advanced
|
|
23
|
+
|
|
24
|
+
**Example:**
|
|
25
|
+
```
|
|
26
|
+
❌ Bad: 15 menu items in one nav
|
|
27
|
+
✅ Good: 5 main categories + "More"
|
|
28
|
+
|
|
29
|
+
❌ Bad: 20 form fields at once
|
|
30
|
+
✅ Good: 3-step wizard with 5-7 fields each
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
### Fitts' Law
|
|
36
|
+
|
|
37
|
+
**Principle:** Time to reach a target = function of distance and size.
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
MT = a + b × log₂(1 + D/W)
|
|
41
|
+
Where D = distance, W = width
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
**Application:**
|
|
45
|
+
- CTAs: Make primary buttons larger (min 44px height)
|
|
46
|
+
- Touch targets: 44×44px minimum on mobile
|
|
47
|
+
- Placement: Important actions near natural cursor position
|
|
48
|
+
- Corners: "Magic corners" (infinite edge = easy to hit)
|
|
49
|
+
|
|
50
|
+
**Button Sizing:**
|
|
51
|
+
```css
|
|
52
|
+
/* Size by importance */
|
|
53
|
+
.btn-primary { height: 48px; padding: 0 24px; }
|
|
54
|
+
.btn-secondary { height: 40px; padding: 0 16px; }
|
|
55
|
+
.btn-tertiary { height: 36px; padding: 0 12px; }
|
|
56
|
+
|
|
57
|
+
/* Mobile touch targets */
|
|
58
|
+
@media (hover: none) {
|
|
59
|
+
.btn { min-height: 44px; min-width: 44px; }
|
|
60
|
+
}
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
### Miller's Law
|
|
66
|
+
|
|
67
|
+
**Principle:** Average person can hold 7±2 chunks in working memory.
|
|
68
|
+
|
|
69
|
+
**Application:**
|
|
70
|
+
- Lists: Group into chunks of 5-7 items
|
|
71
|
+
- Navigation: Max 7 menu items
|
|
72
|
+
- Content: Break long content with headings
|
|
73
|
+
- Phone numbers: 555-123-4567 (chunked)
|
|
74
|
+
|
|
75
|
+
**Chunking Example:**
|
|
76
|
+
```
|
|
77
|
+
❌ 5551234567
|
|
78
|
+
✅ 555-123-4567
|
|
79
|
+
|
|
80
|
+
❌ Long paragraph of text without breaks
|
|
81
|
+
✅ Short paragraphs
|
|
82
|
+
With bullet points
|
|
83
|
+
And subheadings
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
### Von Restorff Effect (Isolation Effect)
|
|
89
|
+
|
|
90
|
+
**Principle:** An item that stands out is more likely to be remembered.
|
|
91
|
+
|
|
92
|
+
**Application:**
|
|
93
|
+
- CTA buttons: Distinct color from other elements
|
|
94
|
+
- Pricing: Highlight recommended plan
|
|
95
|
+
- Important info: Visual differentiation
|
|
96
|
+
- New features: Badge or callout
|
|
97
|
+
|
|
98
|
+
**Example:**
|
|
99
|
+
```css
|
|
100
|
+
/* All buttons gray, primary stands out */
|
|
101
|
+
.btn { background: #E5E7EB; }
|
|
102
|
+
.btn-primary { background: #3B82F6; }
|
|
103
|
+
|
|
104
|
+
/* Recommended plan highlighted */
|
|
105
|
+
.pricing-card { border: 1px solid #E5E7EB; }
|
|
106
|
+
.pricing-card.popular {
|
|
107
|
+
border: 2px solid #3B82F6;
|
|
108
|
+
box-shadow: var(--shadow-lg);
|
|
109
|
+
}
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
### Serial Position Effect
|
|
115
|
+
|
|
116
|
+
**Principle:** Items at the beginning (primacy) and end (recency) of a list are remembered best.
|
|
117
|
+
|
|
118
|
+
**Application:**
|
|
119
|
+
- Navigation: Most important items first and last
|
|
120
|
+
- Lists: Key info at top and bottom
|
|
121
|
+
- Forms: Most critical fields at start
|
|
122
|
+
- CTAs: Repeat at top and bottom of long pages
|
|
123
|
+
|
|
124
|
+
**Example:**
|
|
125
|
+
```
|
|
126
|
+
Navigation: Home | [key items] | Contact
|
|
127
|
+
|
|
128
|
+
Long landing page:
|
|
129
|
+
- CTA at hero (top)
|
|
130
|
+
- Content sections
|
|
131
|
+
- CTA repeated at bottom
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
## 2. Emotional Design (Don Norman)
|
|
137
|
+
|
|
138
|
+
### Three Levels of Processing
|
|
139
|
+
|
|
140
|
+
```
|
|
141
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
142
|
+
│ VISCERAL (Lizard Brain) │
|
|
143
|
+
│ ───────────────────── │
|
|
144
|
+
│ • Immediate, automatic reaction │
|
|
145
|
+
│ • First impressions (first 50ms) │
|
|
146
|
+
│ • Aesthetics: colors, shapes, imagery │
|
|
147
|
+
│ • "Wow, this looks beautiful!" │
|
|
148
|
+
├─────────────────────────────────────────────────────────────┤
|
|
149
|
+
│ BEHAVIORAL (Functional Brain) │
|
|
150
|
+
│ ───────────────────────────── │
|
|
151
|
+
│ • Usability and function │
|
|
152
|
+
│ • Pleasure from effective use │
|
|
153
|
+
│ • Performance, reliability, ease │
|
|
154
|
+
│ • "This works exactly how I expected!" │
|
|
155
|
+
├─────────────────────────────────────────────────────────────┤
|
|
156
|
+
│ REFLECTIVE (Conscious Brain) │
|
|
157
|
+
│ ───────────────────────────── │
|
|
158
|
+
│ • Conscious thought and meaning │
|
|
159
|
+
│ • Personal identity and values │
|
|
160
|
+
│ • Long-term memory and loyalty │
|
|
161
|
+
│ • "This brand represents who I am" │
|
|
162
|
+
└─────────────────────────────────────────────────────────────┘
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
### Designing for Each Level
|
|
166
|
+
|
|
167
|
+
**Visceral:**
|
|
168
|
+
```css
|
|
169
|
+
/* Beautiful first impression */
|
|
170
|
+
.hero {
|
|
171
|
+
background: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%);
|
|
172
|
+
color: white;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/* Pleasing microinteractions */
|
|
176
|
+
.button:hover {
|
|
177
|
+
transform: translateY(-2px);
|
|
178
|
+
box-shadow: var(--shadow-lg);
|
|
179
|
+
}
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
**Behavioral:**
|
|
183
|
+
```javascript
|
|
184
|
+
// Instant feedback
|
|
185
|
+
button.onclick = () => {
|
|
186
|
+
button.disabled = true;
|
|
187
|
+
button.textContent = 'Saving...';
|
|
188
|
+
|
|
189
|
+
save().then(() => {
|
|
190
|
+
showSuccess('Saved!'); // Immediate confirmation
|
|
191
|
+
});
|
|
192
|
+
};
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
**Reflective:**
|
|
196
|
+
```html
|
|
197
|
+
<!-- Brand story and values -->
|
|
198
|
+
<section class="about">
|
|
199
|
+
<h2>Why We Exist</h2>
|
|
200
|
+
<p>We believe technology should empower, not complicate...</p>
|
|
201
|
+
</section>
|
|
202
|
+
|
|
203
|
+
<!-- Social proof connecting to identity -->
|
|
204
|
+
<blockquote>
|
|
205
|
+
"This tool helped me become the designer I wanted to be."
|
|
206
|
+
</blockquote>
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
---
|
|
210
|
+
|
|
211
|
+
## 3. Trust Building System
|
|
212
|
+
|
|
213
|
+
### Trust Signal Categories
|
|
214
|
+
|
|
215
|
+
| Category | Elements | Implementation |
|
|
216
|
+
|----------|----------|----------------|
|
|
217
|
+
| **Security** | SSL, badges, encryption | Visible padlock, security logos on forms |
|
|
218
|
+
| **Social Proof** | Reviews, testimonials, logos | Star ratings, customer photos, brand logos |
|
|
219
|
+
| **Transparency** | Policies, pricing, contact | Clear links, no hidden fees, real address |
|
|
220
|
+
| **Professional** | Design quality, consistency | No broken elements, consistent branding |
|
|
221
|
+
| **Authority** | Certifications, awards, media | "As seen in...", industry certifications |
|
|
222
|
+
|
|
223
|
+
### Trust Signal Placement
|
|
224
|
+
|
|
225
|
+
```
|
|
226
|
+
┌────────────────────────────────────────────────────┐
|
|
227
|
+
│ HEADER: Trust banner ("Free shipping | 30-day │
|
|
228
|
+
│ returns | Secure checkout") │
|
|
229
|
+
├────────────────────────────────────────────────────┤
|
|
230
|
+
│ HERO: Social proof ("Trusted by 10,000+") │
|
|
231
|
+
├────────────────────────────────────────────────────┤
|
|
232
|
+
│ PRODUCT: Reviews visible, security badges │
|
|
233
|
+
├────────────────────────────────────────────────────┤
|
|
234
|
+
│ CHECKOUT: Payment icons, SSL badge, guarantee │
|
|
235
|
+
├────────────────────────────────────────────────────┤
|
|
236
|
+
│ FOOTER: Contact info, policies, certifications │
|
|
237
|
+
└────────────────────────────────────────────────────┘
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
### Trust-Building CSS Patterns
|
|
241
|
+
|
|
242
|
+
```css
|
|
243
|
+
/* Trust badge styling */
|
|
244
|
+
.trust-badge {
|
|
245
|
+
display: flex;
|
|
246
|
+
align-items: center;
|
|
247
|
+
gap: 8px;
|
|
248
|
+
padding: 12px 16px;
|
|
249
|
+
background: #F0FDF4; /* Light green = security */
|
|
250
|
+
border-radius: 2px; /* Sharp for trust = precision feel */
|
|
251
|
+
font-size: 14px;
|
|
252
|
+
color: #166534;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/* Secure form indicator */
|
|
256
|
+
.secure-form::before {
|
|
257
|
+
content: '🔒 Secure form';
|
|
258
|
+
display: block;
|
|
259
|
+
font-size: 12px;
|
|
260
|
+
color: #166534;
|
|
261
|
+
margin-bottom: 8px;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/* Testimonial card */
|
|
265
|
+
.testimonial {
|
|
266
|
+
display: flex;
|
|
267
|
+
gap: 16px;
|
|
268
|
+
padding: 24px;
|
|
269
|
+
background: white;
|
|
270
|
+
border-radius: 16px; /* Friendly = larger radius */
|
|
271
|
+
box-shadow: var(--shadow-sm);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.testimonial-avatar {
|
|
275
|
+
width: 48px;
|
|
276
|
+
height: 48px;
|
|
277
|
+
border-radius: 50%; /* Real photos > initials */
|
|
278
|
+
}
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
---
|
|
282
|
+
|
|
283
|
+
## 4. Cognitive Load Management
|
|
284
|
+
|
|
285
|
+
### Three Types of Cognitive Load
|
|
286
|
+
|
|
287
|
+
| Type | Definition | Designer's Role |
|
|
288
|
+
|------|------------|-----------------|
|
|
289
|
+
| **Intrinsic** | Inherent complexity of task | Break into smaller steps |
|
|
290
|
+
| **Extraneous** | Load from poor design | Eliminate this! |
|
|
291
|
+
| **Germane** | Effort for learning | Support and encourage |
|
|
292
|
+
|
|
293
|
+
### Reduction Strategies
|
|
294
|
+
|
|
295
|
+
**1. Simplify (Reduce Extraneous)**
|
|
296
|
+
```css
|
|
297
|
+
/* Visual noise → Clean */
|
|
298
|
+
.card-busy {
|
|
299
|
+
border: 2px solid red;
|
|
300
|
+
background: linear-gradient(...);
|
|
301
|
+
box-shadow: 0 0 20px ...;
|
|
302
|
+
/* Too much! */
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.card-clean {
|
|
306
|
+
background: white;
|
|
307
|
+
border-radius: 16px;
|
|
308
|
+
box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
|
|
309
|
+
/* Calm, focused */
|
|
310
|
+
}
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
**2. Chunk Information**
|
|
314
|
+
```html
|
|
315
|
+
<!-- Overwhelming -->
|
|
316
|
+
<form>
|
|
317
|
+
<!-- 15 fields at once -->
|
|
318
|
+
</form>
|
|
319
|
+
|
|
320
|
+
<!-- Chunked -->
|
|
321
|
+
<form>
|
|
322
|
+
<fieldset>
|
|
323
|
+
<legend>Step 1: Personal Info</legend>
|
|
324
|
+
<!-- 3-4 fields -->
|
|
325
|
+
</fieldset>
|
|
326
|
+
<fieldset>
|
|
327
|
+
<legend>Step 2: Shipping</legend>
|
|
328
|
+
<!-- 3-4 fields -->
|
|
329
|
+
</fieldset>
|
|
330
|
+
</form>
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
**3. Progressive Disclosure**
|
|
334
|
+
```html
|
|
335
|
+
<!-- Hide complexity until needed -->
|
|
336
|
+
<div class="filters">
|
|
337
|
+
<div class="filters-basic">
|
|
338
|
+
<!-- Common filters visible -->
|
|
339
|
+
</div>
|
|
340
|
+
<button onclick="toggleAdvanced()">
|
|
341
|
+
Advanced Options ▼
|
|
342
|
+
</button>
|
|
343
|
+
<div class="filters-advanced" hidden>
|
|
344
|
+
<!-- Complex filters hidden -->
|
|
345
|
+
</div>
|
|
346
|
+
</div>
|
|
347
|
+
```
|
|
348
|
+
|
|
349
|
+
**4. Use Familiar Patterns**
|
|
350
|
+
```
|
|
351
|
+
✅ Standard navigation placement
|
|
352
|
+
✅ Expected icon meanings (🔍 = search)
|
|
353
|
+
✅ Conventional form layouts
|
|
354
|
+
✅ Common gesture patterns (swipe, pinch)
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
**5. Offload Information**
|
|
358
|
+
```html
|
|
359
|
+
<!-- Don't make users remember -->
|
|
360
|
+
<label>
|
|
361
|
+
Card Number
|
|
362
|
+
<input type="text" inputmode="numeric"
|
|
363
|
+
autocomplete="cc-number"
|
|
364
|
+
placeholder="1234 5678 9012 3456">
|
|
365
|
+
</label>
|
|
366
|
+
|
|
367
|
+
<!-- Show what they entered -->
|
|
368
|
+
<div class="order-summary">
|
|
369
|
+
<p>Shipping to: <strong>John Doe, 123 Main St...</strong></p>
|
|
370
|
+
<a href="#">Edit</a>
|
|
371
|
+
</div>
|
|
372
|
+
```
|
|
373
|
+
|
|
374
|
+
---
|
|
375
|
+
|
|
376
|
+
## 5. Persuasive Design (Ethical)
|
|
377
|
+
|
|
378
|
+
### Ethical Persuasion Techniques
|
|
379
|
+
|
|
380
|
+
| Technique | Ethical Use | Dark Pattern (Avoid) |
|
|
381
|
+
|-----------|-------------|----------------------|
|
|
382
|
+
| **Scarcity** | Real stock levels | Fake countdown timers |
|
|
383
|
+
| **Social Proof** | Genuine reviews | Fake testimonials |
|
|
384
|
+
| **Authority** | Real credentials | Misleading badges |
|
|
385
|
+
| **Urgency** | Real deadlines | Manufactured FOMO |
|
|
386
|
+
| **Commitment** | Progress saving | Guilt-tripping |
|
|
387
|
+
|
|
388
|
+
### Nudge Patterns
|
|
389
|
+
|
|
390
|
+
**Smart Defaults:**
|
|
391
|
+
```html
|
|
392
|
+
<!-- Pre-select the recommended option -->
|
|
393
|
+
<input type="radio" name="plan" value="monthly">
|
|
394
|
+
<input type="radio" name="plan" value="annual" checked>
|
|
395
|
+
Annual (Save 20%)
|
|
396
|
+
```
|
|
397
|
+
|
|
398
|
+
**Anchoring:**
|
|
399
|
+
```html
|
|
400
|
+
<!-- Show original price to frame discount -->
|
|
401
|
+
<div class="price">
|
|
402
|
+
<span class="original">$99</span>
|
|
403
|
+
<span class="current">$79</span>
|
|
404
|
+
<span class="savings">Save 20%</span>
|
|
405
|
+
</div>
|
|
406
|
+
```
|
|
407
|
+
|
|
408
|
+
**Social Proof:**
|
|
409
|
+
```html
|
|
410
|
+
<!-- Real-time activity -->
|
|
411
|
+
<div class="activity">
|
|
412
|
+
<span class="avatar">👤</span>
|
|
413
|
+
<span>Sarah from NYC just purchased</span>
|
|
414
|
+
</div>
|
|
415
|
+
|
|
416
|
+
<!-- Aggregate proof -->
|
|
417
|
+
<p>Join 50,000+ designers who use our tool</p>
|
|
418
|
+
```
|
|
419
|
+
|
|
420
|
+
**Progress & Commitment:**
|
|
421
|
+
```html
|
|
422
|
+
<!-- Show progress to encourage completion -->
|
|
423
|
+
<div class="progress">
|
|
424
|
+
<div class="progress-bar" style="width: 60%"></div>
|
|
425
|
+
<span>60% complete - almost there!</span>
|
|
426
|
+
</div>
|
|
427
|
+
```
|
|
428
|
+
|
|
429
|
+
---
|
|
430
|
+
|
|
431
|
+
## 6. User Persona Quick Reference
|
|
432
|
+
|
|
433
|
+
### Gen Z (Born 1997-2012)
|
|
434
|
+
|
|
435
|
+
```
|
|
436
|
+
CHARACTERISTICS:
|
|
437
|
+
- Digital natives, mobile-first
|
|
438
|
+
- Value authenticity, diversity
|
|
439
|
+
- Short attention spans
|
|
440
|
+
- Visual learners
|
|
441
|
+
|
|
442
|
+
DESIGN APPROACH:
|
|
443
|
+
├── Colors: Vibrant, hypercolor, bold gradients
|
|
444
|
+
├── Typography: Large, variable, experimental
|
|
445
|
+
├── Layout: Vertical scroll, mobile-native
|
|
446
|
+
├── Interactions: Fast, gamified, gesture-based
|
|
447
|
+
├── Content: Short-form video, memes, stories
|
|
448
|
+
└── Trust: Peer reviews > authority
|
|
449
|
+
```
|
|
450
|
+
|
|
451
|
+
### Millennials (Born 1981-1996)
|
|
452
|
+
|
|
453
|
+
```
|
|
454
|
+
CHARACTERISTICS:
|
|
455
|
+
- Value experiences over things
|
|
456
|
+
- Research before buying
|
|
457
|
+
- Socially conscious
|
|
458
|
+
- Price-sensitive but quality-aware
|
|
459
|
+
|
|
460
|
+
DESIGN APPROACH:
|
|
461
|
+
├── Colors: Muted pastels, earth tones
|
|
462
|
+
├── Typography: Clean, readable sans-serif
|
|
463
|
+
├── Layout: Responsive, card-based
|
|
464
|
+
├── Interactions: Smooth, purposeful animations
|
|
465
|
+
├── Content: Value-driven, transparent
|
|
466
|
+
└── Trust: Reviews, sustainability, values
|
|
467
|
+
```
|
|
468
|
+
|
|
469
|
+
### Gen X (Born 1965-1980)
|
|
470
|
+
|
|
471
|
+
```
|
|
472
|
+
CHARACTERISTICS:
|
|
473
|
+
- Independent, self-reliant
|
|
474
|
+
- Value efficiency
|
|
475
|
+
- Skeptical of marketing
|
|
476
|
+
- Balanced tech comfort
|
|
477
|
+
|
|
478
|
+
DESIGN APPROACH:
|
|
479
|
+
├── Colors: Professional, trustworthy
|
|
480
|
+
├── Typography: Familiar, conservative
|
|
481
|
+
├── Layout: Clear hierarchy, traditional
|
|
482
|
+
├── Interactions: Functional, not flashy
|
|
483
|
+
├── Content: Direct, fact-based
|
|
484
|
+
└── Trust: Expertise, track record
|
|
485
|
+
```
|
|
486
|
+
|
|
487
|
+
### Baby Boomers (Born 1946-1964)
|
|
488
|
+
|
|
489
|
+
```
|
|
490
|
+
CHARACTERISTICS:
|
|
491
|
+
- Detail-oriented
|
|
492
|
+
- Loyal when trusted
|
|
493
|
+
- Value personal service
|
|
494
|
+
- Less tech-confident
|
|
495
|
+
|
|
496
|
+
DESIGN APPROACH:
|
|
497
|
+
├── Colors: High contrast, simple palette
|
|
498
|
+
├── Typography: Large (18px+), high contrast
|
|
499
|
+
├── Layout: Simple, linear, spacious
|
|
500
|
+
├── Interactions: Minimal, clear feedback
|
|
501
|
+
├── Content: Comprehensive, detailed
|
|
502
|
+
└── Trust: Phone numbers, real people
|
|
503
|
+
```
|
|
504
|
+
|
|
505
|
+
---
|
|
506
|
+
|
|
507
|
+
## 7. Emotion Color Mapping
|
|
508
|
+
|
|
509
|
+
```
|
|
510
|
+
┌────────────────────────────────────────────────────┐
|
|
511
|
+
│ EMOTION │ COLORS │ USE │
|
|
512
|
+
├───────────────────┼───────────────────┼────────────┤
|
|
513
|
+
│ Trust │ Blue, Green │ Finance │
|
|
514
|
+
│ Excitement │ Red, Orange │ Sales │
|
|
515
|
+
│ Calm │ Blue, Soft green │ Wellness │
|
|
516
|
+
│ Luxury │ Black, Gold │ Premium │
|
|
517
|
+
│ Creativity │ Teal, Pink │ Art │
|
|
518
|
+
│ Energy │ Yellow, Orange │ Sports │
|
|
519
|
+
│ Nature │ Green, Brown │ Eco │
|
|
520
|
+
│ Happiness │ Yellow, Orange │ Kids │
|
|
521
|
+
│ Sophistication │ Gray, Navy │ Corporate │
|
|
522
|
+
│ Urgency │ Red │ Errors │
|
|
523
|
+
└───────────────────┴───────────────────┴────────────┘
|
|
524
|
+
```
|
|
525
|
+
|
|
526
|
+
---
|
|
527
|
+
|
|
528
|
+
## 8. Psychology Checklist
|
|
529
|
+
|
|
530
|
+
### Before Launch
|
|
531
|
+
|
|
532
|
+
- [ ] **Hick's Law:** No more than 7 choices in navigation
|
|
533
|
+
- [ ] **Fitts' Law:** Primary CTAs are large and reachable
|
|
534
|
+
- [ ] **Miller's Law:** Content is chunked appropriately
|
|
535
|
+
- [ ] **Von Restorff:** CTAs stand out from surroundings
|
|
536
|
+
- [ ] **Trust:** Security badges, reviews, policies visible
|
|
537
|
+
- [ ] **Emotional:** Design evokes intended feeling
|
|
538
|
+
- [ ] **Cognitive Load:** Interface is clean, not overwhelming
|
|
539
|
+
- [ ] **Familiar Patterns:** Standard conventions used
|
|
540
|
+
- [ ] **Feedback:** All actions have clear responses
|
|
541
|
+
- [ ] **Accessibility:** Inclusive for all users
|