用这个模板做的 2 个案例
同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。关于这个模板
一个单页网站,用于发布一款浏览器扩展:首屏以 CSS 浏览器窗口模型为锚点,运行一段脚本化动画,展示扩展的工作过程(杂乱的页面、弹窗、干净的页面);一条与模型同步的三步“工作原理”轨道;一组带有手绘字形的三项功能;一份通俗易懂的隐私宣言;一行评价;手绘的通用安装按钮,并附有手动下载说明;以及一个简短的常见问题。默认内容围绕一个虚构的扩展展开,但该结构适用于任何扩展、用户脚本或桌面工具。外观为工坊暗色:石墨色底、暖纸色文字、一个琥珀色点缀,所有元素均由代码绘制——没有照片,没有浏览器厂商标志。所有文案都放在一个内容文件中;替换变量即可重写页面。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Browser Extension Landing Page
Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else.
## Brief
A single-page site that launches [BRAND], a browser extension that [JOB], summoned with [SHORTCUT]. The hero is a code-drawn browser mockup running a scripted demo of the extension working; below it a synced three-step rail, a feature trio, a privacy manifesto, reviews, drawn install buttons and a short FAQ. One page, index.html; everything runs in the browser and nothing is submitted anywhere.
- Audience: People who read extension permissions before installing: developers, writers and tab-hoarders who want to see the thing work before they trust it with a toolbar slot.
- Goal: Installs. Within ten seconds a visitor sees the mockup demo playing and the install button; within two minutes they have read the privacy manifesto and hit download.
- Tone: Workshop-plain: what it does, what it touches, what it never touches. One dry joke about permissions.
## Stack
- Framework: Vite 5 + React 18 + TypeScript
- Styling: Tailwind CSS 3.4
- Libraries: react (MIT), react-dom (MIT), motion (motion.dev, import from 'motion/react') (MIT), lucide-react (ISC), tailwindcss (MIT), postcss (MIT), autoprefixer (MIT), vite (MIT), @vitejs/plugin-react (MIT), typescript (Apache-2.0), @fontsource-variable/newsreader (OFL-1.1), @fontsource-variable/inter (OFL-1.1), @fontsource/jetbrains-mono (OFL-1.1)
- Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs.
- Setup:
- Scaffold with npm create vite@latest using the react-ts template, then keep one real HTML page: index.html (entry src/main.tsx).
- vite.config.ts: base './', plugins [react()], build { outDir 'dist', sourcemap false, assetsInlineLimit 0 }. Do not copy src/ into dist/.
- Tailwind 3.4 through PostCSS, content ['./index.html', './src/**/*.{ts,tsx}']. In tailwind.config.ts add every color under Design to theme.extend.colors with kebab-case keys (graphite, panel, panel-2, line, paper, mist, amber, amber-deep, amber-mist, ink, good) and fontFamily display ['Newsreader Variable', 'Georgia', 'serif'], sans ['Inter Variable', 'system-ui', 'sans-serif'], mono ['JetBrains Mono', 'ui-monospace', 'monospace']. Set borderRadius DEFAULT to 10px and add maxWidth { container: '1180px' }.
- In src/fonts.ts import '@fontsource-variable/newsreader', '@fontsource-variable/inter' and '@fontsource/jetbrains-mono/400.css' plus '500.css'; import src/fonts.ts and src/index.css from the entry file.
- File layout: src/content.ts (every string, step, feature, review, faq row, demo line, typed), src/lib/brand.ts (brandSlug = [BRAND] lowercased with every run of non-alphanumeric characters replaced by '-', downloadName = brandSlug + '-extension.zip', emailDomain = brandSlug without hyphens + '.com').
- State: src/store/demo.ts is a tiny external store (useSyncExternalStore) holding the demo step index 0–3 and a paused flag, driven by a 2.6s interval that stops on hover/focus of the mockup and under prefers-reduced-motion (which pins step 3, the finished clean state).
- Components in src/components/: Header.tsx, Reveal.tsx (Motion whileInView wrapper), Eyebrow.tsx, Footer.tsx, InstallButtons.tsx; Hero.tsx (BrowserMock.tsx), Steps.tsx (StepRow.tsx), Features.tsx (FeatureCard.tsx), Privacy.tsx, Reviews.tsx (ReviewCard.tsx, StarRow.tsx drawn SVG), Faq.tsx (FaqRow.tsx). src/pages/Home.tsx composes them.
- BrowserMock: a 880x560px (max-width 100%) CSS browser window: chrome bar (three Line dots, a URL pill reading 'longreads.example — a very cluttered article', and a toolbar area with three gray glyph squares then the [BRAND] extension icon — a 22px rounded square in Amber with a drawn paper glyph). Inside, the fake page: a generic article (headline bar, two text columns of Line-gray placeholder bars, and — at steps 0–1 — four ad blocks: amber-crossed gray boxes labeled 'AD' in 10px mono). The demo loop: step 0 cluttered page idle (ad blocks pulsing gently); step 1 the extension icon bounces once and a cursor dot moves to it; step 2 the popup panel (a Paper card, 260px, spring-eased from the toolbar: brand row, one toggle 'Reading mode', one slider 'Width', a muted note 'Local only — no account'); step 3 the page transforms: ad blocks fade and collapse out (300ms), text bars become wider Paper-on-graphite readable bars, the popup closes, and a small Amber 'done' check sits on the toolbar icon. Step dots (4) under the mockup; hovering the mockup pauses the loop; clicking a dot jumps to that step (keyboard-focusable).
- All fake-page content is drawn with divs/SVG — no screenshots, no readable paragraphs, no real site layouts.
- public/favicon.svg as described under Assets. index.html: lang en, <meta name='theme-color' content='#15171C'>, <link rel='icon' href='./favicon.svg' type='image/svg+xml'>, <title>[BRAND] — the extension that [JOB]</title>.
- Write ASSETS.md at the project root as described under Assets.
- dist/ holds index.html, hashed JS/CSS, the woff2 fonts and favicon.svg. Keep it under 5 MB.
## Variables
- [BRAND] — Extension name (default: "Hushpage"). The invented extension's name, one word. Used in the wordmark, title tag, toolbar icon tooltip, install buttons, footer and email (hello@ + brandSlug without hyphens + '.com'). Never a real extension.
- [JOB] — What it does (default: "strips clutter from any article and hands you clean, readable pages"). One lowercase phrase naming the job. Rewrites the H1, the demo popup, the steps and the feature lines. Keep it concrete and verb-first.
- [SHORTCUT] — Shortcut (default: "Alt+Shift+H"). The keyboard shortcut that summons it, in mono in the hero and steps. Invented; not a real extension's binding.
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/browser-extension-landing-page in the footer (default: yes; delete this line to remove it)
The copy under Pages & Sections is written for the default values. If your values differ, rewrite every headline, paragraph, label and image for them — same length, tone and structure. Layout, colors, type and motion stay as described.
Keep all copy, image paths and links in one content file (for example `src/content.ts`), keyed by section, so the content can be swapped later without touching components.
## Design
### Colors
- Graphite `#15171C` — Page background throughout.
- Panel `#1D2026` — Cards, mockup chrome, FAQ rows.
- Panel 2 `#242830` — Hover fill, raised panels, URL pill fill.
- Line `#2E333C` — 1px hairlines, card borders, placeholder bars, input borders.
- Paper `#F1ECE1` — Primary text, the popup card, readable-page bars, headings.
- Mist `#9BA1AC` — Secondary text, captions, eyebrows, placeholder text bars.
- Amber `#E2A13C` — The one accent: extension icon, primary buttons, active step dots, toggle, focus ring, stars.
- Amber Deep `#C4842A` — Hover and pressed primary.
- Amber Mist `#3A2E1B` — Chip fills, selected states, tint panels.
- Ink `#191510` — Text on Paper or Amber fills.
- Good `#7FB069` — Permission checks, 'done' states, privacy ticks.
### Typography
- Display: H1, H2, review quotes — Newsreader, warm editorial serif: Newsreader (OFL), weights 400/600
- Text and UI: body, buttons, forms, captions, mockup UI: Inter (OFL), weights 400/500/600
- Mono: shortcut keys, the URL pill, small labels in the mockup: JetBrains Mono (OFL), weights 400/500
### Layout & motion
- Spacing: 8px base unit. Container max-width 1180px, centered, side padding 48px desktop, 32px tablet, 20px under 640px. 12-column grid, column gap 24px. Section vertical padding 100px desktop, 76px under 1024px, 60px under 640px. Type scale: H1 clamp(40px, 5.4vw, 66px) Newsreader 600, line-height 1.06; H2 clamp(26px, 3.5vw, 42px) Newsreader 600; feature titles Inter 600 17px; lead Inter 400 17.5px / 1.65 Paper at 90%; body 15.5px / 1.7; eyebrow Inter 600 12px uppercase letter-spacing 0.16em Mist; caption 13px Mist; mono labels JetBrains Mono 400 12.5px. Buttons: height 50px, Inter 600 14px; primary Amber fill with Ink text, secondary 1px Line border with Paper text. Focus everywhere: 2px Amber outline, 3px offset.
- Radius: 10px on cards, panels, buttons; 999px for pills and step dots; 14px on the mockup window.
- Motion: Easing: --ease-out cubic-bezier(0.22, 0.61, 0.36, 1) for reveals; a spring (stiffness 260, damping 24) for the popup. Workshop-steady.
- Motion: Reveal: sections wrapped in <Reveal> start opacity 0, translateY(14px), settle over 700ms --ease-out at 15% viewport (Motion whileInView, once), siblings stagger 70ms.
- Motion: The mockup demo loop runs as described in Setup (2.6s steps, hover/focus pause, dot jump); under prefers-reduced-motion it sits on the finished step 3 with all controls still usable.
- Motion: Hero: the mockup enters from translateY(20px) scale(0.98); the H1 lines rise; the shortcut key chips pop in with a 40ms stagger.
- Motion: Steps: the active step row carries an Amber left rail and its icon swaps from Mist to Amber; changes crossfade 200ms.
- Motion: Privacy: the four tick lines draw their checks (SVG stroke) on first view, staggered 90ms.
- Motion: Reviews: cards reveal with 70ms stagger; stars fill amber one by one (40ms apart).
- Motion: Install buttons: the primary draws a subtle 1px Amber top rail on hover; the version chip never moves.
- Motion: FAQ: rows expand 240ms; plus rotates to cross.
- Motion: Links: .link-draw grows a 1px currentColor underline over 260ms on hover and focus-visible.
- Motion: prefers-reduced-motion: reduce — demo pinned to the finished state, no check drawing, no star fills (amber at rest), no popup spring (popup shown open statically); color/border hovers stay. Use CSS @media in index.css plus Motion's useReducedMotion.
- Imagery: No photographs anywhere. Everything is drawn in code: the browser window, its chrome, the fake article page (placeholder bars, never readable paragraphs), ad blocks, the popup card, step glyphs, star rows and the favicon. No browser-vendor marks (no Chrome/Firefox/Edge/Safari names, logos or store badges) — install buttons are drawn generic with lucide icons and the words 'Install for your browser'. Icons: lucide-react only, stroke width 1.75.
## Pages & Sections
### Extension landing (`index.html`)
1. **Content file and copy rules** — All copy below is written for the defaults ([BRAND] = Hushpage, [JOB] = strips clutter from any article and hands you clean, readable pages, [SHORTCUT] = Alt+Shift+H). Put every string, step, feature, review, FAQ row and demo label in src/content.ts and render from it. If any variable differs, rewrite the H1, the steps, the features, the popup labels and the FAQ so they are specific and believable for that extension, keeping the same structure and counts (3 steps, 3 features, 3 reviews, 4 FAQ rows). Steps: 'Open anything cluttered' 'an article, a recipe, a doc — [BRAND] waits quietly in the toolbar'; 'Press [SHORTCUT] or click' 'the popup opens where you are; no accounts, no cloud'; 'Read' 'the page settles into clean type; the noise is gone, not hidden'. Features: 'Local by design' 'everything runs in the tab; there is no server to leak'; 'Your keys, your habit' 'one shortcut, remembered per site, adjustable width'; 'Polite permissions' 'it asks for the tab, not your history, wallet or firstborn'. Reviews (quote · name · role): 'The first extension I haven't uninstalled.' 'Marta Kowalski' 'Reporter'; 'My eyes are 40 and grateful.' 'Devon Reyes' 'PhD student'; 'No account. That's the feature.' 'Ingrid Halvorsen' 'Privacy nerd'. FAQ: 'Which browsers?' 'Any Chromium browser and current Firefox; the buttons below keep it honest.'; 'Does it send my pages anywhere?' 'No — there is no anywhere; the demo popup says so.'; 'What permissions?' 'Active tab only, on click. It never reads other tabs.'; 'Is it really free?' 'Yes; there is no pro tier hiding in a menu (sample copy).' All install counts and ratings stay out; reviews are invented sample content.
Layout: n/a
Motion: n/a
2. **Header** — Left: the wordmark '[BRAND]' (Newsreader 600 20px, Paper) with a small Amber square glyph before it; over 'BROWSER EXTENSION' (10px uppercase Mist). Right nav (Inter 500 14px): 'How' → #how, 'Features' → #features, 'Privacy' → #privacy, and a compact primary 'Install' → #install. Under 720px: wordmark + button.
Layout: Sticky top, height 68px, Graphite at 92% with backdrop blur, Line bottom border.
3. **Hero** — Two columns. Left (5 cols): eyebrow 'ONE JOB, DONE QUIETLY'; H1 'The page, minus the page.'; lead '[BRAND] [JOB] — summoned with [SHORTCUT], remembered per site, gone when you close the tab.'; CTA row: primary 'Install for your browser' → #install, secondary 'Watch it work' → #demo (scrolls to the mockup); trust row (Good checks): 'Active-tab permission only', 'No accounts', 'No telemetry'; the shortcut rendered as two mono key chips. Right (7 cols): the BrowserMock with step dots and the caption 'A scripted demo — your pages are your business.'
Layout: Graphite background, 120px top padding; mockup fills its column, max-width 880px.
4. **How it works** — Section id='how'. Eyebrow 'HOW IT WORKS'; H2 'Three steps, no ceremony.' The BrowserMock repeats here in a compact form (or the hero one anchors above; on this page the section sits directly under the hero and reuses the same demo store): three StepRows under the mockup — number (mono 01–03 in Amber), title (Inter 600 17px), line (Inter 15px Mist). The active row tracks the demo step.
Layout: Panel-tinted background; mockup centered, steps in a 3-column row under it (1 column under 800px).
5. **Features** — Section id='features'. Eyebrow 'WHAT YOU GET'; H2 'Small tool, sharp edges.' Three FeatureCards (Panel, Line border): a drawn glyph (Lock, Command, ShieldCheck lucide icons in Amber wells), title and line from the roster.
Layout: Graphite background; 3 columns 24px gap (1 under 860px).
6. **Privacy** — Section id='privacy' on Amber Mist tint over Panel. Eyebrow 'THE PROMISE'; H2 'Reads like a permissions screen, means it.' Four tick lines (Good checks drawn in): 'No accounts' 'nothing to sign into, nothing to lose'; 'No telemetry' 'the only network is the page you asked for'; 'Tab-scoped' 'it touches the tab you summon it in, never your history'; 'Open source' 'the whole thing is [BRAND_SLUG] on the forge (sample link)' with an inert '#' link. Caption: 'Sample privacy copy for a fictional extension.'
Layout: Two columns: heading left (4 cols), lines right (7 cols, offset 1) as hairline-divided rows.
7. **Reviews** — Section id='reviews'. Eyebrow 'THREE HUMANS'; H2 'Short sentences, real-seeming people.' Three ReviewCards: StarRow (5 amber SVG stars), quote (Newsreader 400 italic 19px), name (Inter 600 14px) over role (13px Mist).
Layout: Graphite background; 3 columns 24px gap (1 under 860px); cards Panel with Line border.
8. **Install** — Section id='install'. Eyebrow 'GET IT'; H2 'Two buttons, zero dark patterns.' InstallButtons: primary 'Install for your browser' (lucide Download icon) — an inert anchor with the caption 'Demo: opens nothing' — and secondary 'Download the zip' (lucide Package icon) labeled downloadName. Under: a mono line 'v1.4 · 48 KB · sample version string' and the small print 'This is a template demo; the buttons are anchors, the zip is imaginary, the intent is honest.'
Layout: Panel-tinted background; centered stack max-width 560px.
9. **FAQ and footer** — Four FaqRows (plus rotates to cross) on Panel rows. Footer: left wordmark + 'hello@' + emailDomain; right '© [BRAND]. Made in a tab, for tabs.' and 'Built with a VibeFather template' linking https://vibefather.ai.
Layout: FAQ single column max-width 760px on Graphite; footer 76px, Line top border.
## Assets
- image: No photographs or downloaded images: every visual is drawn in code (browser window, fake article page, popup, step glyphs, stars, favicon). Do not fetch or hotlink anything.
- image: Write ASSETS.md at the project root listing the code-drawn assets (browser mockup, fake page, popup, stars, favicon — 'drawn in code, original') and the npm packages: @fontsource-variable/newsreader, @fontsource-variable/inter, @fontsource/jetbrains-mono (OFL-1.1) and lucide-react (ISC).
- icon: lucide-react only: ArrowDown, Check, Command, Download, Lock, MousePointerClick, Package, ShieldCheck. Stroke width 1.75, 16–24px, color inherits. public/favicon.svg: viewBox 0 0 32 32, a 32x32 rounded square filled #E2A13C, an Ink (#191510) drawn 'quiet page' glyph (a rounded rectangle with three text lines and a small crossed-out block). No browser-vendor marks, no real extension icons.
- font: Install @fontsource-variable/newsreader, @fontsource-variable/inter and @fontsource/jetbrains-mono and import them in src/fonts.ts as listed in Setup. Vite bundles the woff2 files into dist/.
## Don'ts
- No backend, no form submission, no fetch to API: install buttons are inert anchors with honest captions; there is no form on this page.
- Every internal link points to a file name or anchor (./index.html, #install) — never to a bare directory; there is exactly one page.
- No browser-vendor names, logos or store badges (Chrome, Firefox, Edge, Safari, their marks); install buttons are drawn generic.
- No real extensions, their UI or their copy; the demo page inside the mockup is generic placeholder bars — never a recognizable site, never readable paragraphs, never real ads.
- No photographs and no people; every visual is code-drawn; reviewers get names only, no avatars.
- No install counts, star averages or store rankings presented as fact; reviews and the version string are invented sample content that says so.
- Self-host everything: fonts through Fontsource, icons as npm packages or inline SVG. No CDN <script> or <link> tags, no Google Fonts, no analytics.
- Production build: minified, no source maps, no src/ copied into dist/, single command npm run build, output in dist/ under 5 MB.
- No dates or years anywhere; the version string is clearly sample.
- Never mention VibeFather inside the site except the footer credit link; all copy is invented US English.
- Respect prefers-reduced-motion: the demo sits on its finished state with controls usable; no check drawing, no star fills, no spring; color/border hovers stay.
- The site must work at 1440x900 desktop and 390x844 mobile with zero console errors; step dots, FAQ and buttons work with keyboard only and visible focus rings.
- Keep copy workshop-plain: no 'revolutionize', no growth-hack; every string lives in src/content.ts.
---
— Prompt by VibeFather · https://vibefather.ai/t/browser-extension-landing-page · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
中文参考译文(帮助理解,复制给 AI 时请用上面的英文原版)
# 浏览器扩展落地页
完全按照以下描述构建此网站。将 [VARIABLES] 替换为你自己的值;其余内容保持不变。
## 简介
一个单页网站,用于发布 [BRAND]——一款通过 [SHORTCUT] 唤起的浏览器扩展,它可以 [JOB]。首屏是一个用代码绘制的浏览器模型,正在运行该扩展工作的脚本化演示;其下方是一个同步的三步导轨、一个三特性区块、一份隐私宣言、用户评价、绘制的安装按钮和一个简短的常见问题。单页,index.html;一切都在浏览器中运行,不会向任何地方提交数据。
- 受众:安装前会阅读扩展权限的人:开发者、写作者和标签页囤积者,他们希望在把工具栏位置托付给某个东西之前,先看到它确实能用。
- 目标:安装量。访客在十秒内看到模型演示正在播放以及安装按钮;在两分钟内读完隐私宣言并点击下载。
- 语气:工坊式的直白:它做什么、它接触什么、它绝不接触什么。关于权限的一个冷幽默。
## 技术栈(Stack)
- 框架(Framework):Vite 5 + React 18 + TypeScript
- 样式(Styling):Tailwind CSS 3.4
- 库(Libraries):react(MIT)、react-dom(MIT)、motion(motion.dev,从 'motion/react' 导入)(MIT)、lucide-react(ISC)、tailwindcss(MIT)、postcss(MIT)、autoprefixer(MIT)、vite(MIT)、@vitejs/plugin-react(MIT)、typescript(Apache-2.0)、@fontsource-variable/newsreader(OFL-1.1)、@fontsource-variable/inter(OFL-1.1)、@fontsource/jetbrains-mono(OFL-1.1)
- 构建(Build):`npm run build` → 静态文件输出到 `dist/`。无后端、无服务端代码、无外部 API。
- 初始化(Setup):
- 使用 npm create vite@latest 并选择 react-ts 模板搭建项目,然后只保留一个真实 HTML 页面:index.html(入口 src/main.tsx)。
- vite.config.ts:base 设为 './',plugins 为 [react()],build { outDir 'dist', sourcemap false, assetsInlineLimit 0 }。不要把 src/ 复制到 dist/ 中。
- Tailwind 3.4 通过 PostCSS 接入,content 为 ['./index.html', './src/**/*.{ts,tsx}']。在 tailwind.config.ts 中,把设计(Design)下的每种颜色以 kebab-case 键名加入 theme.extend.colors(graphite、panel、panel-2、line、paper、mist、amber、amber-deep、amber-mist、ink、good),并设置 fontFamily:display 为 ['Newsreader Variable', 'Georgia', 'serif'],sans 为 ['Inter Variable', 'system-ui', 'sans-serif'],mono 为 ['JetBrains Mono', 'ui-monospace', 'monospace']。将 borderRadius 的 DEFAULT 设为 10px,并添加 maxWidth { container: '1180px' }。
- 在 src/fonts.ts 中导入 '@fontsource-variable/newsreader'、'@fontsource-variable/inter' 和 '@fontsource/jetbrains-mono/400.css' 以及 '500.css';在入口文件中导入 src/fonts.ts 和 src/index.css。
- 文件布局:src/content.ts(所有字符串、步骤、功能、评价、FAQ 行、演示文案、打字效果文本),src/lib/brand.ts(brandSlug = [BRAND] 转为小写,并将每一段连续的非字母数字字符替换为 '-',downloadName = brandSlug + '-extension.zip',emailDomain = 去掉连字符的 brandSlug + '.com')。
- 状态(State):src/store/demo.ts 是一个小型外部 store(useSyncExternalStore),保存演示步骤索引 0–3 和一个暂停标志,由 2.6s 的定时器驱动;当鼠标悬停或聚焦到 mockup 上时停止,在 prefers-reduced-motion 下也停止(此时固定为步骤 3,即完成后的干净状态)。
- 组件位于 src/components/:Header.tsx、Reveal.tsx(Motion whileInView 包装器)、Eyebrow.tsx、Footer.tsx、InstallButtons.tsx;Hero.tsx(BrowserMock.tsx)、Steps.tsx(StepRow.tsx)、Features.tsx(FeatureCard.tsx)、Privacy.tsx、Reviews.tsx(ReviewCard.tsx、StarRow.tsx 手绘 SVG)、Faq.tsx(FaqRow.tsx)。src/pages/Home.tsx 负责组合它们。
- BrowserMock:一个 880x560px(max-width 100%)的 CSS 浏览器窗口:chrome 栏(三个 Line 色圆点、一个显示 'longreads.example — a very cluttered article' 的 URL 胶囊,以及一个工具栏区域,内含三个灰色字形方块,然后是 [BRAND] 扩展图标——一个 22px 的 Amber 圆角方块,带手绘纸张字形)。内部是假页面:一篇通用文章(标题栏、两列 Line 灰色占位条组成的文本,以及在步骤 0–1 时出现的四个广告块:带 amber 叉号的灰色方块,用 10px mono 字体标注 'AD')。演示循环:步骤 0 杂乱页面静止(广告块轻微脉动);步骤 1 扩展图标弹跳一次,一个光标点移向它;步骤 2 弹出面板(一张 Paper 卡片,260px,从工具栏以弹簧缓动出现:品牌行、一个开关 'Reading mode'、一个滑块 'Width'、一条弱化提示 'Local only — no account');步骤 3 页面变换:广告块淡出并折叠消失(300ms),文本条变为更宽的 Paper-on-graphite 可读条,弹出面板关闭,工具栏图标上出现一个小的 Amber 'done' 对勾。mockup 下方有步骤圆点(4 个);悬停 mockup 会暂停循环;点击圆点可跳转到该步骤(可键盘聚焦)。
- 所有假页面内容都用 div/SVG 绘制——不使用截图、不使用可读段落、不使用真实网站布局。
- public/favicon.svg 按资源(Assets)部分所述。index.html:lang 为 en,<meta name='theme-color' content='#15171C'>,<link rel='icon' href='./favicon.svg' type='image/svg+xml'>,<title>[BRAND] — the extension that [JOB]</title>。
- 在项目根目录编写 ASSETS.md,内容按资源(Assets)部分所述。
- dist/ 包含 index.html、带哈希的 JS/CSS、woff2 字体和 favicon.svg。保持在 5 MB 以下。
## 变量
- [BRAND] — 扩展名称(默认:“Hushpage”)。虚构扩展的名称,一个单词。用于字标、标题标签、工具栏图标提示、安装按钮、页脚和电子邮件(hello@ + 不含连字符的 brandSlug + '.com')。绝不是真实扩展。
- [JOB] — 它的功能(默认:“strips clutter from any article and hands you clean, readable pages”)。一个小写短语,说明其功能。重写 H1、演示弹窗、步骤和功能行。保持具体并以动词开头。
- [SHORTCUT] — 快捷键(默认:“Alt+Shift+H”)。召唤它的键盘快捷键,在 hero 和步骤中以等宽字体显示。虚构的;不是真实扩展的绑定。
- [CREDIT] — 在页脚保留一个小的“Template by VibeFather”链接到 https://vibefather.ai/t/browser-extension-landing-page(默认:是;删除此行以移除它)
Pages & Sections 下的文案是为默认值编写的。如果你的值不同,请为它们重写每个标题、段落、标签和图像——保持相同的长度、语气和结构。布局、颜色、字体和动效保持所述不变。
将所有文案、图像路径和链接放在一个内容文件中(例如 `src/content.ts`),按部分键控,以便以后可以在不触及组件的情况下交换内容。
## 设计
### 颜色(Colors)
- 石墨色(Graphite)`#15171C` — 整个页面的背景。
- 面板色(Panel)`#1D2026` — 卡片、模型窗口外框、FAQ 行。
- 面板色 2(Panel 2)`#242830` — 悬停填充、凸起面板、URL 胶囊填充。
- 线条色(Line)`#2E333C` — 1px 细线、卡片边框、占位条、输入框边框。
- 纸色(Paper)`#F1ECE1` — 主文本、弹窗卡片、可读页面条、标题。
- 雾色(Mist)`#9BA1AC` — 次要文本、说明文字、眉题、占位文本条。
- 琥珀色(Amber)`#E2A13C` — 唯一强调色:扩展图标、主按钮、活动步骤圆点、开关、焦点环、星标。
- 深琥珀色(Amber Deep)`#C4842A` — 主按钮的悬停和按下状态。
- 浅琥珀色(Amber Mist)`#3A2E1B` — 标签填充、选中状态、着色面板。
- 墨色(Ink)`#191510` — 纸色或琥珀色填充上的文本。
- 良好色(Good)`#7FB069` — 权限检查、'done' 状态、隐私勾选。
### 排版(Typography)
- 展示字体:H1、H2、评论引文 — Newsreader,温暖的编辑衬线体:Newsreader(OFL),字重 400/600
- 文本与 UI:正文、按钮、表单、说明文字、模型 UI:Inter(OFL),字重 400/500/600
- 等宽字体:快捷键、URL 胶囊、模型中的小标签:JetBrains Mono(OFL),字重 400/500
### 布局与动效(Layout & motion)
- 间距:8px 基准单位。容器最大宽度 1180px,居中,侧边内边距桌面端 48px,平板端 32px,640px 以下 20px。12 列网格,列间距 24px。区块垂直内边距桌面端 100px,1024px 以下 76px,640px 以下 60px。字号比例:H1 clamp(40px, 5.4vw, 66px) Newsreader 600,行高 1.06;H2 clamp(26px, 3.5vw, 42px) Newsreader 600;功能标题 Inter 600 17px;导语 Inter 400 17.5px / 1.65 Paper 90%;正文 15.5px / 1.7;眉题 Inter 600 12px 大写 letter-spacing 0.16em Mist;说明文字 13px Mist;等宽标签 JetBrains Mono 400 12.5px。按钮:高度 50px,Inter 600 14px;主按钮 Amber 填充配 Ink 文本,次按钮 1px Line 边框配 Paper 文本。全局焦点:2px Amber 轮廓,3px 偏移。
- 圆角:卡片、面板、按钮 10px;胶囊和步骤圆点 999px;模型窗口 14px。
- 动效:缓动:--ease-out cubic-bezier(0.22, 0.61, 0.36, 1) 用于显现;弹窗使用弹簧(stiffness 260, damping 24)。工坊般稳定。
- 动效:显现:包裹在 <Reveal> 中的区块初始 opacity 0、translateY(14px),在视口 15% 处用 700ms --ease-out 稳定下来(Motion whileInView, once),同级元素错开 70ms。
- 动效:模型演示循环按 Setup 中所述运行(2.6s 步进、悬停/聚焦暂停、圆点跳转);在 prefers-reduced-motion 下停留在完成的第 3 步,所有控件仍可用。
- 动效:首屏:模型从 translateY(20px) scale(0.98) 进入;H1 各行上升;快捷键芯片以 40ms 错开弹出。
- 动效:步骤:活动步骤行带有 Amber 左侧轨道,其图标从 Mist 切换为 Amber;变化以 200ms 交叉淡入淡出。
- 动效:隐私:四条勾选线在首次进入视口时绘制其勾选(SVG stroke),错开 90ms。
- 动效:评论:卡片以 70ms 错开显现;星标逐个填充琥珀色(间隔 40ms)。
- 动效:安装按钮:主按钮在悬停时绘制一条微妙的 1px Amber 顶部轨道;版本芯片从不移动。
- 动效:FAQ:行以 240ms 展开;加号旋转为叉号。
- 动效:链接:.link-draw 在悬停和 focus-visible 时以 260ms 生长出 1px currentColor 下划线。
- 动效:prefers-reduced-motion: reduce — 演示固定为完成状态,无勾选绘制,无星标填充(琥珀色静止),无弹窗弹簧(弹窗静态显示为打开);颜色/边框悬停保留。在 index.css 中使用 CSS @media 加上 Motion 的 useReducedMotion。
- 图像:任何地方都没有照片。一切用代码绘制:浏览器窗口、其外框、假文章页面(占位条,从不显示可读段落)、广告块、弹窗卡片、步骤字形、星标行和 favicon。没有浏览器厂商标记(没有 Chrome/Firefox/Edge/Safari 名称、徽标或商店徽章)——安装按钮用 lucide 图标和 'Install for your browser' 字样绘制为通用样式。图标:仅 lucide-react,描边宽度 1.75。
## 页面与区块
### 扩展落地页(`index.html`)
1. **内容文件与文案规则** — 以下所有文案均按默认值撰写([BRAND] = Hushpage,[JOB] = strips clutter from any article and hands you clean, readable pages,[SHORTCUT] = Alt+Shift+H)。将每个字符串、步骤、功能、评价、FAQ 行和演示标签都放入 src/content.ts 并从中渲染。若任一变量不同,请重写 H1、步骤、功能、弹窗标签和 FAQ,使其对该扩展具体且可信,同时保持相同的结构和数量(3 个步骤、3 个功能、3 条评价、4 行 FAQ)。步骤:'Open anything cluttered' 'an article, a recipe, a doc — [BRAND] waits quietly in the toolbar';'Press [SHORTCUT] or click' 'the popup opens where you are; no accounts, no cloud';'Read' 'the page settles into clean type; the noise is gone, not hidden'。功能:'Local by design' 'everything runs in the tab; there is no server to leak';'Your keys, your habit' 'one shortcut, remembered per site, adjustable width';'Polite permissions' 'it asks for the tab, not your history, wallet or firstborn'。评价(引文 · 姓名 · 角色):'The first extension I haven't uninstalled.' 'Marta Kowalski' 'Reporter';'My eyes are 40 and grateful.' 'Devon Reyes' 'PhD student';'No account. That's the feature.' 'Ingrid Halvorsen' 'Privacy nerd'。FAQ:'Which browsers?' 'Any Chromium browser and current Firefox; the buttons below keep it honest.';'Does it send my pages anywhere?' 'No — there is no anywhere; the demo popup says so.';'What permissions?' 'Active tab only, on click. It never reads other tabs.';'Is it really free?' 'Yes; there is no pro tier hiding in a menu (sample copy).' 所有安装数和评分均不出现;评价为虚构的示例内容。
布局:不适用
动效:不适用
2. **页头(Header)** — 左侧:字标 '[BRAND]'(Newsreader 600 20px,Paper),其前有一个小的 Amber 方形字形;位于 'BROWSER EXTENSION'(10px 大写 Mist)上方。右侧导航(Inter 500 14px):'How' → #how,'Features' → #features,'Privacy' → #privacy,以及一个紧凑的主按钮 'Install' → #install。低于 720px:字标 + 按钮。
布局:吸顶,高度 68px,Graphite 92% 带背景模糊,Line 底边框。
3. **首屏(Hero)** — 两栏。左栏(5 列):眉标 'ONE JOB, DONE QUIETLY';H1 'The page, minus the page.';导语 '[BRAND] [JOB] — summoned with [SHORTCUT], remembered per site, gone when you close the tab.';CTA 行:主按钮 'Install for your browser' → #install,次按钮 'Watch it work' → #demo(滚动到模型图);信任行(Good 勾选):'Active-tab permission only'、'No accounts'、'No telemetry';快捷键渲染为两个等宽键帽。右栏(7 列):BrowserMock 带步骤圆点和说明文字 'A scripted demo — your pages are your business.'
布局:Graphite 背景,顶部内边距 120px;模型图填满其列,最大宽度 880px。
4. **工作原理(How it works)** — 区块 id='how'。眉标 'HOW IT WORKS';H2 'Three steps, no ceremony.' BrowserMock 在此处以紧凑形式重复出现(或首屏那个锚定在上方;本页中该区块直接位于首屏下方并复用同一演示 store):模型图下方三个 StepRow — 编号(等宽 01–03,Amber)、标题(Inter 600 17px)、说明行(Inter 15px Mist)。活动行跟随演示步骤。
布局:Panel 色调背景;模型图居中,步骤在其下方呈 3 列行(低于 800px 时 1 列)。
5. **功能(Features)** — 区块 id='features'。眉标 'WHAT YOU GET';H2 'Small tool, sharp edges.' 三个 FeatureCard(Panel,Line 边框):绘制的字形(Lock、Command、ShieldCheck lucide 图标,置于 Amber 凹槽中)、标题和来自名册的说明行。
布局:Graphite 背景;3 列 24px 间距(低于 860px 时 1 列)。
6. **隐私(Privacy)** — 区块 id='privacy',Amber Mist 色调覆盖于 Panel 之上。眉标 'THE PROMISE';H2 'Reads like a permissions screen, means it.' 四条勾选行(绘制的 Good 勾选):'No accounts' 'nothing to sign into, nothing to lose';'No telemetry' 'the only network is the page you asked for';'Tab-scoped' 'it touches the tab you summon it in, never your history';'Open source' 'the whole thing is [BRAND_SLUG] on the forge (sample link)',带一个惰性 '#' 链接。说明文字:'Sample privacy copy for a fictional extension.'
布局:两栏:标题在左(4 列),行在右(7 列,偏移 1),以细线分隔行。
7. **评价(Reviews)** — 区块 id='reviews'。眉标 'THREE HUMANS';H2 'Short sentences, real-seeming people.' 三个 ReviewCard:StarRow(5 颗 amber SVG 星)、引文(Newsreader 400 斜体 19px)、姓名(Inter 600 14px)位于角色(13px Mist)上方。
布局:Graphite 背景;3 列 24px 间距(低于 860px 时 1 列);卡片 Panel 带 Line 边框。
8. **安装(Install)** — 区块 id='install'。眉标 'GET IT';H2 'Two buttons, zero dark patterns.' InstallButtons:主按钮 'Install for your browser'(lucide Download 图标)— 一个惰性锚点,带说明文字 'Demo: opens nothing' — 以及次按钮 'Download the zip'(lucide Package 图标),标注为 downloadName。下方:一行等宽文字 'v1.4 · 48 KB · sample version string' 和小字 'This is a template demo; the buttons are anchors, the zip is imaginary, the intent is honest.'
布局:Panel 色调背景;居中堆叠,最大宽度 560px。
9. **FAQ 与页脚(FAQ and footer)** — 四个 FaqRow(加号旋转为叉号)位于 Panel 行上。页脚:左侧字标 + 'hello@' + emailDomain;右侧 '© [BRAND]. Made in a tab, for tabs.' 和 'Built with a VibeFather template' 链接至 https://vibefather.ai。
布局:FAQ 单列最大宽度 760px,位于 Graphite 上;页脚 76px,Line 顶边框。
## 资产
- 图片:不使用照片或下载的图片:所有视觉元素都用代码绘制(浏览器窗口、假文章页面、弹窗、步骤图标、星星、favicon)。不要获取或热链任何内容。
- 图片:在项目根目录编写 ASSETS.md,列出代码绘制的资产(浏览器模型、假页面、弹窗、星星、favicon——'代码绘制,原创')以及 npm 包:@fontsource-variable/newsreader、@fontsource-variable/inter、@fontsource/jetbrains-mono(OFL-1.1)和 lucide-react(ISC)。
- 图标:仅使用 lucide-react:ArrowDown、Check、Command、Download、Lock、MousePointerClick、Package、ShieldCheck。描边宽度 1.75,16–24px,颜色继承。public/favicon.svg:viewBox 0 0 32 32,一个 32x32 的圆角方块填充 #E2A13C,一个 Ink(#191510)绘制的“安静页面”图标(一个圆角矩形,包含三行文本和一个小型划掉的块)。无浏览器厂商标志,无真实扩展图标。
- 字体:安装 @fontsource-variable/newsreader、@fontsource-variable/inter 和 @fontsource/jetbrains-mono,并在 src/fonts.ts 中按 Setup 中列出的方式导入它们。Vite 将 woff2 文件打包到 dist/ 中。
## 禁止事项
- 无后端、无表单提交、无对 API 的 fetch 请求:安装按钮是惰性锚点,配有诚实的说明文字;本页面没有表单。
- 每个内部链接都指向文件名或锚点(./index.html、#install)——绝不指向裸目录;本页面有且仅有一个页面。
- 不得出现浏览器厂商名称、徽标或商店徽章(Chrome、Firefox、Edge、Safari 及其标志);安装按钮以通用样式绘制。
- 不得出现真实扩展、其 UI 或其文案;模拟界面内的演示页面是通用占位条——绝不是可识别的网站,绝不是可读的段落,绝不是真实广告。
- 不得出现照片和人物;所有视觉元素均由代码绘制;评审者只显示姓名,不显示头像。
- 不得将安装量、星级平均值或商店排名作为事实呈现;评论和版本字符串是虚构的示例内容,并已明确说明这一点。
- 一切资源自托管:字体通过 Fontsource 引入,图标以 npm 包或内联 SVG 形式提供。不得使用 CDN 的 <script> 或 <link> 标签,不得使用 Google Fonts,不得使用分析工具。
- 生产构建:压缩,无 source map,不将 src/ 复制到 dist/,使用单条命令 npm run build,输出位于 dist/ 且小于 5 MB。
- 任何位置都不得出现日期或年份;版本字符串须明确为示例。
- 除页脚署名链接外,绝不在站点内提及 VibeFather;所有文案均为虚构的美式英语。
- 遵循 prefers-reduced-motion:演示停留在其完成状态,控件可用;无勾选绘制、无星星填充、无弹簧动画;颜色/边框悬停效果保留。
- 站点必须在 1440x900 桌面端和 390x844 移动端正常工作,控制台零错误;步骤圆点、FAQ 和按钮仅用键盘即可操作,且焦点环可见。
- 文案保持工坊式平实:不用“revolutionize”,不用增长黑客话术;每个字符串都存放在 src/content.ts 中。
---
— Prompt by VibeFather · https://vibefather.ai/t/browser-extension-landing-page · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
个人项目可免费使用(CC BY-NC 4.0)。 商业用途需要 Pro.
DESIGN.md
单独的设计规范:配色、字体、间距和动效。可以把这套视觉用到你已有的项目上。
---
name: "Browser Extension Landing Page"
colors:
graphite: "#15171C"
panel: "#1D2026"
panel_2: "#242830"
line: "#2E333C"
paper: "#F1ECE1"
mist: "#9BA1AC"
amber: "#E2A13C"
amber_deep: "#C4842A"
amber_mist: "#3A2E1B"
ink: "#191510"
good: "#7FB069"
typography:
display_h1_h2_review_quotes_newsreader_warm_editorial_serif: { family: "Newsreader", weights: [400, 600] }
text_and_ui_body_buttons_forms_captions_mockup_ui: { family: "Inter", weights: [400, 500, 600] }
mono_shortcut_keys_the_url_pill_small_labels_in_the_mockup: { family: "JetBrains Mono", weights: [400, 500] }
spacing: "8px base unit. Container max-width 1180px, centered, side padding 48px desktop, 32px tablet, 20px under 640px. 12-column grid, column gap 24px. Section vertical padding 100px desktop, 76px under 1024px, 60px under 640px. Type scale: H1 clamp(40px, 5.4vw, 66px) Newsreader 600, line-height 1.06; H2 clamp(26px, 3.5vw, 42px) Newsreader 600; feature titles Inter 600 17px; lead Inter 400 17.5px / 1.65 Paper at 90%; body 15.5px / 1.7; eyebrow Inter 600 12px uppercase letter-spacing 0.16em Mist; caption 13px Mist; mono labels JetBrains Mono 400 12.5px. Buttons: height 50px, Inter 600 14px; primary Amber fill with Ink text, secondary 1px Line border with Paper text. Focus everywhere: 2px Amber outline, 3px offset."
radius: "10px on cards, panels, buttons; 999px for pills and step dots; 14px on the mockup window."
---
# Browser Extension Landing Page — Design System
Apply this design system to an existing project. It describes the look and feel only; for the full site, use prompt.md.
## Colors
- **Graphite** `#15171C` — Page background throughout.
- **Panel** `#1D2026` — Cards, mockup chrome, FAQ rows.
- **Panel 2** `#242830` — Hover fill, raised panels, URL pill fill.
- **Line** `#2E333C` — 1px hairlines, card borders, placeholder bars, input borders.
- **Paper** `#F1ECE1` — Primary text, the popup card, readable-page bars, headings.
- **Mist** `#9BA1AC` — Secondary text, captions, eyebrows, placeholder text bars.
- **Amber** `#E2A13C` — The one accent: extension icon, primary buttons, active step dots, toggle, focus ring, stars.
- **Amber Deep** `#C4842A` — Hover and pressed primary.
- **Amber Mist** `#3A2E1B` — Chip fills, selected states, tint panels.
- **Ink** `#191510` — Text on Paper or Amber fills.
- **Good** `#7FB069` — Permission checks, 'done' states, privacy ticks.
## Typography
- **Display: H1, H2, review quotes — Newsreader, warm editorial serif** — Newsreader (OFL), weights 400/600. Self-host the font files.
- **Text and UI: body, buttons, forms, captions, mockup UI** — Inter (OFL), weights 400/500/600. Self-host the font files.
- **Mono: shortcut keys, the URL pill, small labels in the mockup** — JetBrains Mono (OFL), weights 400/500. Self-host the font files.
## Spacing & shape
- Spacing: 8px base unit. Container max-width 1180px, centered, side padding 48px desktop, 32px tablet, 20px under 640px. 12-column grid, column gap 24px. Section vertical padding 100px desktop, 76px under 1024px, 60px under 640px. Type scale: H1 clamp(40px, 5.4vw, 66px) Newsreader 600, line-height 1.06; H2 clamp(26px, 3.5vw, 42px) Newsreader 600; feature titles Inter 600 17px; lead Inter 400 17.5px / 1.65 Paper at 90%; body 15.5px / 1.7; eyebrow Inter 600 12px uppercase letter-spacing 0.16em Mist; caption 13px Mist; mono labels JetBrains Mono 400 12.5px. Buttons: height 50px, Inter 600 14px; primary Amber fill with Ink text, secondary 1px Line border with Paper text. Focus everywhere: 2px Amber outline, 3px offset.
- Radius: 10px on cards, panels, buttons; 999px for pills and step dots; 14px on the mockup window.
## Motion
- Easing: --ease-out cubic-bezier(0.22, 0.61, 0.36, 1) for reveals; a spring (stiffness 260, damping 24) for the popup. Workshop-steady.
- Reveal: sections wrapped in <Reveal> start opacity 0, translateY(14px), settle over 700ms --ease-out at 15% viewport (Motion whileInView, once), siblings stagger 70ms.
- The mockup demo loop runs as described in Setup (2.6s steps, hover/focus pause, dot jump); under prefers-reduced-motion it sits on the finished step 3 with all controls still usable.
- Hero: the mockup enters from translateY(20px) scale(0.98); the H1 lines rise; the shortcut key chips pop in with a 40ms stagger.
- Steps: the active step row carries an Amber left rail and its icon swaps from Mist to Amber; changes crossfade 200ms.
- Privacy: the four tick lines draw their checks (SVG stroke) on first view, staggered 90ms.
- Reviews: cards reveal with 70ms stagger; stars fill amber one by one (40ms apart).
- Install buttons: the primary draws a subtle 1px Amber top rail on hover; the version chip never moves.
- FAQ: rows expand 240ms; plus rotates to cross.
- Links: .link-draw grows a 1px currentColor underline over 260ms on hover and focus-visible.
- prefers-reduced-motion: reduce — demo pinned to the finished state, no check drawing, no star fills (amber at rest), no popup spring (popup shown open statically); color/border hovers stay. Use CSS @media in index.css plus Motion's useReducedMotion.
## Imagery
No photographs anywhere. Everything is drawn in code: the browser window, its chrome, the fake article page (placeholder bars, never readable paragraphs), ad blocks, the popup card, step glyphs, star rows and the favicon. No browser-vendor marks (no Chrome/Firefox/Edge/Safari names, logos or store badges) — install buttons are drawn generic with lucide icons and the words 'Install for your browser'. Icons: lucide-react only, stroke width 1.75.
## Tone
Workshop-plain: what it does, what it touches, what it never touches. One dry joke about permissions.
---
— Prompt by VibeFather · https://vibefather.ai/t/browser-extension-landing-page · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 标签页管理扩展:将 BRAND 设置为您的名称,JOB 设置为关闭重复标签页,并重写弹窗切换和滑块以匹配您的实际控件。
- 开发者工具或用户脚本:保留工坊暗色外观,将 SHORTCUT 设置为您的绑定,并将三项功能替换为开发者首先检查的权限说明。
- 独立开发者发布首个扩展:使用手绘安装按钮和手动下载说明,并在发布前将它们指向您自己的列表。
- 写作或阅读工具:将 JOB 设置为清理页面,保留阅读模式弹窗,并围绕哪些数据保留在本地来重写隐私宣言。
浏览器扩展落地页:常见问题
如何更改浏览器扩展落地页模板中的扩展名称、功能和快捷键?
浏览器扩展落地页模板将所有字符串放在一个内容文件中,页面内容由三个变量驱动:BRAND(扩展名称)、JOB(一个以小写动词开头的短语,描述其功能)和 SHORTCUT(以等宽字体显示的键盘绑定)。替换这三个变量,并重写每个标题、段落、标签和常见问题条目以匹配,同时保持相同的长度和语气。布局、颜色、字体和动效保持设计原样。
怎么用 AI 做一个浏览器扩展落地页?
复制本页的提示词,或者运行 npx vibefather add browser-extension-landing-page,把 [JOB]、[BRAND]、[SHORTCUT] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。