用这个模板做的 2 个案例
同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。关于这个模板
果冻挤压物理玩具把一小块甜点变成了触感十足的浏览器游乐场。在柔和的桃色工作室里,一块半透明、带凹槽的果冻放在陶瓷盘子上,页面一打开就能上手摸。按压它的表面、拉扯边缘,或者让它落到盘子上,看形状如何回弹。运动来自一个相互连接的弹簧网格,所以你抓住的点和周围表面会一起响应。
界面始终贴近物体本身。一句简短的邀请语介绍这个玩具,三个口味芯片改变它的颜色和个性,一个硬度滑块把触感从松软晃动调到更紧实的弹跳。一个醒目的“丢下它”按钮让访客无需发现手势就能获得满足的首次互动。声音只在明确操作后响起,并且可以静音。那些小小的咕叽声是在浏览器里合成的,而不是加载录音。
这个提示词适合创意编程作品集、趣味营销活动附加页、甜点概念,以及探索网页直接操控的创作者。它的构图把大而友好的展示字体与克制的控制托盘搭配,主物体周围留出充足空间。桌面访客得到宽敞的工作室舞台;手机访客在紧凑布局中看到同样可见的玩具和拇指大小的控件。
改变虚构的工作室名称、介绍文案、口味系列和强调色,就能做出另一个版本。形状、灯光、控件层级和形变行为保持一致,内容则随之变化。所有视觉资产都在代码中创建,字体本地打包,最终构建为静态文件。没有账户、结账或服务器需要配置。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Jelly Squish Physics Toy Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else. ## Brief Build a complete original single-page jelly squish playground for [BRAND]. The hero is a real-time, physically deformable fluted jelly dessert, not an image or a rigid model. It can be poked, grabbed, stretched, squashed and dropped onto a plate with mouse or touch. Include three flavors, adjustable stiffness and synthesized squelch sound. - Audience: People taking a short playful break and creative coding fans, on phones or desktop. - Goal: Make the object immediately inviting and functional on the first screen, then let the user change its feel and appearance without navigating away. - Tone: Warm, lightly humorous, tactile and concise. Never describe health benefits or make wellness claims. ## Stack - Framework: Vite + TypeScript + Three.js - Styling: Vanilla CSS - Libraries: three (MIT), @fontsource/dm-sans (OFL-1.1), @fontsource/fraunces (OFL-1.1) - Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs. - Setup: - Use npm with Vite and TypeScript; install every library locally and lock dependencies. Set Vite base to ./, build sourcemap false, and build minify true. - Keep all visitor-facing copy, flavor names and colors in src/content.ts. The BRAND, HEADLINE, INTRO, FLAVORS and ACCENT variables must control all edition-specific content; rewrite related labels naturally when changed. - Import local Latin font files through Fontsource. A plain document title naming [BRAND] and a code-drawn favicon are sufficient. - Use Three.js WebGLRenderer for the stage, native pointer events for input and Web Audio for all sound. No physics library, external model or external media is necessary. - Write ASSETS.md listing the original code artwork, Three.js MIT and both font packages with source URLs and licenses. Finish with npm run build producing only static distribution files. ## Variables - [BRAND] — Toy studio (default: "Softside Studio"). An invented studio name. - [HEADLINE] — Main invitation (default: "A little less serious."). A short playful phrase, not a technical feature list. - [INTRO] — Short introduction (default: "Poke it. Pull it. Let the day wobble away.") - [FLAVORS] — Three flavors (default: "Peach #f08e72, Grape #a69cda, Mint #8bbda9"). Exactly three flavor names and matching jelly color hex values. - [ACCENT] — Interface accent (default: "#a84e3d"). Use a sufficiently dark shade for readable labels and buttons. - [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/jelly-squish-physics-toy 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 - Studio cream `#faf4e9` — Main page and warm studio background - Peach wash `#f0ded1` — Stage horizon and subtle surface gradient - Ink `#443d37` — Main text and strongest outlines - Muted clay `#786b60` — Secondary copy with readable contrast - Edition accent `[ACCENT]` — Primary button, active flavor outline, focus state and slider thumb - Plate ivory `#fffaf0` — Glazed ceramic plate and control tray ### Typography - Display headline and wordmark: Fraunces (OFL), weights 500/600 - Body, controls and measurements: DM Sans (OFL), weights 400/500/600/700 ### Layout & motion - Spacing: Desktop: 40px outer gutters, centered content max-width 1360px, 24px header padding. Hero intro sits upper left and the large stage occupies the center-right; control tray is centered beneath the object. Use an 8px spacing grid, 16px compact gaps and 24px tray gaps. Mobile: 20px gutters, header 58px, headline 40px, intro 14px, scene 300–340px tall; place the complete first interaction controls within or very near a 390×844 viewport. Do not create a tall blank gap before the object. - Radius: Control tray 24px, buttons and flavor chips 999px, small instruction labels 8px. Use thin #d8cabe borders and soft warm shadows rather than many cards. - Motion: The deformation itself is the main animation; avoid perpetual floating or camera rotation. The jelly rests visibly on its plate. - Motion: Model a closed, non-watermelon fluted dome with approximately 16–20 latitude rings and 40–48 longitudinal nodes. Use a position/velocity or Verlet mass-spring solver with structural and diagonal neighbor constraints, damped rest-shape restoring forces and stable fixed-timestep substeps. Update the actual BufferGeometry positions and normals after solving; highlights must follow the deformed surface. - Motion: Use bounded steps, velocity clamping and enough solver iterations to keep rapid dragging stable. Soft volume or radial restoration preserves a recognizable dessert silhouette. The lower ring can slide/compress against the plate rather than falling through it. Nearby rings should follow the grabbed node with smoothly decreasing influence. - Motion: Pointer-down raycasts onto the mesh and grabs a local vertex cluster in a camera-facing drag plane. Moving drags the cluster toward the pointer with spring force, allowing a clear local indentation or stretch; release removes the grab and produces damped oscillation. A quick click or tap applies a short inward impulse. Clamp extreme stretch to keep the shape recoverable. - Motion: Drop it releases the jelly from about one jelly-height above the plate; gravity, collision, compression and damped rebound visibly change the mesh before it settles. The button must work repeatedly. The stiffness range maps to solver restoration and damping so its endpoints feel clearly different, without numerical explosions. - Motion: Reduced-motion preference disables decorative transitions and reduces drop height, impulse amplitude and rebound duration, while retaining deliberate direct manipulation. Pause simulation when hidden; cap device pixel ratio at 1.75 desktop and 1.5 mobile. Use touch-action none only on the stage, not the whole page. - Imagery: Create all visuals procedurally in Three.js. Jelly is an original rounded, fluted pudding dome, about 2.6 units wide and 1.8 high, with soft scalloped edges and a small top dimple. Use a translucent MeshPhysicalMaterial or equivalent physically shaded material: roughness around 0.13, clearcoat 1, transmission around 0.45, thickness around 0.8, and color from the active flavor. A few subtle bubbles can follow nearby deformation nodes but no seeds or rind. Use a code-built ivory plate with two soft concentric rims, a warm floor, contact shadow, large soft key light upper left and muted rim light. Build any reflection environment locally using Three.js RoomEnvironment or code-drawn CanvasTexture. Include a restrained fine studio grain in CSS. No external photograph, generated image, watermelon wedge, identifiable logo or copied composition. ## Pages & Sections ### [BRAND] jelly playground (`index.html`) 1. **Header** — Left: [BRAND] wordmark beside a small original loop-shaped jelly doodle. Right: a text button initially reading Sound off with a small speaker icon; toggles to Sound on with aria-pressed. No navigation links or shop CTAs. Layout: One horizontal row, 24px vertical rhythm, bottom thin line optional; 20px wordmark desktop and 17px mobile. Sound control minimum 44px tap area. 2. **Invitation and playable studio** — Small eyebrow A SMALL PLAYFUL BREAK. H1 [HEADLINE]. Supporting line [INTRO]. A compact gesture hint reads Grab a little. Let go. The scene is fully rendered before interaction. Add unobtrusive flavor label near the plate and a small status readout initially Resting, switching to Stretching, Wobbling or Dropping as appropriate. Keep scene labels as legible DOM overlays, never rasterized text. Layout: Desktop: intro at left occupying about 35% width, a 600×500px scene centered in the remaining space and extending behind the whitespace but never behind the text. Main headline 76px/0.98 and limited to 5–7 words. Mobile: intro above a full-width 300–340px scene, headline 40px/1.05; the jelly occupies about 65–75% of stage width with visible plate and clearance for deformation. The first screen must contain the actual object and Drop it control. Motion: Render a stable composed view immediately, with perspective camera around (4,3.2,5.5) aimed at the jelly center. Use no orbit control during grabbing. Resize to container without overflow. A keyboard-accessible Squish button may be a small overlay and must trigger the same physical impulse as tapping. 3. **Tasting controls** — A single tray holds Flavor with exactly three named swatches parsed from [FLAVORS], a Stiffness range from 0 to 100 initially 45 with endpoint labels Soft and Firm, and the main Drop it button with a down-arrow icon. Each flavor is a real button with visible name, active ring and aria-pressed. Changing flavor changes the jelly body tint and active label while preserving simulation state. Show a useful short hint under controls: Drag to stretch · Tap to poke. A small Reset button restores the rest shape if desired. Layout: Desktop: one horizontal 780px-max tray with flavor group left, stiffness center, solid accent Drop it right. Mobile: a compact tray with three flavor chips in the first row and slider plus Drop it in the second; every touch target at least 44px and no horizontal scrolling. Keep tray in normal document flow so it never covers the plate or the gesture area. Motion: Use 140ms control color transitions; the flavor material crossfades within 220ms unless reduced motion. Range input supports native arrow keys and clear focus outline. Space on focused Drop it must trigger one drop without double-firing. 4. **Sound and footer** — Web Audio is initialized or resumed only from explicit pointer/key interaction. Sound remains off until the visitor turns it on. Synthesize a short filtered noise squelch plus low sine pitch bend on tap/release/drop; intensity follows impulse speed with bounded gain and a master limiter or gentle gain envelope. No sample files, autoplay or background soundtrack. Footer reads Made for a moment of play. If the public CREDIT variable is enabled, include its optional template credit link. Layout: A quiet thin footer below the tray with 12px secondary text. No dates, counters implying popularity, newsletter form or lengthy explanation. Audio control must remain understandable when browser audio is unavailable. Motion: Close or suspend unneeded audio nodes; debounce rapid impulses to avoid clicks and excessive gain. All keyboard controls are real DOM elements. Provide a polite live status for flavor changes and drops, without announcing animation every frame. ## Assets - font: Install @fontsource/fraunces (https://fontsource.org/fonts/fraunces, OFL-1.1), Latin 500/600 only, imported locally. Install @fontsource/dm-sans (https://fontsource.org/fonts/dm-sans, OFL-1.1), Latin 400/500/600/700 only. List package versions and license locations in ASSETS.md. - image: All jelly geometry, bubbles, ceramic plate, reflections, shadows, grain and favicon are original code-generated artwork. Do not fetch images or generate bitmaps. Document original artwork and the local Three.js MIT dependency in ASSETS.md. - icon: Draw simple original speaker, arrow and loop icons with inline SVG paths; no logo library or downloaded icon assets. ## Don'ts - Do not copy the reference prompt, code, copy, composition, palette, logo, images or unique icons. Do not use its watermelon wedge, rind, seeds or product names. Do not mention other products or competitors on the site. - Do not fake the jelly physics with whole-object CSS scale, a rigid mesh wobble or a canned animation. Actual surface vertices must respond to grabbing, neighbor springs, collision and release. Do not let the mesh tear, fall through its plate or remain permanently stretched. - No backend, API calls, accounts, analytics, remote forms, checkout, storage service or third-party runtime requests. All functionality is browser-local. - Do not load scripts, fonts, icons, reflections, models, audio or other assets from a CDN. Install and bundle libraries; self-host fonts. No commercial fonts, restricted components or assets with non-redistributable licenses. - Use only Three.js, Canvas and GLSL for 3D/graphics, and native Web Audio synthesized sound. Do not use pre-rendered video or external physics engines. - Produce minified static files in dist/ under 20 MB, relative asset paths with base ./, no source maps and no copied src directory. Internal links, if any, must target HTML filenames or hash routes. - All copy, flavor names, labels and alt text must be US English and live in the content file. Rewrite relevant copy when variables change. No visible dates, invented social-proof figures, health claims or filler. - Do not gate the first view behind a loading splash, consent modal or instruction screen. Do not autoplay audio. Make the toy usable at 1440×900 and 390×844 with no horizontal overflow or console errors, keyboard alternatives, visible focus and touch controls. - Honor prefers-reduced-motion and pause when hidden. Do not capture touch scrolling outside the scene or place controls over the draggable object. - Do not use real people, recognizable characters, branded objects, external photographs or AI-generated images. Keep the original code-built dessert and studio as the visual anchor. --- Inspired by Watermelon Jelly Squishy soft-body study by @UPGPTs Team — https://upgpts.com/en/tutorials/chatgpt/gpt-6.1-sol-test-cases — Prompt by VibeFather · https://vibefather.ai/t/jelly-squish-physics-toy · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
中文参考译文(帮助理解,复制给 AI 时请用上面的英文原版)
# 果冻挤压物理玩具 完全按照以下描述构建此网站。将 [VARIABLES] 替换为你自己的值;其余内容保持不变。 ## 简介 为 [BRAND] 构建一个完整的原创单页果冻挤压游乐场。主角是一个实时、可物理变形的带凹槽果冻甜点,而不是图片或刚性模型。它可以用鼠标或触摸来戳、抓、拉伸、压扁,并掉落到盘子上。包含三种口味、可调节的硬度和合成的挤压声。 - 受众:正在短暂轻松休息的人以及创意编程爱好者,使用手机或桌面设备。 - 目标:让物体在第一屏就立即吸引人且功能可用,然后让用户无需离开页面即可改变其手感和外观。 - 语气:温暖、略带幽默、有触感且简洁。绝不描述健康益处或做出健康声明。 ## 技术栈 - 框架:Vite + TypeScript + Three.js - 样式:原生 CSS(Vanilla CSS) - 库:three(MIT)、@fontsource/dm-sans(OFL-1.1)、@fontsource/fraunces(OFL-1.1) - 构建:`npm run build` → `dist/` 中的静态文件。无后端、无服务端代码、无外部 API。 - 设置: - 使用 npm 搭配 Vite 和 TypeScript;在本地安装每个库并锁定依赖。将 Vite base 设为 ./,build sourcemap 设为 false,build minify 设为 true。 - 将所有面向访客的文案、风味名称和颜色保留在 src/content.ts 中。BRAND、HEADLINE、INTRO、FLAVORS 和 ACCENT 变量必须控制所有版本专属内容;更改时自然地重写相关标签。 - 通过 Fontsource 导入本地拉丁字体文件。一个标明 [BRAND] 的普通文档标题和一个代码绘制的 favicon 就足够了。 - 使用 Three.js WebGLRenderer 作为舞台,使用原生指针事件处理输入,使用 Web Audio 处理所有声音。无需物理库、外部模型或外部媒体。 - 编写 ASSETS.md,列出原始代码艺术作品、Three.js MIT 以及两个字体包及其源 URL 和许可证。最后以 npm run build 完成,仅生成静态分发文件。 ## 变量 - [BRAND] — 玩具工作室(默认:“Softside Studio”)。一个虚构的工作室名称。 - [HEADLINE] — 主邀请语(默认:“A little less serious.”)。一句简短俏皮的话,不是技术功能列表。 - [INTRO] — 简短介绍(默认:“Poke it. Pull it. Let the day wobble away.”) - [FLAVORS] — 三种口味(默认:“Peach #f08e72, Grape #a69cda, Mint #8bbda9”)。恰好三个口味名称及对应的果冻颜色十六进制值。 - [ACCENT] — 界面强调色(默认:“#a84e3d”)。使用足够深的色调,以确保标签和按钮可读。 - [CREDIT] — 在页脚保留一个小型“Template by VibeFather”链接,指向 https://vibefather.ai/t/jelly-squish-physics-toy(默认:是;删除此行即可移除) 页面与区块下的文案是为默认值编写的。如果你的值不同,请为它们重写每个标题、段落、标签和图片——保持相同的长度、语气和结构。布局、颜色、字体和动效保持所述不变。 将所有文案、图片路径和链接放在一个内容文件中(例如 `src/content.ts`),按区块作为键,以便之后无需改动组件即可替换内容。 ## 设计 ### 颜色(Colors) - 工作室奶油色(Studio cream)`#faf4e9` — 主页面和温暖的摄影棚背景 - 蜜桃水洗色(Peach wash)`#f0ded1` — 舞台地平线和微妙的表面渐变 - 墨色(Ink)`#443d37` — 主文本和最强轮廓线 - 柔和陶土色(Muted clay)`#786b60` — 具有可读对比度的次要文案 - 版本强调色(Edition accent)`[ACCENT]` — 主按钮、激活口味轮廓、焦点状态和滑块拇指 - 瓷盘象牙色(Plate ivory)`#fffaf0` — 釉面陶瓷盘和控制托盘 ### 排版(Typography) - 展示标题和字标:Fraunces(OFL),字重 500/600 - 正文、控件和测量数据:DM Sans(OFL),字重 400/500/600/700 ### 布局与动效(Layout & motion) - 间距:桌面端:40px 外侧留白,居中内容最大宽度 1360px,24px 页头内边距。主视觉介绍位于左上方,大舞台占据中右部;控制托盘居中位于物体下方。使用 8px 间距网格、16px 紧凑间隙和 24px 托盘间隙。移动端:20px 留白,页头 58px,标题 40px,介绍 14px,场景高度 300–340px;将完整的首次交互控件放置在 390×844 视口内或非常接近的位置。不要在物体之前创建高大的空白间隙。 - 圆角:控制托盘 24px,按钮和口味标签 999px,小说明标签 8px。使用细的 #d8cabe 边框和柔和的暖色阴影,而不是大量卡片。 - 动效:形变本身是主要动画;避免持续漂浮或相机旋转。果冻明显地静置在盘子上。 - 动效:建模一个封闭的、非西瓜的凹槽穹顶,约 16–20 个纬度环和 40–48 个纵向节点。使用位置/速度或 Verlet 质量-弹簧求解器,包含结构和对角邻居约束、阻尼静止形状恢复力和稳定的固定时间步长子步。求解后更新实际的 BufferGeometry 位置和法线;高光必须跟随形变后的表面。 - 动效:使用有界步长、速度钳制和足够的求解器迭代,以保持快速拖拽的稳定性。柔和的体积或径向恢复保留可识别的甜点轮廓。下环可以沿盘子滑动/压缩,而不是穿透盘子。附近的环应跟随被抓取的节点,影响平滑递减。 - 动效:指针按下时对网格进行射线检测,并在面向相机的拖拽平面中抓取局部顶点簇。移动时将簇以弹簧力拖向指针,允许明显的局部凹陷或拉伸;释放时移除抓取并产生阻尼振荡。快速点击或轻触施加短暂的内向冲量。钳制极端拉伸以保持形状可恢复。 - 动效:放下时从盘子上方约一个果冻高度处释放果冻;重力、碰撞、压缩和阻尼回弹在稳定前明显改变网格。按钮必须可重复工作。刚度范围映射到求解器恢复和阻尼,使其两端感觉明显不同,且不会发生数值爆炸。 - 动效:减少动效偏好会禁用装饰性过渡,并降低下落高度、冲量幅度和回弹持续时间,同时保留有意的直接操控。隐藏时暂停模拟;桌面端设备像素比上限为 1.75,移动端为 1.5。仅在舞台上使用 touch-action none,而不是整个页面。 - 图像:在 Three.js 中程序化创建所有视觉效果。果冻是一个原创的圆润凹槽布丁穹顶,宽约 2.6 单位、高约 1.8 单位,具有柔和的扇贝边缘和一个小顶部凹痕。使用半透明的 MeshPhysicalMaterial 或等效的物理着色材质:粗糙度约 0.13,清漆层 1,透射约 0.45,厚度约 0.8,颜色来自激活口味。几个微妙的气泡可以跟随附近的形变节点,但没有籽或果皮。使用代码构建的象牙色盘子,带有两个柔和同心边缘、温暖的地面、接触阴影、左上方大而柔和的主光和柔和的轮廓光。使用 Three.js RoomEnvironment 或代码绘制的 CanvasTexture 在本地构建任何反射环境。在 CSS 中包含克制的精细摄影棚颗粒。不使用外部照片、生成图像、西瓜块、可识别标志或复制构图。 ## 页面与区块 ### [BRAND] jelly playground (`index.html`) 1. **页眉(Header)** — 左侧:[BRAND] 字标,旁边是一个小的原创环形果冻涂鸦。右侧:一个文字按钮,初始显示 Sound off 并带有一个小扬声器图标;切换为 Sound on 并带有 aria-pressed。没有导航链接或商店 CTA。 布局:单行水平排列,24px 垂直节奏,底部细线可选;桌面端字标 20px,移动端 17px。声音控件最小 44px 点击区域。 2. **邀请与可玩工作室** — 小眉题 A SMALL PLAYFUL BREAK。H1 [HEADLINE]。辅助行 [INTRO]。一个紧凑的手势提示写着 Grab a little. Let go. 场景在交互前已完全渲染。在盘子附近添加不显眼的风味标签,以及一个小的状态读数,初始为 Resting,根据情况切换为 Stretching、Wobbling 或 Dropping。保持场景标签为可读的 DOM 叠加层,绝不使用栅格化文本。 布局:桌面端:介绍文字在左侧,约占 35% 宽度,一个 600×500px 的场景居中于剩余空间,并延伸到空白区域后方,但绝不延伸到文字后方。主标题 76px/0.98,限制在 5–7 个词。移动端:介绍文字位于全宽 300–340px 场景上方,标题 40px/1.05;果冻占据舞台宽度的约 65–75%,盘子可见并有变形间隙。首屏必须包含实际物体和 Drop it 控件。 动效:立即渲染稳定的合成视图,透视相机约在 (4,3.2,5.5) 处对准果冻中心。抓取期间不使用轨道控制。调整大小以适应容器而不溢出。一个键盘可访问的 Squish 按钮可以作为小叠加层,并且必须触发与点击相同的物理冲量。 3. **品尝控件** — 一个托盘容纳 Flavor,其中恰好有三个从 [FLAVORS] 解析出的命名色板;一个 Stiffness 范围从 0 到 100,初始为 45,端点标签为 Soft 和 Firm;以及主 Drop it 按钮,带有下箭头图标。每个风味都是一个真实按钮,具有可见名称、活动环和 aria-pressed。更改风味会改变果冻主体色调和活动标签,同时保留模拟状态。在控件下方显示有用的简短提示:Drag to stretch · Tap to poke。一个小的 Reset 按钮可根据需要恢复静止形状。 布局:桌面端:一个水平 780px 最大托盘,风味组在左,硬度居中,实心强调色 Drop it 在右。移动端:一个紧凑托盘,第一行有三个风味芯片,第二行有滑块加 Drop it;每个触摸目标至少 44px,无水平滚动。保持托盘在正常文档流中,使其绝不覆盖盘子或手势区域。 动效:使用 140ms 控件颜色过渡;风味材质在 220ms 内交叉淡化,除非减少动效。范围输入支持原生箭头键和清晰的焦点轮廓。在聚焦的 Drop it 上按空格必须触发一次下落,不得双重触发。 4. **声音与页脚** — Web Audio 仅从显式指针/键盘交互初始化或恢复。声音保持关闭,直到访客将其打开。在点击/释放/下落时合成短促的滤波噪声挤压声加上低正弦音高弯曲;强度跟随冲量速度,具有有界增益和主限幅器或温和的增益包络。无采样文件、自动播放或背景音轨。页脚写着 Made for a moment of play. 如果公共 CREDIT 变量启用,则包含其可选的模板信用链接。 布局:托盘下方一个安静的细页脚,12px 次要文本。无日期、暗示受欢迎程度的计数器、新闻通讯表单或冗长解释。当浏览器音频不可用时,音频控件必须保持可理解。 动效:关闭或暂停不需要的音频节点;对快速冲量进行防抖,以避免咔嗒声和过大增益。所有键盘控件都是真实 DOM 元素。为风味更改和下落提供礼貌的实时状态,而不逐帧宣布动画。 ## 资产(Assets) - 字体(font):安装 @fontsource/fraunces(https://fontsource.org/fonts/fraunces,OFL-1.1),仅 Latin 500/600,本地导入。安装 @fontsource/dm-sans(https://fontsource.org/fonts/dm-sans,OFL-1.1),仅 Latin 400/500/600/700。在 ASSETS.md 中列出包版本和许可证位置。 - 图像(image):所有果冻几何体、气泡、陶瓷盘、反射、阴影、颗粒和 favicon 均为原创代码生成的艺术作品。不要获取图像或生成位图。在 ASSETS.md 中记录原创艺术作品和本地 Three.js MIT 依赖。 - 图标(icon):使用内联 SVG 路径绘制简单的原创扬声器、箭头和循环图标;不使用徽标库或下载的图标资产。 ## 禁止事项(Don'ts) - 不要复制参考提示词、代码、文案、构图、配色、logo、图片或独特图标。不要使用其西瓜瓣、瓜皮、瓜籽或产品名称。不要在网站上提及其他产品或竞争对手。 - 不要用整体对象的 CSS 缩放、刚性网格晃动或预制动画来伪造果冻物理效果。实际的表面顶点必须对抓取、相邻弹簧、碰撞和释放做出响应。不要让网格撕裂、穿过盘子掉落或永久保持拉伸状态。 - 不要后端、API 调用、账户、分析、远程表单、结账、存储服务或第三方运行时请求。所有功能均在浏览器本地运行。 - 不要从 CDN 加载脚本、字体、图标、反射、模型、音频或其他资源。安装并打包库;自托管字体。不要使用商业字体、受限组件或具有不可再分发许可证的资源。 - 3D/图形仅使用 Three.js、Canvas 和 GLSL,以及原生 Web Audio 合成音效。不要使用预渲染视频或外部物理引擎。 - 在 dist/ 中生成压缩后的静态文件,大小不超过 20 MB,使用相对资源路径且 base 为 ./,不要 source map,不要复制 src 目录。内部链接(如有)必须指向 HTML 文件名或 hash 路由。 - 所有文案、风味名称、标签和 alt 文本必须为美式英语(US English),并放在内容文件中。变量变化时重写相关文案。不要出现可见日期、编造的社会证明数据、健康声明或填充内容。 - 不要用加载闪屏、同意弹窗或说明屏幕挡住首屏。不要自动播放音频。确保玩具在 1440×900 和 390×844 下可用,无水平溢出或控制台错误,提供键盘替代方案、可见焦点和触摸控制。 - 遵循 prefers-reduced-motion,并在隐藏时暂停。不要在场景外捕获触摸滚动,也不要把控件放在可拖拽对象上方。 - 不要使用真实人物、可识别角色、品牌化对象、外部照片或 AI 生成图像。保持原始代码构建的甜点和工作室作为视觉锚点。 --- Inspired by Watermelon Jelly Squishy soft-body study by @UPGPTs Team — https://upgpts.com/en/tutorials/chatgpt/gpt-6.1-sol-test-cases — Prompt by VibeFather · https://vibefather.ai/t/jelly-squish-physics-toy · 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: "Jelly Squish Physics Toy"
colors:
studio_cream: "#faf4e9"
peach_wash: "#f0ded1"
ink: "#443d37"
muted_clay: "#786b60"
edition_accent: "[ACCENT]"
plate_ivory: "#fffaf0"
typography:
display_headline_and_wordmark: { family: "Fraunces", weights: [500, 600] }
body_controls_and_measurements: { family: "DM Sans", weights: [400, 500, 600, 700] }
spacing: "Desktop: 40px outer gutters, centered content max-width 1360px, 24px header padding. Hero intro sits upper left and the large stage occupies the center-right; control tray is centered beneath the object. Use an 8px spacing grid, 16px compact gaps and 24px tray gaps. Mobile: 20px gutters, header 58px, headline 40px, intro 14px, scene 300–340px tall; place the complete first interaction controls within or very near a 390×844 viewport. Do not create a tall blank gap before the object."
radius: "Control tray 24px, buttons and flavor chips 999px, small instruction labels 8px. Use thin #d8cabe borders and soft warm shadows rather than many cards."
---
# Jelly Squish Physics Toy — 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
- **Studio cream** `#faf4e9` — Main page and warm studio background
- **Peach wash** `#f0ded1` — Stage horizon and subtle surface gradient
- **Ink** `#443d37` — Main text and strongest outlines
- **Muted clay** `#786b60` — Secondary copy with readable contrast
- **Edition accent** `[ACCENT]` — Primary button, active flavor outline, focus state and slider thumb
- **Plate ivory** `#fffaf0` — Glazed ceramic plate and control tray
## Typography
- **Display headline and wordmark** — Fraunces (OFL), weights 500/600. Self-host the font files.
- **Body, controls and measurements** — DM Sans (OFL), weights 400/500/600/700. Self-host the font files.
## Spacing & shape
- Spacing: Desktop: 40px outer gutters, centered content max-width 1360px, 24px header padding. Hero intro sits upper left and the large stage occupies the center-right; control tray is centered beneath the object. Use an 8px spacing grid, 16px compact gaps and 24px tray gaps. Mobile: 20px gutters, header 58px, headline 40px, intro 14px, scene 300–340px tall; place the complete first interaction controls within or very near a 390×844 viewport. Do not create a tall blank gap before the object.
- Radius: Control tray 24px, buttons and flavor chips 999px, small instruction labels 8px. Use thin #d8cabe borders and soft warm shadows rather than many cards.
## Motion
- The deformation itself is the main animation; avoid perpetual floating or camera rotation. The jelly rests visibly on its plate.
- Model a closed, non-watermelon fluted dome with approximately 16–20 latitude rings and 40–48 longitudinal nodes. Use a position/velocity or Verlet mass-spring solver with structural and diagonal neighbor constraints, damped rest-shape restoring forces and stable fixed-timestep substeps. Update the actual BufferGeometry positions and normals after solving; highlights must follow the deformed surface.
- Use bounded steps, velocity clamping and enough solver iterations to keep rapid dragging stable. Soft volume or radial restoration preserves a recognizable dessert silhouette. The lower ring can slide/compress against the plate rather than falling through it. Nearby rings should follow the grabbed node with smoothly decreasing influence.
- Pointer-down raycasts onto the mesh and grabs a local vertex cluster in a camera-facing drag plane. Moving drags the cluster toward the pointer with spring force, allowing a clear local indentation or stretch; release removes the grab and produces damped oscillation. A quick click or tap applies a short inward impulse. Clamp extreme stretch to keep the shape recoverable.
- Drop it releases the jelly from about one jelly-height above the plate; gravity, collision, compression and damped rebound visibly change the mesh before it settles. The button must work repeatedly. The stiffness range maps to solver restoration and damping so its endpoints feel clearly different, without numerical explosions.
- Reduced-motion preference disables decorative transitions and reduces drop height, impulse amplitude and rebound duration, while retaining deliberate direct manipulation. Pause simulation when hidden; cap device pixel ratio at 1.75 desktop and 1.5 mobile. Use touch-action none only on the stage, not the whole page.
## Imagery
Create all visuals procedurally in Three.js. Jelly is an original rounded, fluted pudding dome, about 2.6 units wide and 1.8 high, with soft scalloped edges and a small top dimple. Use a translucent MeshPhysicalMaterial or equivalent physically shaded material: roughness around 0.13, clearcoat 1, transmission around 0.45, thickness around 0.8, and color from the active flavor. A few subtle bubbles can follow nearby deformation nodes but no seeds or rind. Use a code-built ivory plate with two soft concentric rims, a warm floor, contact shadow, large soft key light upper left and muted rim light. Build any reflection environment locally using Three.js RoomEnvironment or code-drawn CanvasTexture. Include a restrained fine studio grain in CSS. No external photograph, generated image, watermelon wedge, identifiable logo or copied composition.
## Tone
Warm, lightly humorous, tactile and concise. Never describe health benefits or make wellness claims.
---
Inspired by Watermelon Jelly Squishy soft-body study by @UPGPTs Team — https://upgpts.com/en/tutorials/chatgpt/gpt-6.1-sol-test-cases
— Prompt by VibeFather · https://vibefather.ai/t/jelly-squish-physics-toy · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 一个甜点品牌做趣味营销活动:把 BRAND 设为品牌名,把三个 FLAVORS 重命名为你的产品,并让每个十六进制值匹配真实的果冻颜色。
- 一个创意编程作品集:保留工作室舞台,把 HEADLINE 设为一句简短的个人短语,INTRO 设为邀请语,并用 ACCENT 匹配你的作品集配色。
- 一家糖果或甜食店:把 FLAVORS 指向你最畅销的软糖,重写口味标签,并把 ACCENT 设为在控制托盘上保持可读的深色调。
- 一个设计工作室做节日问候页:把 BRAND 设为工作室名,为这个场合写一句简短的 HEADLINE 和 INTRO,并保留“丢下它”按钮作为首次互动。
果冻挤压物理玩具:常见问题
访客在果冻挤压物理玩具页面上实际能做些什么?
访客可以戳、拉和丢一块放在陶瓷盘子上的半透明带凹槽果冻。按压表面会产生局部凹陷,拖动边缘会拉伸它,松手后会产生带阻尼的晃动。“丢下它”按钮会把果冻抬起约一个果冻的高度,然后让它落下、压缩并稳定下来。三个口味芯片改变颜色,一个硬度滑块把触感从松软调到紧实,合成的咕叽声只在明确操作后响起。
怎么用 AI 做一个果冻挤压物理玩具?
复制本页的提示词,或者运行 npx vibefather add jelly-squish-physics-toy,把 [BRAND]、[INTRO]、[ACCENT]、[FLAVORS] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。