ui-ux-master 1.2.0 → 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.
- package/README.md +170 -182
- package/SKILL.md +89 -47
- package/docs/package-publishing.md +84 -0
- package/index.cjs +39 -0
- package/index.d.ts +17 -0
- package/index.mjs +30 -0
- package/package.json +86 -11
- package/references/brand-method-card-based-discovery.md +285 -0
- package/references/brand-method-conversion-simplicity.md +276 -0
- package/references/brand-method-ecosystem-bundling.md +263 -0
- package/references/brand-method-editorial-brand-world.md +265 -0
- package/references/brand-method-enterprise-trust-hub.md +298 -0
- package/references/brand-method-playful-familiarity.md +284 -0
- package/references/brand-method-premium-restraint.md +270 -0
- package/references/brand-method-product-cinema.md +258 -0
- package/references/brand-method-technical-authority.md +290 -0
- package/references/brand-method-utility-command-center.md +278 -0
- package/references/color-psychology-branding.md +286 -0
- package/references/color-scale-system.md +347 -0
- package/references/competitive-landscape.md +32 -6
- package/references/design-discovery-protocol.md +171 -0
- package/references/design-system-schema.md +407 -0
- package/references/industry-reasoning-rules.md +504 -0
- package/references/landing-page-patterns.md +327 -0
- package/references/output-quality-gates.md +246 -0
- package/references/tech-stack-guidelines.md +636 -0
- package/references/ui-styles-catalog.md +552 -0
- package/references/visual-directions.md +362 -0
- package/tests/install-smoke.test.mjs +93 -12
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
# Brand Method: Technical Authority
|
|
2
|
+
|
|
3
|
+
Use this skill when building for AI platforms, developer tools, semiconductors, infrastructure, cloud computing, or any context where the buyer/user evaluates credibility through technical depth, performance data, and precision.
|
|
4
|
+
|
|
5
|
+
Reference brands: NVIDIA, Intel, AMD, Qualcomm, IBM, Cisco (developer), AWS, Vercel, Cloudflare, Stripe (developer docs), GitHub, Figma (developer).
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## When to Apply This Method
|
|
10
|
+
|
|
11
|
+
Apply Technical Authority when:
|
|
12
|
+
- The audience is developers, engineers, architects, data scientists, or technical decision-makers.
|
|
13
|
+
- The product's value is measured in specs, benchmarks, throughput, latency, or compatibility.
|
|
14
|
+
- Credibility is demonstrated through diagrams, code, architecture, and precision.
|
|
15
|
+
- The primary user actions are: read docs, run a benchmark, integrate, download SDK.
|
|
16
|
+
|
|
17
|
+
Do not apply when:
|
|
18
|
+
- The audience is non-technical business buyers (use Enterprise Trust Hub).
|
|
19
|
+
- The product is consumer-facing (use Product Cinema, Playful Familiarity, or Conversion Simplicity).
|
|
20
|
+
- The brand leads with campaign/culture storytelling (use Editorial Brand World).
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## Layout Structure
|
|
25
|
+
|
|
26
|
+
### Hero
|
|
27
|
+
- Technical claim: specific, measurable. "3× faster inference." "Sub-10ms global latency." Never vague.
|
|
28
|
+
- Visual: architecture diagram, code snippet, or benchmark chart.
|
|
29
|
+
- CTA: "Get Started", "View Docs", "Run in Browser", "Download SDK."
|
|
30
|
+
- Sub-CTA: GitHub stars badge, npm install command, version badge.
|
|
31
|
+
|
|
32
|
+
### Navigation
|
|
33
|
+
- Logo left.
|
|
34
|
+
- Navigation: Product, Docs, Pricing, Blog, GitHub link, Login, primary CTA.
|
|
35
|
+
- Docs always reachable in 1 click from any page.
|
|
36
|
+
- Search: prominent, especially on docs pages.
|
|
37
|
+
- Dark or light depending on brand — NVIDIA black, Vercel black/white, AWS dark navy.
|
|
38
|
+
|
|
39
|
+
### Homepage (in order)
|
|
40
|
+
1. **Hero** — technical claim, CTA, code/visual proof.
|
|
41
|
+
2. **Social proof** — companies using it (logos) or GitHub star count, npm downloads.
|
|
42
|
+
3. **Core capabilities** — 3-4 technical capabilities with icons, precise description, link to docs.
|
|
43
|
+
4. **Architecture diagram** — how the product fits into a user's stack.
|
|
44
|
+
5. **Performance proof** — benchmark chart, speed comparison table, or numbers with methodology.
|
|
45
|
+
6. **Integration logos** — compatible tools and platforms.
|
|
46
|
+
7. **Code example** — real, runnable snippet showing the simplest useful thing.
|
|
47
|
+
8. **CTA section** — "Start building" with install command.
|
|
48
|
+
|
|
49
|
+
### Docs Pages
|
|
50
|
+
- Sidebar navigation: collapsible tree, search, current page highlighted.
|
|
51
|
+
- Content: full-width readable column (max 720px), code blocks right or inline.
|
|
52
|
+
- Code blocks: syntax highlighting, copy button, language label.
|
|
53
|
+
- Table of contents: right sidebar on desktop.
|
|
54
|
+
- Breadcrumb: always.
|
|
55
|
+
- "Edit this page" link: bottom of every doc.
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## Color Scheme
|
|
60
|
+
|
|
61
|
+
### Palette Archetypes
|
|
62
|
+
|
|
63
|
+
**Dark Technical (NVIDIA, Vercel, Linear)**
|
|
64
|
+
- Background: `#0A0A0A` or `#111111`
|
|
65
|
+
- Surface: `#1A1A1A` or `#161616`
|
|
66
|
+
- Text: `#EDEDED` or `#F0F0F0`
|
|
67
|
+
- Secondary text: `#A3A3A3`
|
|
68
|
+
- Accent (NVIDIA green): `#76B900`
|
|
69
|
+
- Accent (Vercel): `#FFFFFF` or subtle indigo
|
|
70
|
+
- Border: `#2A2A2A`
|
|
71
|
+
- Code block background: `#1E1E1E` (VS Code Dark-like)
|
|
72
|
+
- Syntax: strings `#CE9178`, keywords `#569CD6`, comments `#6A9955`, numbers `#B5CEA8`
|
|
73
|
+
|
|
74
|
+
**Light Technical (AWS, Stripe, GitHub)**
|
|
75
|
+
- Background: `#FFFFFF`
|
|
76
|
+
- Surface: `#F6F8FA` (GitHub) or `#F4F6F9`
|
|
77
|
+
- Text: `#1A1A1A`
|
|
78
|
+
- Secondary text: `#57606A`
|
|
79
|
+
- Primary: `#0969DA` (GitHub blue), `#FF9900` (AWS orange), `#635BFF` (Stripe purple)
|
|
80
|
+
- Border: `#D0D7DE`
|
|
81
|
+
- Code block background: `#F6F8FA`
|
|
82
|
+
|
|
83
|
+
**Semiconductor / Infrastructure (Intel, Cisco)**
|
|
84
|
+
- Background: `#FFFFFF`
|
|
85
|
+
- Primary: Intel blue `#0068B5`, Cisco blue `#1BA0D7`
|
|
86
|
+
- Surface: `#F5F7FA`
|
|
87
|
+
- Text: `#1A1A1A`
|
|
88
|
+
- Accent: brand blue
|
|
89
|
+
- Code: light mode syntax
|
|
90
|
+
|
|
91
|
+
### Rules
|
|
92
|
+
- Dark surfaces: excellent for developer tools — developers associate dark mode with code environments.
|
|
93
|
+
- Accent color: used only for links, CTAs, active states, and syntax highlights.
|
|
94
|
+
- Green accents (NVIDIA): only one use per viewport — for performance/success signals.
|
|
95
|
+
- Never use gradient backgrounds in technical authority contexts — precision, not decoration.
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## Typography
|
|
100
|
+
|
|
101
|
+
### Scale
|
|
102
|
+
| Role | Size | Weight | Notes |
|
|
103
|
+
|---|---|---|---|
|
|
104
|
+
| Hero claim | 36-56px | 700 | Specific and measurable |
|
|
105
|
+
| Hero sub | 17-20px | 400 | Technical context sentence |
|
|
106
|
+
| Section headline | 24-32px | 600-700 | |
|
|
107
|
+
| Feature title | 18-20px | 600 | |
|
|
108
|
+
| Feature body | 14-16px | 400 | |
|
|
109
|
+
| Code (inline) | 13-14px | 400 | Monospace |
|
|
110
|
+
| Code (block) | 12-14px | 400 | Monospace |
|
|
111
|
+
| Benchmark number | 40-60px | 700 | Tabular, brand accent |
|
|
112
|
+
| Nav | 13-14px | 500 | |
|
|
113
|
+
| Badge | 11px | 600 | Version, status |
|
|
114
|
+
|
|
115
|
+
### Font Pairings
|
|
116
|
+
| Context | Heading | Body | Code |
|
|
117
|
+
|---|---|---|---|
|
|
118
|
+
| AI / developer | Geist (Vercel), Inter | Inter, Geist | Geist Mono, JetBrains Mono |
|
|
119
|
+
| Infrastructure | Helvetica Neue, Inter | Helvetica Neue | Fira Code, Cascadia Code |
|
|
120
|
+
| Semiconductor | Intel Clear, or Roboto | Roboto, Inter | Roboto Mono |
|
|
121
|
+
| Dev tool (light) | GitHub's Mona Sans, or Inter | Inter | GitHub Monaspace or JetBrains Mono |
|
|
122
|
+
|
|
123
|
+
### Rules
|
|
124
|
+
- Monospace code font must be installed and loaded — never fall back to `monospace` alone.
|
|
125
|
+
- Technical numbers (benchmarks): tabular numerals, bold, large — data is the argument.
|
|
126
|
+
- Inline code: `background: var(--code-bg)`, `border-radius: 4px`, `padding: 2px 6px`, `font-family: monospace`.
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
## Spacing System
|
|
131
|
+
|
|
132
|
+
| Token | Value | Use |
|
|
133
|
+
|---|---|---|
|
|
134
|
+
| `--space-xs` | 4px | Inline code gaps, badge padding |
|
|
135
|
+
| `--space-sm` | 8px | List item gaps, icon margins |
|
|
136
|
+
| `--space-md` | 16px | Component padding, form inputs |
|
|
137
|
+
| `--space-lg` | 24-32px | Between feature blocks |
|
|
138
|
+
| `--space-xl` | 48-64px | Section separation |
|
|
139
|
+
| `--space-2xl` | 80-96px | Hero, benchmark section |
|
|
140
|
+
|
|
141
|
+
- Docs: body content max-width 720px, line-height 1.7 for readability.
|
|
142
|
+
- Code blocks: padding 16-20px, line-height 1.5.
|
|
143
|
+
- Benchmark section: generous — numbers need room to be impressive.
|
|
144
|
+
|
|
145
|
+
---
|
|
146
|
+
|
|
147
|
+
## Motion and Interaction
|
|
148
|
+
|
|
149
|
+
### Principles
|
|
150
|
+
- Minimal animation — technical users are not impressed by flourishes, but are annoyed by delays.
|
|
151
|
+
- Benchmark number count-up on scroll: 0 → final value, 800ms ease-out.
|
|
152
|
+
- Architecture diagram: SVG with nodes appearing in sequence on scroll (200ms stagger).
|
|
153
|
+
- Code block: syntax highlighting is the visual — no animation needed.
|
|
154
|
+
|
|
155
|
+
### Code Interaction
|
|
156
|
+
- Copy button: appears on hover of code block, top-right corner. `aria-label="Copy code"`.
|
|
157
|
+
- On copy: button changes to "Copied!" for 2 seconds, then reverts.
|
|
158
|
+
- Code line highlights: specific lines highlighted with left border + background for callouts.
|
|
159
|
+
- Terminal simulation: character-by-character typing of install command, 50ms per char, 300ms delay before start.
|
|
160
|
+
|
|
161
|
+
### Performance Benchmark
|
|
162
|
+
- Bar chart animation: bars grow from 0 to value, 600ms, ease-out, staggered 100ms.
|
|
163
|
+
- Comparison table: scroll-activated row highlights.
|
|
164
|
+
|
|
165
|
+
### `prefers-reduced-motion`
|
|
166
|
+
- Skip all count-ups, diagram sequences, and terminal typing animations.
|
|
167
|
+
- Show final state immediately.
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
## Responsive Behavior
|
|
172
|
+
|
|
173
|
+
| Breakpoint | Key changes |
|
|
174
|
+
|---|---|
|
|
175
|
+
| Mobile 375px | Single column. Code blocks: horizontal scroll. Docs sidebar: off-canvas. Hero claim: 28-36px. Benchmark numbers: single column. Architecture diagram: scrollable or simplified. |
|
|
176
|
+
| Tablet 768px | Docs: collapsible sidebar. Homepage: 2-column capabilities. |
|
|
177
|
+
| Desktop 1024px | Full sidebar on docs. Side-by-side code + description. Architecture diagram full size. |
|
|
178
|
+
| Wide 1440px+ | Max-width 1280px. Three-column docs (nav + content + ToC). |
|
|
179
|
+
|
|
180
|
+
- Mobile code blocks: always horizontal scroll, never wrap — broken code is broken.
|
|
181
|
+
- Mobile docs: off-canvas sidebar accessible via hamburger.
|
|
182
|
+
|
|
183
|
+
---
|
|
184
|
+
|
|
185
|
+
## Accessibility Requirements
|
|
186
|
+
|
|
187
|
+
- Code blocks: `<pre><code role="region" aria-label="Code example: [language]">`. Copy button accessible.
|
|
188
|
+
- Benchmark charts: provide a data table alternative or aria-described fallback. Never chart-only.
|
|
189
|
+
- Architecture diagram: `<figure>` with `<figcaption>` text description of what the diagram shows.
|
|
190
|
+
- Terminal animation: provide static text alternative for screen readers.
|
|
191
|
+
- Docs navigation: `<nav aria-label="Documentation">`, current page `aria-current="page"`.
|
|
192
|
+
- Search: `role="search"`, results `role="listbox"`, keyboard navigable.
|
|
193
|
+
- Version badge: `aria-label="Version 3.2.1"`.
|
|
194
|
+
- Dark mode: syntax highlighting must maintain 4.5:1 contrast. Verify strings, keywords, and comments all pass.
|
|
195
|
+
- Tables (comparison, compatibility): `<th scope="col/row">`, proper header associations.
|
|
196
|
+
- "Edit this page" GitHub link: descriptive `aria-label` including page title.
|
|
197
|
+
|
|
198
|
+
---
|
|
199
|
+
|
|
200
|
+
## UX Principles for This Method
|
|
201
|
+
|
|
202
|
+
1. **Claims require proof.** Every marketing claim must be followed by a spec, benchmark, or code example within the same viewport.
|
|
203
|
+
2. **Docs are the product.** For developer tools, the documentation experience IS the product experience.
|
|
204
|
+
3. **Make the first success fast.** Show the simplest useful thing in the first code block. Developers test before they commit.
|
|
205
|
+
4. **Precision over personality.** Numbers over stories. Diagrams over illustrations. Code over description.
|
|
206
|
+
5. **Performance is a feature.** A slow documentation site is a credibility problem.
|
|
207
|
+
6. **Trust the reader.** Don't oversimplify or over-explain. Technical audiences respect when you give them the detail they need.
|
|
208
|
+
|
|
209
|
+
---
|
|
210
|
+
|
|
211
|
+
## Component Specs
|
|
212
|
+
|
|
213
|
+
### Code Block
|
|
214
|
+
```
|
|
215
|
+
Background: #1E1E1E (dark) or #F6F8FA (light)
|
|
216
|
+
Border-radius: 8px
|
|
217
|
+
Padding: 16-20px
|
|
218
|
+
Font: JetBrains Mono, Geist Mono, or Fira Code, 13-14px
|
|
219
|
+
Line-height: 1.5
|
|
220
|
+
Language label: top-left, 11px, all-caps, text-muted
|
|
221
|
+
Copy button: top-right, 14px icon, transparent button, hover: surface background
|
|
222
|
+
Horizontal scroll: always on overflow, never wrap
|
|
223
|
+
Line number gutter: optional, 40px wide, text-muted
|
|
224
|
+
Highlight line: left border 3px accent, background rgba(accent, 0.1)
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
### Architecture Diagram
|
|
228
|
+
```
|
|
229
|
+
Container: full-width, background: var(--surface)
|
|
230
|
+
Border-radius: 12px
|
|
231
|
+
Padding: 32px
|
|
232
|
+
SVG or image: max-width 100%, responsive
|
|
233
|
+
Node labels: 11-13px, clean, monospace or sans
|
|
234
|
+
Arrows: 1.5-2px, brand accent or muted
|
|
235
|
+
Legend: below diagram, 12px, inline color swatches
|
|
236
|
+
Figcaption: below, 13px, text-secondary
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
### Benchmark Bar Chart
|
|
240
|
+
```
|
|
241
|
+
Container: grid of bars
|
|
242
|
+
Bar background: var(--surface-2)
|
|
243
|
+
Bar fill: brand accent (for "our product"), neutral for competitors
|
|
244
|
+
Bar height: 40-48px
|
|
245
|
+
Label: left of bar, 13-14px
|
|
246
|
+
Value: right of bar, 14-16px bold, brand accent for highest
|
|
247
|
+
Source footnote: 12px, text-muted, below chart
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
### Install Command Display
|
|
251
|
+
```
|
|
252
|
+
Background: var(--code-bg)
|
|
253
|
+
Border-radius: 8px
|
|
254
|
+
Padding: 12px 16px
|
|
255
|
+
Font: monospace, 14px
|
|
256
|
+
Prompt: $ symbol, text-muted
|
|
257
|
+
Command: text-primary
|
|
258
|
+
Copy icon: right side
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
---
|
|
262
|
+
|
|
263
|
+
## Anti-Patterns to Avoid
|
|
264
|
+
|
|
265
|
+
- Do not make unverifiable performance claims without benchmarks or methodology.
|
|
266
|
+
- Do not show only marketing copy on the homepage — developers will bounce without a code example.
|
|
267
|
+
- Do not bury the docs link — technical users look for it first.
|
|
268
|
+
- Do not use syntax-error-prone code examples — all code shown must be correct and runnable.
|
|
269
|
+
- Do not use line-wrapped code blocks — broken code destroys technical credibility.
|
|
270
|
+
- Do not use animations that fire on scroll over benchmark numbers if they require JavaScript that blocks render.
|
|
271
|
+
- Do not use "email to see pricing" for developer tools — pricing must be public.
|
|
272
|
+
- Do not use generic stock photos of servers, cables, or data centers — use diagrams and screenshots.
|
|
273
|
+
|
|
274
|
+
---
|
|
275
|
+
|
|
276
|
+
## QA Checklist
|
|
277
|
+
|
|
278
|
+
- [ ] Hero claim is specific and measurable — no generic "fast" or "powerful."
|
|
279
|
+
- [ ] At least one real, runnable code example on the homepage.
|
|
280
|
+
- [ ] Docs link accessible from homepage in one click.
|
|
281
|
+
- [ ] Code blocks: horizontal scroll, not wrap, on mobile.
|
|
282
|
+
- [ ] Copy button: works, shows "Copied!" confirmation, has `aria-label`.
|
|
283
|
+
- [ ] Benchmark chart has data table fallback or `aria-describedby` text.
|
|
284
|
+
- [ ] Architecture diagram has `<figcaption>` text description.
|
|
285
|
+
- [ ] All dark-mode syntax highlighting passes 4.5:1 contrast.
|
|
286
|
+
- [ ] Docs search: keyboard accessible, results announced to screen reader.
|
|
287
|
+
- [ ] Version badges have `aria-label`.
|
|
288
|
+
- [ ] `prefers-reduced-motion`: no count-up animations, no typing animations.
|
|
289
|
+
- [ ] Pricing visible — no "contact sales for pricing" for developer products.
|
|
290
|
+
- [ ] Page LCP ≤ 2.5s — technical users will measure this.
|
|
@@ -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).
|