智能家居控制 App 是一款触感出色、深石板色调的互联家庭控制器 PWA,专为在手机、平板和桌面端实现实时房间控制而打造。它采用真正的三断点响应式设计,不用任何假手机外壳:768px 以下的移动端屏幕显示固定的底部四标签栏(首页、房间、场景、能耗),并配有横向房间胶囊按钮;更大的屏幕则展开为常驻左侧导航栏和建筑感 Bento 仪表盘。住户可直接控制客厅、卧室、厨房和工作室的设备:平滑的亮度和色温灯光滑块会在每张卡片上发出实时环境光反馈,从暖琥珀色(#FBBF24)过渡到冷青色(#38BDF8);交互式圆形 SVG 温控拨盘让用户可在 Eco、Heat 和 Cool 三种气候模式间拖动或步进设定目标温度。一键自动化场景——早晨、专注、影院和睡眠——会同时在灯光、智能门锁、电动百叶窗和气候之间级联协调状态变化。能耗视图用交互式 SVG 面积图呈现实时感的每小时千瓦用电量,并配有按房间划分的负载明细;每个开关的状态都会干净地保存在 localStorage 中。可在 src/content.ts 中自定义家庭品牌、住宅名称、住户问候语和气候单位。
在线演示就是用这份提示词原样做出来的,没有额外补充。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Smart Home Control App
Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else.
## Brief
A calm dark-slate responsive mobile-first connected home controller PWA ([BRAND]) for [HOME_NAME]. Mobile (<768px) uses a bottom 4-tab bar (Home, Rooms, Scenes, Energy) and horizontal room tabs; desktop opens into a left sidebar + responsive bento dashboard. No fake phone bezel.
- Audience: Homeowners, smart-home enthusiasts, and IoT product designers prototyping tactile multi-room device control interfaces.
- Goal: Deliver instantaneous, physically satisfying lighting, climate, security, and scene automation controls with live visual feedback persisted in localStorage.
- Tone: Calm, architectural, tactile, dark frosted hardware precision.
## Stack
- Framework: Vite 5 + React 18 + TypeScript
- Styling: Tailwind CSS 3.4
- Libraries: lucide-react (ISC), @fontsource/space-grotesk (OFL), @fontsource/inter (OFL), @fontsource/jetbrains-mono (OFL)
- Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs.
- Setup:
- Set base: './' and build: { sourcemap: false } in vite.config.ts.
- Import @fontsource/space-grotesk (500, 600, 700), @fontsource/inter (400, 500, 600, 700), and @fontsource/jetbrains-mono (400, 500, 600) locally in src/main.tsx.
- Store 4 rooms (Living Room, Bedroom, Kitchen, Studio), lighting/climate/lock/blinds state, 4 multi-device Scenes, and hourly power data in src/data/smartHomeSeed.ts; persist all device & scene updates in localStorage.
- Build an interactive clickable/steppable circular SVG thermostat dial supporting Eco / Heat / Cool modes and live arc feedback.
- Never wrap the interface in a fake phone bezel; implement true responsive bento layouts across mobile, tablet, and desktop.
## Variables
- [BRAND] — Smart home app name (default: "LumaNest"). Fictional connected home PWA name
- [HOME_NAME] — Residence name (default: "Alder Ridge Loft"). Displayed in header and climate card
- [RESIDENT_NAME] — Resident greeting name (default: "Marcus Vance"). Fictional homeowner profile name
- [DEFAULT_TEMP] — Initial thermostat setpoint (default: "71°F"). Displayed in circular climate dial
- [AIR_QUALITY] — Indoor air quality badge (default: "AQI 18 · Pure"). Environmental telemetry readout
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/smart-home-control-app 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.Pro 模板
解锁完整提示词和源码
在线演示和 DESIGN.md 仍然免费。
单独的设计规范:配色、字体、间距和动效。可以把这套视觉用到你已有的项目上。
---
name: "Smart Home Control App"
colors:
calm_slate_dark: "#0E1116"
frosted_card: "#171C24"
warm_amber_light: "#FBBF24"
cool_cyan: "#38BDF8"
crisp_white: "#F8FAFC"
slate_muted: "#94A3B8"
typography:
room_titles_and_bento_card_headings: { family: "Space Grotesk", weights: [500, 600, 700] }
device_labels_and_scene_descriptions: { family: "Inter", weights: [400, 500, 600, 700] }
temperatures_kelvin_color_temp_aqi_humidity_and_kw_draw: { family: "JetBrains Mono", weights: [400, 500, 600] }
spacing: "Mobile (<768px) uses 16px horizontal padding with 84px clearance above the fixed 64px bottom tab bar. Desktop (>=1024px) renders a 236px left sidebar + 12-column responsive bento dashboard."
radius: "18px for primary bento tiles and thermostat card, 12px for quick scene buttons and switches, 999px for room selector tabs and mode pills."
---
# Smart Home Control App — 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
- **Calm Slate Dark** `#0E1116` — Primary dark architectural canvas
- **Frosted Card** `#171C24` — Bento control tiles, climate dial card, and energy panels
- **Warm Amber Light** `#FBBF24` — Active light glow, Heat mode, Morning/Cinema scenes, and brightness track
- **Cool Cyan** `#38BDF8` — Cool climate mode, air quality telemetry, blinds, and live power curve
- **Crisp White** `#F8FAFC` — Primary temperatures, room names, and active controls
- **Slate Muted** `#94A3B8` — Secondary telemetry labels, wattage readouts, and inactive tabs
## Typography
- **Room titles and bento card headings** — Space Grotesk (OFL), weights 500/600/700. Self-host the font files.
- **Device labels and scene descriptions** — Inter (OFL), weights 400/500/600/700. Self-host the font files.
- **Temperatures, Kelvin color temp, AQI, humidity, and kW draw** — JetBrains Mono (OFL), weights 400/500/600. Self-host the font files.
## Spacing & shape
- Spacing: Mobile (<768px) uses 16px horizontal padding with 84px clearance above the fixed 64px bottom tab bar. Desktop (>=1024px) renders a 236px left sidebar + 12-column responsive bento dashboard.
- Radius: 18px for primary bento tiles and thermostat card, 12px for quick scene buttons and switches, 999px for room selector tabs and mode pills.
## Motion
- Live radial warm-amber or cool-cyan light glow scaling smoothly with brightness and Kelvin sliders.
- Smooth SVG thermostat dial arc and knob rotation on temperature adjustments.
- Respects prefers-reduced-motion; all content visible immediately.
## Imagery
100% crisp code-drawn hardware telemetry: interactive circular SVG thermostat dial, dynamic CSS/SVG ambient lamp glow cards, real-time hourly power-consumption SVG area chart, and Lucide smart-device icons.
## Tone
Calm, architectural, tactile, dark frosted hardware precision.
---
— Prompt by VibeFather · https://vibefather.ai/t/smart-home-control-app · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
智能家居控制 App 模板将所有文案集中在一个内容文件里,因此你只需在一个地方修改品牌名(默认 LumaNest)、住宅名称(默认 Alder Ridge Loft)和住户问候语(默认 Marcus Vance),而不用翻遍各个组件。同一个文件还保存了温控设定点、空气质量徽章和所有标题,所以替换这些值后,页头、气候卡片和仪表盘文字都会跟着更新。
在智能家居控制 App 演示中,亮度和色温滑块会在每张房间卡片上发出从暖琥珀色到冷青色的实时光效反馈,圆形 SVG 温控拨盘可拖动或步进,在 Eco、Heat 和 Cool 模式间设定目标温度。房间设备、门锁、百叶窗和四个场景都会在屏幕上更新,每个开关的状态都保存在 localStorage 中,因此刷新页面后状态依然保留。
运行 npx vibefather add smart-home-control-app 即可将智能家居控制 App 模板拉取到你的项目中。它使用 Vite、React、TypeScript 和 Tailwind CSS 构建,生成静态文件,不需要后端或外部 API,因此你可以将构建产物托管在任何提供静态文件服务的地方。需要 Pro 会员,演示由 Gemini 4 Neon 配合 Antigravity 构建。
复制本页的完整提示词(Pro),或者运行 npx vibefather add smart-home-control-app,把 变量 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。
演示由 Gemini 4 Neon 在 Antigravity 里完成。每次都用公开的提示词原样生成,没有额外补充。