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.
@@ -1,7 +1,5 @@
1
- <!-- AUTO-GENERATED from AGENTS.md do not edit directly.
2
- Run `bash scripts/sync-agent-rules.sh` to regenerate. -->
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 crawl priority** — when walking the target page, emphasize **images** (raster, responsive sources, CSS backgrounds), **SVGs** (inline icons, sprites, masks — **copy extracted geometry**, do not approximate with unrelated Lucide glyphs), then **motion** (**copy** `@keyframes`, `transition`/`animation` timings, scroll triggers, carousel staggers via Chrome MCP / CSS sources). **Measure and mirror** mounting and styling from the DOM; scrape **permission-neutral** bytes when appropriate. When a raster slot must be original for brand safety, **author** replacements and label them in research notes — **that never waives SVG or animation fidelity**
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 outlines what to capture when inspecting a target website via Chrome MCP or browser DevTools.
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
- ## Priority: media, SVGs, and motion (do this early)
74
+ ---
77
75
 
78
- When crawling the DOM and network, **tackle these before fine-tuning copy or spacing**:
76
+ ## Step 1 Structure (DOM hierarchy only)
79
77
 
80
- 1. **Raster imagery** — Every `<img>`, `<picture>` / `source`, `srcset` / `sizes`, CDN URLs, lazy-loaded `data-src`, `loading="lazy"` nodes, **CSS `background-image`** on the element and ancestors (including `::before` / `::after`), masks that use `url()`, `<video>` still / poster frames. Prefer **downloading** originals via scripts or MCP; if a URL is blocked or session-gated, **export a screenshot** of the element’s bounding box at a crisp DPR and store it under `public/images/`, and note the substitute in the spec.
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
- Then continue with typography, spacing, and component structure as usual.
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
- ## Phase 1: Visual Audit
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** — what HTML elements / child components does it contain?
114
- 3. **Variants** — does it have different sizes, colors, or states?
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** — how does it change at different breakpoints?
117
- 6. **Interactions** — click, hover, focus, keyboard navigation
118
- 7. **Animations** — transitions, entrance/exit animations, micro-interactions
119
-
120
- ### Common Components to Look For
121
- - Navigation (top bar, sidebar, bottom bar)
122
- - Cards / list items
123
- - Buttons and links
124
- - Forms and inputs
125
- - Modals and dialogs
126
- - Dropdowns and menus
127
- - Tabs and segmented controls
128
- - Avatars and user badges
129
- - Loading skeletons
130
- - Toast notifications
131
- - Tooltips and popovers
132
-
133
- ## Phase 3: Layout Architecture
134
-
135
- - [ ] **Grid system** — CSS Grid? Flexbox? Fixed widths?
136
- - [ ] **Column layout** — how many columns at each breakpoint?
137
- - [ ] **Max-width** main content area max-width
138
- - [ ] **Sticky elements** — header, sidebar, floating buttons
139
- - [ ] **Z-index layers** navigation, modals, tooltips, overlays
140
- - [ ] **Scroll behavior** — infinite scroll, pagination, virtual scrolling
141
-
142
- ## Phase 4: Technical Stack Analysis
143
-
144
- - [ ] **Framework** — React? Vue? Angular? Check `__NEXT_DATA__`, `__NUXT__`, `ng-version`
145
- - [ ] **CSS approach** — Tailwind (utility classes), CSS Modules, Styled Components, Emotion, vanilla CSS
146
- - [ ] **State management** — Redux (check DevTools), React Query, Zustand, Pinia
147
- - [ ] **API patterns** — REST, GraphQL (check network tab for `/graphql` requests)
148
- - [ ] **Font loading** — Google Fonts, self-hosted, system fonts
149
- - [ ] **Image strategy** — CDN, lazy loading, srcset, WebP/AVIF
150
- - [ ] **Animation library** — Framer Motion, GSAP, CSS transitions only
151
-
152
- ## Phase 5: Documentation Output
153
-
154
- After inspection, create these files in `docs/research/`:
155
- 1. `DESIGN_TOKENS.md` All extracted colors, typography, spacing
156
- 2. `COMPONENT_INVENTORY.md`Every component with structure notes
157
- 3. `LAYOUT_ARCHITECTURE.md` — Page layouts, grid system, responsive behavior
158
- 4. `INTERACTION_PATTERNS.md` — Animations, transitions, hover states
159
- 5. `TECH_STACK_ANALYSIS.md` — What the site uses and our chosen equivalents
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 2Styles (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 do not edit directly.
2
- Run `bash scripts/sync-agent-rules.sh` to regenerate. -->
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 crawl priority** — when walking the target page, emphasize **images** (raster, responsive sources, CSS backgrounds), **SVGs** (inline icons, sprites, masks — **copy extracted geometry**, do not approximate with unrelated Lucide glyphs), then **motion** (**copy** `@keyframes`, `transition`/`animation` timings, scroll triggers, carousel staggers via Chrome MCP / CSS sources). **Measure and mirror** mounting and styling from the DOM; scrape **permission-neutral** bytes when appropriate. When a raster slot must be original for brand safety, **author** replacements and label them in research notes — **that never waives SVG or animation fidelity**
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 outlines what to capture when inspecting a target website via Chrome MCP or browser DevTools.
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
- ## Priority: media, SVGs, and motion (do this early)
74
+ ---
77
75
 
78
- When crawling the DOM and network, **tackle these before fine-tuning copy or spacing**:
76
+ ## Step 1 Structure (DOM hierarchy only)
79
77
 
80
- 1. **Raster imagery** — Every `<img>`, `<picture>` / `source`, `srcset` / `sizes`, CDN URLs, lazy-loaded `data-src`, `loading="lazy"` nodes, **CSS `background-image`** on the element and ancestors (including `::before` / `::after`), masks that use `url()`, `<video>` still / poster frames. Prefer **downloading** originals via scripts or MCP; if a URL is blocked or session-gated, **export a screenshot** of the element’s bounding box at a crisp DPR and store it under `public/images/`, and note the substitute in the spec.
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
- Then continue with typography, spacing, and component structure as usual.
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
- ## Phase 1: Visual Audit
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** — what HTML elements / child components does it contain?
114
- 3. **Variants** — does it have different sizes, colors, or states?
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** — how does it change at different breakpoints?
117
- 6. **Interactions** — click, hover, focus, keyboard navigation
118
- 7. **Animations** — transitions, entrance/exit animations, micro-interactions
119
-
120
- ### Common Components to Look For
121
- - Navigation (top bar, sidebar, bottom bar)
122
- - Cards / list items
123
- - Buttons and links
124
- - Forms and inputs
125
- - Modals and dialogs
126
- - Dropdowns and menus
127
- - Tabs and segmented controls
128
- - Avatars and user badges
129
- - Loading skeletons
130
- - Toast notifications
131
- - Tooltips and popovers
132
-
133
- ## Phase 3: Layout Architecture
134
-
135
- - [ ] **Grid system** — CSS Grid? Flexbox? Fixed widths?
136
- - [ ] **Column layout** — how many columns at each breakpoint?
137
- - [ ] **Max-width** main content area max-width
138
- - [ ] **Sticky elements** — header, sidebar, floating buttons
139
- - [ ] **Z-index layers** navigation, modals, tooltips, overlays
140
- - [ ] **Scroll behavior** — infinite scroll, pagination, virtual scrolling
141
-
142
- ## Phase 4: Technical Stack Analysis
143
-
144
- - [ ] **Framework** — React? Vue? Angular? Check `__NEXT_DATA__`, `__NUXT__`, `ng-version`
145
- - [ ] **CSS approach** — Tailwind (utility classes), CSS Modules, Styled Components, Emotion, vanilla CSS
146
- - [ ] **State management** — Redux (check DevTools), React Query, Zustand, Pinia
147
- - [ ] **API patterns** — REST, GraphQL (check network tab for `/graphql` requests)
148
- - [ ] **Font loading** — Google Fonts, self-hosted, system fonts
149
- - [ ] **Image strategy** — CDN, lazy loading, srcset, WebP/AVIF
150
- - [ ] **Animation library** — Framer Motion, GSAP, CSS transitions only
151
-
152
- ## Phase 5: Documentation Output
153
-
154
- After inspection, create these files in `docs/research/`:
155
- 1. `DESIGN_TOKENS.md` All extracted colors, typography, spacing
156
- 2. `COMPONENT_INVENTORY.md`Every component with structure notes
157
- 3. `LAYOUT_ARCHITECTURE.md` — Page layouts, grid system, responsive behavior
158
- 4. `INTERACTION_PATTERNS.md` — Animations, transitions, hover states
159
- 5. `TECH_STACK_ANALYSIS.md` — What the site uses and our chosen equivalents
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 2Styles (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