launchframe 0.4.9 → 0.4.10
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/.amazonq/rules/project.md +123 -83
- package/.clinerules +123 -83
- package/.continue/rules/project.md +124 -85
- package/.github/copilot-instructions.md +123 -83
- package/AGENTS.md +1 -1
- package/README.md +38 -165
- package/bin/launchframe.mjs +380 -380
- package/docs/research/INSPECTION_GUIDE.md +117 -78
- package/package.json +1 -1
- package/scripts/sync-agent-rules.sh +88 -88
- package/tsconfig.json +34 -34
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
<!-- AUTO-GENERATED from AGENTS.md
|
|
2
|
-
Run
|
|
3
|
-
|
|
4
|
-
<!-- BEGIN:nextjs-agent-rules -->
|
|
1
|
+
<!-- AUTO-GENERATED from AGENTS.md \u2014 do not edit directly.
|
|
2
|
+
Run \ash scripts/sync-agent-rules.sh\ to regenerate. -->\n\n<!-- BEGIN:nextjs-agent-rules -->
|
|
5
3
|
# This is NOT the Next.js you know
|
|
6
4
|
|
|
7
5
|
This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` before writing any code. Heed deprecation notices.
|
|
@@ -38,7 +36,7 @@ A reusable template for reverse-engineering any website into a clean, modern Nex
|
|
|
38
36
|
- **No personal aesthetic changes during emulation phase** — match 1:1 first, customize later
|
|
39
37
|
- **Real content** — use actual text and assets from the target site where they are interchangeable chrome; **`/launchframe`** overlays your SaaS pitch on headings and CTAs. **Marketing photographs and illustrative hero/feature imagery are not photocopied**: you **must** ship **committed files** under `public/images/` (etc.) for every such slot — **generate them yourself** with your host **image-generation** tool (prompts tied to the SaaS idea), wire into components, supplement with UI mock composites only if helpful. Blank placeholders count as unfinished. Record paths in `docs/research/LAUNCHFRAME.md`
|
|
40
38
|
- **Beauty-first** — every pixel matters
|
|
41
|
-
- **DOM
|
|
39
|
+
- **Inspection workflow (canonical)** — Follow the ordered **five steps** in `docs/research/INSPECTION_GUIDE.md`: (1) **Structure** — DOM as hierarchy reference, not pasted production HTML; (2) **Styles** — Computed/stylesheets and tokens; (3) **Motion** — `@keyframes`, transitions, timings, triggers; (4) **Assets** — rasters/SVGs with brand-safe originals for marketing slots when required; (5) **Implementation** — Next.js components rebuild. Within crawls (Chrome MCP / DevTools), still emphasize **images** (raster, responsive sources, CSS backgrounds), **SVGs** (inline, sprites, masks — **exact geometry**, not unrelated Lucide stand-ins), then **motion fidelity**. **Measure and mirror** from the DOM; scrape **permission-neutral** bytes when appropriate — **SVG and animation fidelity are not waived** when rasters are replaced
|
|
42
40
|
|
|
43
41
|
## Project Structure
|
|
44
42
|
```
|
|
@@ -71,89 +69,131 @@ scripts/ # Asset download scripts
|
|
|
71
69
|
|
|
72
70
|
## How to Reverse-Engineer Any Website
|
|
73
71
|
|
|
74
|
-
This guide
|
|
72
|
+
This guide is the **canonical workflow** when inspecting a target site (Chrome MCP, DevTools, or similar). Execute the steps **in order**: structure and styles establish the blueprint; motion and assets define feel and legality; implementation is always a deliberate rebuild—not a pasted dump.
|
|
75
73
|
|
|
76
|
-
|
|
74
|
+
---
|
|
77
75
|
|
|
78
|
-
|
|
76
|
+
## Step 1 — Structure (DOM hierarchy only)
|
|
79
77
|
|
|
80
|
-
|
|
81
|
-
2. **SVGs** — Inline `<svg>`, `<use>` / sprite sheets, **SVG in CSS** (`mask-image`, `background-image`), favicons as SVG, logo marks. Prefer extracting path/viewBox into React components or static files under `public/` — **recreate** from a screenshot/trace only when the markup is obfuscated or blocked.
|
|
82
|
-
3. **Motion & animation** — Inspect Styles for `animation`, `animation-name`, `animation-timeline`, `transition`, `transform`, `@keyframes`; check for libraries (Framer Motion, GSAP, Lottie, Lenis). Capture **durations, easings, delays, fill-modes**, scroll/view triggers, and `prefers-reduced-motion` handling. Motion often defines perceived quality — do not leave it as an afterthought.
|
|
78
|
+
Treat HTML as a **map of hierarchy**, not as shippable source code.
|
|
83
79
|
|
|
84
|
-
|
|
80
|
+
- **DevTools limitation:** Copying `<head>` and `<body>` with “Copy ▸ Copy outerHTML” gives **one frozen snapshot**. It omits most **stylesheet and script** behavior and may inline classes whose meaning lives in external bundles.
|
|
81
|
+
- **What to extract anyway:** Landmark regions, heading levels, nesting (sections → rows → cards), repeated patterns, form fields, navigation trees, semantic roles.
|
|
82
|
+
- **What not to do:** Do not paste a single giant HTML file into production or assume it reproduces routing, hydration, or data fetching.
|
|
85
83
|
|
|
86
|
-
|
|
84
|
+
### Component & layout checklist (supports Step 1)
|
|
85
|
+
|
|
86
|
+
**Component inventory** — For each distinct UI block, capture:
|
|
87
87
|
|
|
88
|
-
### Screenshots to Capture
|
|
89
|
-
- [ ] Every distinct page — desktop, tablet, mobile
|
|
90
|
-
- [ ] Dark mode variants (if applicable)
|
|
91
|
-
- [ ] Light mode variants (if applicable)
|
|
92
|
-
- [ ] Key interaction states (hover, active, open menus, modals)
|
|
93
|
-
- [ ] Loading/skeleton states
|
|
94
|
-
- [ ] Empty states
|
|
95
|
-
- [ ] Error states
|
|
96
|
-
|
|
97
|
-
### Design Tokens to Extract
|
|
98
|
-
- [ ] **Colors** — background, text (primary/secondary/muted), accent, border, hover, error, success, warning
|
|
99
|
-
- [ ] **Typography** — font family, sizes (h1-h6, body, caption, label), weights, line heights, letter spacing
|
|
100
|
-
- [ ] **Spacing** — padding/margin patterns (look for a scale: 4px, 8px, 12px, 16px, 24px, 32px, etc.)
|
|
101
|
-
- [ ] **Border radius** — buttons, cards, avatars, inputs
|
|
102
|
-
- [ ] **Shadows/elevation** — card shadows, dropdown shadows, modal overlay
|
|
103
|
-
- [ ] **Breakpoints** — when does the layout shift? (inspect with DevTools responsive mode)
|
|
104
|
-
- [ ] **Icons** — which icon library? custom SVGs? sizes?
|
|
105
|
-
- [ ] **Avatars** — sizes, shapes, fallback behavior
|
|
106
|
-
- [ ] **Buttons** — all variants (primary, secondary, ghost, icon-only, danger)
|
|
107
|
-
- [ ] **Inputs** — text fields, textareas, selects, checkboxes, toggles
|
|
108
|
-
|
|
109
|
-
## Phase 2: Component Inventory
|
|
110
|
-
|
|
111
|
-
For each distinct UI component, document:
|
|
112
88
|
1. **Name** — what would you call this component?
|
|
113
|
-
2. **Structure** —
|
|
114
|
-
3. **Variants** —
|
|
89
|
+
2. **Structure** — HTML elements / child components and order
|
|
90
|
+
3. **Variants** — sizes, tones, densities
|
|
115
91
|
4. **States** — default, hover, active, disabled, loading, error, empty
|
|
116
|
-
5. **Responsive behavior** —
|
|
117
|
-
6. **Interactions** — click, hover, focus, keyboard
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
-
|
|
122
|
-
-
|
|
123
|
-
-
|
|
124
|
-
-
|
|
125
|
-
-
|
|
126
|
-
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
-
|
|
131
|
-
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
- [ ] **
|
|
146
|
-
- [ ] **
|
|
147
|
-
- [ ] **
|
|
148
|
-
- [ ] **
|
|
149
|
-
- [ ] **
|
|
150
|
-
- [ ] **
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
92
|
+
5. **Responsive behavior** — changes per breakpoint
|
|
93
|
+
6. **Interactions** — click, hover, focus, keyboard
|
|
94
|
+
|
|
95
|
+
**Layout architecture**
|
|
96
|
+
|
|
97
|
+
- [ ] **Grid vs flex** — primary layout mechanism
|
|
98
|
+
- [ ] **Columns** — count per breakpoint
|
|
99
|
+
- [ ] **Max-width** — content well width
|
|
100
|
+
- [ ] **Sticky / fixed** — header, sidebars, floating CTAs
|
|
101
|
+
- [ ] **Z-index layers** — nav, overlays, tooltips
|
|
102
|
+
- [ ] **Scroll model** — normal, infinite, virtual lists, snap
|
|
103
|
+
|
|
104
|
+
**Screenshots** (tie each shot to a section in the hierarchy)
|
|
105
|
+
|
|
106
|
+
- [ ] Every distinct page — desktop, tablet, mobile
|
|
107
|
+
- [ ] Theme variants (light / dark if applicable)
|
|
108
|
+
- [ ] Hover, active, menus open, modals
|
|
109
|
+
- [ ] Loading / skeleton / empty / error states
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
## Step 2 — Styles (computed appearance + real CSS)
|
|
114
|
+
|
|
115
|
+
Rendered look comes from **CSS** (linked files, injected `<style>` blocks, build output)—not from raw element copy alone.
|
|
116
|
+
|
|
117
|
+
- **Per-element:** In DevTools **Styles** / **Computed**, capture what matters for fidelity: typography, spacing, colors, borders, shadows, breakpoints where rules change.
|
|
118
|
+
- **Global:** From **Sources** or **Network**, identify main stylesheets / CSS chunks; note filenames or URLs for the agents or scripts that will mirror tokens.
|
|
119
|
+
- **Design tokens to extract**
|
|
120
|
+
|
|
121
|
+
- [ ] **Colors** — background, text (primary / secondary / muted), accent, border, hover / focus, semantic (error, success, warning)
|
|
122
|
+
- [ ] **Typography** — families, scale (h1–h6, body, captions), weights, line-height, letter-spacing
|
|
123
|
+
- [ ] **Spacing** — padding/margin rhythm (e.g. 4/8/12/16…)
|
|
124
|
+
- [ ] **Radius & elevation** — cards, buttons, inputs, overlays
|
|
125
|
+
- [ ] **Breakpoints** — layout shifts (responsive mode)
|
|
126
|
+
- [ ] **Icons & avatars** — sizes, masks, fallbacks
|
|
127
|
+
|
|
128
|
+
**Technical CSS context** (informs Tailwind mapping)
|
|
129
|
+
|
|
130
|
+
- [ ] **CSS approach** — utilities vs modules vs styled components vs vanilla
|
|
131
|
+
- [ ] **Fonts** — Google, self-hosted, system stacks
|
|
132
|
+
- [ ] **Image CSS** — `object-fit`, `aspect-ratio`, background layers
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
## Step 3 — Motion (what moves and how)
|
|
137
|
+
|
|
138
|
+
Motion is rarely recoverable from HTML copy; it lives in **CSS animations/transitions** and often **JavaScript** (scroll, gestures, carousel timing).
|
|
139
|
+
|
|
140
|
+
- **Catalog behaviors:** Entrance, hover, focus, drag, scroll-linked, carousel stagger, modal open/close, page transitions.
|
|
141
|
+
- **From Styles / Sources:** `animation-*`, `@keyframes`, `transition`, `transform`, `will-change`; note **duration, easing, delay, fill-mode**.
|
|
142
|
+
- **Libraries:** Identify Framer Motion, GSAP, Lottie, Lenis, CSS-only, etc.
|
|
143
|
+
- **Accessibility:** Note `prefers-reduced-motion` behavior if present.
|
|
144
|
+
|
|
145
|
+
**Priority reminder:** Capture **motion early** alongside media—perceived polish depends on it; do not leave it until the end.
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## Step 4 — Assets (permission-neutral bytes + originals where required)
|
|
150
|
+
|
|
151
|
+
**Early capture**
|
|
152
|
+
|
|
153
|
+
1. **Raster imagery** — `<img>`, `<picture>` / `<source>`, `srcset` / `sizes`, CDN URLs, lazy `data-src`, `loading="lazy"`, **`background-image`** on elements and ancestors (including `::before` / `::after`), masks using `url()`, video posters / stills.
|
|
154
|
+
2. **SVGs** — Inline `<svg>`, `<use>` / sprites, **SVG in CSS** (`mask-image`, backgrounds), favicons. Prefer extracting path/viewBox into React components or files under `public/` — recreate from screenshot/trace only when markup is blocked or obfuscated.
|
|
155
|
+
3. **Brand-safe slots** — **Marketing photos and illustrative hero/feature art** must not be photocopied when policy requires originality: ship **committed** files under `public/images/` (etc.), generated for **your** product idea; document paths in `docs/research/LAUNCHFRAME.md`. Blank placeholders are unfinished.
|
|
156
|
+
4. **Fallbacks** — If URLs are gated, export a crisp screenshot of the element’s box (note DPR) and record the substitution in research notes.
|
|
157
|
+
|
|
158
|
+
**Technical**
|
|
159
|
+
|
|
160
|
+
- [ ] CDN vs origin paths
|
|
161
|
+
- [ ] Lazy loading and responsive image strategy
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
165
|
+
## Step 5 — Implementation (Next.js + components)
|
|
166
|
+
|
|
167
|
+
Rebuild deliberately in **this template’s stack** (Next.js App Router, React, TypeScript strict, shadcn/ui, Tailwind v4).
|
|
168
|
+
|
|
169
|
+
- **Do:** Small composable components, shared tokens, `cn()`, extracted icons in `src/components/icons.tsx` (or adjacent), routes under `src/app/`.
|
|
170
|
+
- **Don’t:** Ship one monolithic HTML string as the app or skip TypeScript/component boundaries.
|
|
171
|
+
|
|
172
|
+
### Stack parity (helps choose libraries)
|
|
173
|
+
|
|
174
|
+
- [ ] **Framework signals** — e.g. `__NEXT_DATA__`, `__NUXT__`, `ng-version`
|
|
175
|
+
- [ ] **State / data** — REST, GraphQL, client stores (infer from Network)
|
|
176
|
+
- [ ] **Animation stack** — match or approximate with CSS or an approved motion library
|
|
177
|
+
|
|
178
|
+
### Documentation output (`docs/research/`)
|
|
179
|
+
|
|
180
|
+
After inspection, produce durable notes:
|
|
181
|
+
|
|
182
|
+
1. `DESIGN_TOKENS.md` — colors, typography, spacing, radius, shadows
|
|
183
|
+
2. `COMPONENT_INVENTORY.md` — components with structure and states
|
|
184
|
+
3. `LAYOUT_ARCHITECTURE.md` — grids, breakpoints, sticky layers
|
|
185
|
+
4. `INTERACTION_PATTERNS.md` — motion, transitions, hover/focus
|
|
186
|
+
5. `TECH_STACK_ANALYSIS.md` — source stack vs chosen equivalents
|
|
187
|
+
|
|
188
|
+
### Common components to hunt for
|
|
189
|
+
|
|
190
|
+
Navigation (top/side/bottom), cards, buttons, links, forms, modals, menus, tabs, avatars/badges, skeletons, toasts, tooltips/popovers.
|
|
191
|
+
|
|
192
|
+
---
|
|
193
|
+
|
|
194
|
+
## Reference: Chrome MCP / agent crawl habits
|
|
195
|
+
|
|
196
|
+
Walk the DOM and network **top-down**. When multiple agents collaborate, reconcile tokens and animation specs in shared research files so Step 5 does not drift. For **`/launchframe`**, tie findings to `launchframe.context.json` and `docs/research/LAUNCHFRAME.md` per project conventions.
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
\n
|
package/.clinerules
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
<!-- AUTO-GENERATED from AGENTS.md
|
|
2
|
-
Run
|
|
3
|
-
|
|
4
|
-
<!-- BEGIN:nextjs-agent-rules -->
|
|
1
|
+
<!-- AUTO-GENERATED from AGENTS.md \u2014 do not edit directly.
|
|
2
|
+
Run \ash scripts/sync-agent-rules.sh\ to regenerate. -->\n\n<!-- BEGIN:nextjs-agent-rules -->
|
|
5
3
|
# This is NOT the Next.js you know
|
|
6
4
|
|
|
7
5
|
This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` before writing any code. Heed deprecation notices.
|
|
@@ -38,7 +36,7 @@ A reusable template for reverse-engineering any website into a clean, modern Nex
|
|
|
38
36
|
- **No personal aesthetic changes during emulation phase** — match 1:1 first, customize later
|
|
39
37
|
- **Real content** — use actual text and assets from the target site where they are interchangeable chrome; **`/launchframe`** overlays your SaaS pitch on headings and CTAs. **Marketing photographs and illustrative hero/feature imagery are not photocopied**: you **must** ship **committed files** under `public/images/` (etc.) for every such slot — **generate them yourself** with your host **image-generation** tool (prompts tied to the SaaS idea), wire into components, supplement with UI mock composites only if helpful. Blank placeholders count as unfinished. Record paths in `docs/research/LAUNCHFRAME.md`
|
|
40
38
|
- **Beauty-first** — every pixel matters
|
|
41
|
-
- **DOM
|
|
39
|
+
- **Inspection workflow (canonical)** — Follow the ordered **five steps** in `docs/research/INSPECTION_GUIDE.md`: (1) **Structure** — DOM as hierarchy reference, not pasted production HTML; (2) **Styles** — Computed/stylesheets and tokens; (3) **Motion** — `@keyframes`, transitions, timings, triggers; (4) **Assets** — rasters/SVGs with brand-safe originals for marketing slots when required; (5) **Implementation** — Next.js components rebuild. Within crawls (Chrome MCP / DevTools), still emphasize **images** (raster, responsive sources, CSS backgrounds), **SVGs** (inline, sprites, masks — **exact geometry**, not unrelated Lucide stand-ins), then **motion fidelity**. **Measure and mirror** from the DOM; scrape **permission-neutral** bytes when appropriate — **SVG and animation fidelity are not waived** when rasters are replaced
|
|
42
40
|
|
|
43
41
|
## Project Structure
|
|
44
42
|
```
|
|
@@ -71,89 +69,131 @@ scripts/ # Asset download scripts
|
|
|
71
69
|
|
|
72
70
|
## How to Reverse-Engineer Any Website
|
|
73
71
|
|
|
74
|
-
This guide
|
|
72
|
+
This guide is the **canonical workflow** when inspecting a target site (Chrome MCP, DevTools, or similar). Execute the steps **in order**: structure and styles establish the blueprint; motion and assets define feel and legality; implementation is always a deliberate rebuild—not a pasted dump.
|
|
75
73
|
|
|
76
|
-
|
|
74
|
+
---
|
|
77
75
|
|
|
78
|
-
|
|
76
|
+
## Step 1 — Structure (DOM hierarchy only)
|
|
79
77
|
|
|
80
|
-
|
|
81
|
-
2. **SVGs** — Inline `<svg>`, `<use>` / sprite sheets, **SVG in CSS** (`mask-image`, `background-image`), favicons as SVG, logo marks. Prefer extracting path/viewBox into React components or static files under `public/` — **recreate** from a screenshot/trace only when the markup is obfuscated or blocked.
|
|
82
|
-
3. **Motion & animation** — Inspect Styles for `animation`, `animation-name`, `animation-timeline`, `transition`, `transform`, `@keyframes`; check for libraries (Framer Motion, GSAP, Lottie, Lenis). Capture **durations, easings, delays, fill-modes**, scroll/view triggers, and `prefers-reduced-motion` handling. Motion often defines perceived quality — do not leave it as an afterthought.
|
|
78
|
+
Treat HTML as a **map of hierarchy**, not as shippable source code.
|
|
83
79
|
|
|
84
|
-
|
|
80
|
+
- **DevTools limitation:** Copying `<head>` and `<body>` with “Copy ▸ Copy outerHTML” gives **one frozen snapshot**. It omits most **stylesheet and script** behavior and may inline classes whose meaning lives in external bundles.
|
|
81
|
+
- **What to extract anyway:** Landmark regions, heading levels, nesting (sections → rows → cards), repeated patterns, form fields, navigation trees, semantic roles.
|
|
82
|
+
- **What not to do:** Do not paste a single giant HTML file into production or assume it reproduces routing, hydration, or data fetching.
|
|
85
83
|
|
|
86
|
-
|
|
84
|
+
### Component & layout checklist (supports Step 1)
|
|
85
|
+
|
|
86
|
+
**Component inventory** — For each distinct UI block, capture:
|
|
87
87
|
|
|
88
|
-
### Screenshots to Capture
|
|
89
|
-
- [ ] Every distinct page — desktop, tablet, mobile
|
|
90
|
-
- [ ] Dark mode variants (if applicable)
|
|
91
|
-
- [ ] Light mode variants (if applicable)
|
|
92
|
-
- [ ] Key interaction states (hover, active, open menus, modals)
|
|
93
|
-
- [ ] Loading/skeleton states
|
|
94
|
-
- [ ] Empty states
|
|
95
|
-
- [ ] Error states
|
|
96
|
-
|
|
97
|
-
### Design Tokens to Extract
|
|
98
|
-
- [ ] **Colors** — background, text (primary/secondary/muted), accent, border, hover, error, success, warning
|
|
99
|
-
- [ ] **Typography** — font family, sizes (h1-h6, body, caption, label), weights, line heights, letter spacing
|
|
100
|
-
- [ ] **Spacing** — padding/margin patterns (look for a scale: 4px, 8px, 12px, 16px, 24px, 32px, etc.)
|
|
101
|
-
- [ ] **Border radius** — buttons, cards, avatars, inputs
|
|
102
|
-
- [ ] **Shadows/elevation** — card shadows, dropdown shadows, modal overlay
|
|
103
|
-
- [ ] **Breakpoints** — when does the layout shift? (inspect with DevTools responsive mode)
|
|
104
|
-
- [ ] **Icons** — which icon library? custom SVGs? sizes?
|
|
105
|
-
- [ ] **Avatars** — sizes, shapes, fallback behavior
|
|
106
|
-
- [ ] **Buttons** — all variants (primary, secondary, ghost, icon-only, danger)
|
|
107
|
-
- [ ] **Inputs** — text fields, textareas, selects, checkboxes, toggles
|
|
108
|
-
|
|
109
|
-
## Phase 2: Component Inventory
|
|
110
|
-
|
|
111
|
-
For each distinct UI component, document:
|
|
112
88
|
1. **Name** — what would you call this component?
|
|
113
|
-
2. **Structure** —
|
|
114
|
-
3. **Variants** —
|
|
89
|
+
2. **Structure** — HTML elements / child components and order
|
|
90
|
+
3. **Variants** — sizes, tones, densities
|
|
115
91
|
4. **States** — default, hover, active, disabled, loading, error, empty
|
|
116
|
-
5. **Responsive behavior** —
|
|
117
|
-
6. **Interactions** — click, hover, focus, keyboard
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
-
|
|
122
|
-
-
|
|
123
|
-
-
|
|
124
|
-
-
|
|
125
|
-
-
|
|
126
|
-
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
-
|
|
131
|
-
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
- [ ] **
|
|
146
|
-
- [ ] **
|
|
147
|
-
- [ ] **
|
|
148
|
-
- [ ] **
|
|
149
|
-
- [ ] **
|
|
150
|
-
- [ ] **
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
92
|
+
5. **Responsive behavior** — changes per breakpoint
|
|
93
|
+
6. **Interactions** — click, hover, focus, keyboard
|
|
94
|
+
|
|
95
|
+
**Layout architecture**
|
|
96
|
+
|
|
97
|
+
- [ ] **Grid vs flex** — primary layout mechanism
|
|
98
|
+
- [ ] **Columns** — count per breakpoint
|
|
99
|
+
- [ ] **Max-width** — content well width
|
|
100
|
+
- [ ] **Sticky / fixed** — header, sidebars, floating CTAs
|
|
101
|
+
- [ ] **Z-index layers** — nav, overlays, tooltips
|
|
102
|
+
- [ ] **Scroll model** — normal, infinite, virtual lists, snap
|
|
103
|
+
|
|
104
|
+
**Screenshots** (tie each shot to a section in the hierarchy)
|
|
105
|
+
|
|
106
|
+
- [ ] Every distinct page — desktop, tablet, mobile
|
|
107
|
+
- [ ] Theme variants (light / dark if applicable)
|
|
108
|
+
- [ ] Hover, active, menus open, modals
|
|
109
|
+
- [ ] Loading / skeleton / empty / error states
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
## Step 2 — Styles (computed appearance + real CSS)
|
|
114
|
+
|
|
115
|
+
Rendered look comes from **CSS** (linked files, injected `<style>` blocks, build output)—not from raw element copy alone.
|
|
116
|
+
|
|
117
|
+
- **Per-element:** In DevTools **Styles** / **Computed**, capture what matters for fidelity: typography, spacing, colors, borders, shadows, breakpoints where rules change.
|
|
118
|
+
- **Global:** From **Sources** or **Network**, identify main stylesheets / CSS chunks; note filenames or URLs for the agents or scripts that will mirror tokens.
|
|
119
|
+
- **Design tokens to extract**
|
|
120
|
+
|
|
121
|
+
- [ ] **Colors** — background, text (primary / secondary / muted), accent, border, hover / focus, semantic (error, success, warning)
|
|
122
|
+
- [ ] **Typography** — families, scale (h1–h6, body, captions), weights, line-height, letter-spacing
|
|
123
|
+
- [ ] **Spacing** — padding/margin rhythm (e.g. 4/8/12/16…)
|
|
124
|
+
- [ ] **Radius & elevation** — cards, buttons, inputs, overlays
|
|
125
|
+
- [ ] **Breakpoints** — layout shifts (responsive mode)
|
|
126
|
+
- [ ] **Icons & avatars** — sizes, masks, fallbacks
|
|
127
|
+
|
|
128
|
+
**Technical CSS context** (informs Tailwind mapping)
|
|
129
|
+
|
|
130
|
+
- [ ] **CSS approach** — utilities vs modules vs styled components vs vanilla
|
|
131
|
+
- [ ] **Fonts** — Google, self-hosted, system stacks
|
|
132
|
+
- [ ] **Image CSS** — `object-fit`, `aspect-ratio`, background layers
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
## Step 3 — Motion (what moves and how)
|
|
137
|
+
|
|
138
|
+
Motion is rarely recoverable from HTML copy; it lives in **CSS animations/transitions** and often **JavaScript** (scroll, gestures, carousel timing).
|
|
139
|
+
|
|
140
|
+
- **Catalog behaviors:** Entrance, hover, focus, drag, scroll-linked, carousel stagger, modal open/close, page transitions.
|
|
141
|
+
- **From Styles / Sources:** `animation-*`, `@keyframes`, `transition`, `transform`, `will-change`; note **duration, easing, delay, fill-mode**.
|
|
142
|
+
- **Libraries:** Identify Framer Motion, GSAP, Lottie, Lenis, CSS-only, etc.
|
|
143
|
+
- **Accessibility:** Note `prefers-reduced-motion` behavior if present.
|
|
144
|
+
|
|
145
|
+
**Priority reminder:** Capture **motion early** alongside media—perceived polish depends on it; do not leave it until the end.
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## Step 4 — Assets (permission-neutral bytes + originals where required)
|
|
150
|
+
|
|
151
|
+
**Early capture**
|
|
152
|
+
|
|
153
|
+
1. **Raster imagery** — `<img>`, `<picture>` / `<source>`, `srcset` / `sizes`, CDN URLs, lazy `data-src`, `loading="lazy"`, **`background-image`** on elements and ancestors (including `::before` / `::after`), masks using `url()`, video posters / stills.
|
|
154
|
+
2. **SVGs** — Inline `<svg>`, `<use>` / sprites, **SVG in CSS** (`mask-image`, backgrounds), favicons. Prefer extracting path/viewBox into React components or files under `public/` — recreate from screenshot/trace only when markup is blocked or obfuscated.
|
|
155
|
+
3. **Brand-safe slots** — **Marketing photos and illustrative hero/feature art** must not be photocopied when policy requires originality: ship **committed** files under `public/images/` (etc.), generated for **your** product idea; document paths in `docs/research/LAUNCHFRAME.md`. Blank placeholders are unfinished.
|
|
156
|
+
4. **Fallbacks** — If URLs are gated, export a crisp screenshot of the element’s box (note DPR) and record the substitution in research notes.
|
|
157
|
+
|
|
158
|
+
**Technical**
|
|
159
|
+
|
|
160
|
+
- [ ] CDN vs origin paths
|
|
161
|
+
- [ ] Lazy loading and responsive image strategy
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
165
|
+
## Step 5 — Implementation (Next.js + components)
|
|
166
|
+
|
|
167
|
+
Rebuild deliberately in **this template’s stack** (Next.js App Router, React, TypeScript strict, shadcn/ui, Tailwind v4).
|
|
168
|
+
|
|
169
|
+
- **Do:** Small composable components, shared tokens, `cn()`, extracted icons in `src/components/icons.tsx` (or adjacent), routes under `src/app/`.
|
|
170
|
+
- **Don’t:** Ship one monolithic HTML string as the app or skip TypeScript/component boundaries.
|
|
171
|
+
|
|
172
|
+
### Stack parity (helps choose libraries)
|
|
173
|
+
|
|
174
|
+
- [ ] **Framework signals** — e.g. `__NEXT_DATA__`, `__NUXT__`, `ng-version`
|
|
175
|
+
- [ ] **State / data** — REST, GraphQL, client stores (infer from Network)
|
|
176
|
+
- [ ] **Animation stack** — match or approximate with CSS or an approved motion library
|
|
177
|
+
|
|
178
|
+
### Documentation output (`docs/research/`)
|
|
179
|
+
|
|
180
|
+
After inspection, produce durable notes:
|
|
181
|
+
|
|
182
|
+
1. `DESIGN_TOKENS.md` — colors, typography, spacing, radius, shadows
|
|
183
|
+
2. `COMPONENT_INVENTORY.md` — components with structure and states
|
|
184
|
+
3. `LAYOUT_ARCHITECTURE.md` — grids, breakpoints, sticky layers
|
|
185
|
+
4. `INTERACTION_PATTERNS.md` — motion, transitions, hover/focus
|
|
186
|
+
5. `TECH_STACK_ANALYSIS.md` — source stack vs chosen equivalents
|
|
187
|
+
|
|
188
|
+
### Common components to hunt for
|
|
189
|
+
|
|
190
|
+
Navigation (top/side/bottom), cards, buttons, links, forms, modals, menus, tabs, avatars/badges, skeletons, toasts, tooltips/popovers.
|
|
191
|
+
|
|
192
|
+
---
|
|
193
|
+
|
|
194
|
+
## Reference: Chrome MCP / agent crawl habits
|
|
195
|
+
|
|
196
|
+
Walk the DOM and network **top-down**. When multiple agents collaborate, reconcile tokens and animation specs in shared research files so Step 5 does not drift. For **`/launchframe`**, tie findings to `launchframe.context.json` and `docs/research/LAUNCHFRAME.md` per project conventions.
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
\n
|