专注计时与习惯陪伴应用是一款宁静、暖石色调的番茄钟与每日微习惯追踪 PWA,专为手机和笔记本上的深度工作而打造。它拥有真正的三断点响应式设计,没有虚假的手机外壳:768px 以下的移动端屏幕显示固定的底部四标签栏(专注、习惯、日志、统计),而桌面端视口则展开为全高侧边栏和一个均衡的双面板专注工作台,并带有一键深色模式切换。中央是一个动画 SVG 圆形倒计时环,支持 25 分钟专注、5 分钟短休息、15 分钟长休息和自定义分钟预设,并配有任务标签选择器。内置的 Web Audio API 环境音混音器在代码中干净地合成柔和雨声、温暖棕噪音、轻柔咖啡馆嗡鸣和共鸣完成钟声——无需任何外部音频文件。在计时器旁边,用户可以勾选每日微习惯并查看实时连续打卡徽章,在日志中记录一行会话后反思,并通过每周专注分钟 SVG 柱状图和 28 天一致性热力图监控深度工作势头,所有数据都保存在 localStorage 中。以宁静的暖石色(#F5F3EF)和深炭色(#1C1917)为基调,点缀陶土色(#D95D39)和沉静鼠尾草绿(#4D7C6F),自托管 Fraunces、Plus Jakarta Sans 和 JetBrains Mono 字体。在 src/content.ts 中自定义应用品牌、用户名、每日专注目标和默认任务。
在线演示就是用这份提示词原样做出来的,没有额外补充。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Focus Timer & Habit Companion App
Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else.
## Brief
A serene warm-stone responsive mobile-first Pomodoro focus timer & daily micro-habit tracker PWA ([BRAND]) for [USER_NAME] with a [DAILY_FOCUS_GOAL] daily focus target. Mobile (<768px) uses a bottom 4-tab bar (Focus, Habits, Journal, Stats); desktop renders a side rail + dual-panel focus desk with dark mode toggle. No fake phone bezel.
- Audience: Knowledge workers, students, writers, and makers building calm daily focus and habit routines.
- Goal: Pair tactile distraction-free Pomodoro sprints with procedural ambient soundscapes and lightweight daily habit streaks.
- Tone: Serene, grounded, organic warm minimalism, zero hustle-culture noise.
## Stack
- Framework: Vite 5 + React 18 + TypeScript
- Styling: Tailwind CSS 3.4
- Libraries: lucide-react (ISC), @fontsource/fraunces (OFL), @fontsource/plus-jakarta-sans (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/fraunces (600, 700), @fontsource/plus-jakarta-sans (400, 500, 600, 700), and @fontsource/jetbrains-mono (400, 500, 600) locally in src/main.tsx.
- Synthesize Soft Rain (bandpass filtered noise), Warm Brown Noise (integrated low-passed noise), Gentle Café Hum (warm harmonic room bed), and Completion Bell chime cleanly via Web Audio API in src/audio/ambientMixer.ts.
- Persist daily habits, streaks, journal reflection notes, focus history minutes, and dark mode preference in localStorage.
## Variables
- [BRAND] — Focus app name (default: "HearthPace"). Fictional Pomodoro & habit PWA name
- [USER_NAME] — User display name (default: "Mina Sato"). Fictional profile greeting
- [DAILY_FOCUS_GOAL] — Daily focus target (default: "100 min"). Shown on stats and sidebar
- [DEFAULT_TASK] — Active sprint label (default: "Deep Architecture Spec"). Initial selected focus task
- [CALM_MOTTO] — Subtle studio subtitle (default: "Steady focus, gentle daily rituals."). Header tagline
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/focus-timer-habit-companion-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.
## Design
### Colors
- Warm Stone `#F5F3EF` — Serene daylight app canvas
- Paper White `#FFFFFF` — Elevated timer, mixer, and habit cards
- Deep Charcoal `#1C1917` — Primary display numerals, headings, and dark-mode background
- Terracotta `#D95D39` — Active Focus ring arc, primary Play CTA, and streak highlights
- Calm Sage `#4D7C6F` — Break timer mode, completed habit checks, and weekly chart bars
- Muted Pebble `#78716C` — Secondary labels, durations, and reflection timestamps
### Typography
- Warm editorial headings: Fraunces (OFL), weights 600/700
- Habits, journal reflections, and UI controls: Plus Jakarta Sans (OFL), weights 400/500/600/700
- Countdown clock, durations, and focus totals: JetBrains Mono (OFL), weights 400/500/600
### Layout & motion
- Spacing: Mobile (<768px) uses comfortable 16px horizontal padding with 84px clearance above the fixed 64px tab bar. Desktop (>=1024px) renders a full-height 236px left rail + balanced 2-column focus & habits/telemetry workspace.
- Radius: 20px for timer studio card, 14px for habit and mixer cards, 999px for mode pills and task chips.
- Motion: Smooth SVG circular countdown arc sweeping counterclockwise as seconds tick.
- Motion: Tactile sage check-off transition on daily micro-habits.
- Motion: Honors prefers-reduced-motion; all content visible immediately.
- Imagery: 100% crisp code-drawn calm visuals: animated SVG circular countdown ring, ambient sound channel meters, weekly focus-minutes SVG bar chart, 28-day sage consistency heatmap, and Lucide icons.
## Pages & Sections
### [BRAND] — Focus Timer & Habit Companion (`index.html`)
1. **Adaptive Mobile Bottom Tabs & Desktop Side Rail** — Mobile (<768px): calm [BRAND] header with dark mode switch + fixed bottom 4-tab bar (Focus, Habits, Journal, Stats). Desktop (>=768px): full-height side rail with [BRAND] emblem, [USER_NAME], 4 nav tabs, today's focus progress bar toward [DAILY_FOCUS_GOAL], and Light/Dark mode toggle.
Layout: Full-viewport responsive warm stone PWA; zero fake phone frame.
2. **Focus Desk — SVG Countdown Ring, Ambient Sound Mixer & Quick Habits** — Left panel: mode switcher (25m Focus / 5m Short Break / 15m Long Break + custom +/- 5m controls), large animated SVG circular countdown ring, Play/Pause & Reset buttons, task label selector ('[DEFAULT_TASK]', 'Design Critique Prep', 'Inbox Zero', 'Reading Block'), and quick 1-line session reflection input. Right panel: built-in Web Audio Ambient Sound Mixer (independent sliders + mute toggles for Soft Rain, Warm Brown Noise, Gentle Café Hum, plus Test Bell button), Daily Micro-Habits check-off list with streak badges, and compact Weekly Focus Minutes bar chart so all signature elements shine on first load.
Layout: Balanced dual-panel desk on desktop; clean stacked cards on mobile.
3. **Habits & Journal Views** — Habits tab shows 6 daily micro-habits (Morning Sunlight Walk, 100m Deep Focus, Hydrate 2L, Read 20 Pages, Screen-Free Dinner, Evening Stretch) with completion toggle, live streak counter, and Add Custom Habit input. Journal tab displays timestamped relative ('Just now', 'Earlier today', 'Yesterday') 1-line session reflections with quick add form.
Layout: 2-column cards on desktop; single column on mobile.
4. **Stats View — Weekly Focus Minutes & 28-Day Heatmap** — Top 3 KPI cards (Focus Minutes Today, Weekly Deep Work, Habit Completion Rate), interactive 7-day SVG Focus Minutes bar chart, and 28-day Sage Consistency Heatmap persisted in localStorage.
Layout: 2-column telemetry grid on desktop; stacked cards on mobile.
## Assets
- icon: Install lucide-react (ISC) for play/pause, rain/waves/coffee audio mixer, checkmarks, flame streaks, moon/sun theme, and tab icons.
- font: Self-host Fraunces, Plus Jakarta Sans, and JetBrains Mono via @fontsource packages (OFL).
- image: Circular countdown ring, weekly focus bar chart, and 28-day heatmap are drawn purely in SVG. Audio synthesized via Web Audio API.
## Don'ts
- No fake phone bezel or fixed narrow mobile container on desktop screens.
- No external MP3 audio streams, CDN scripts, Google Fonts, or source maps; always set base: './'.
- No calendar dates; use relative labels ('Today', 'Yesterday', '2 days ago').
- No real productivity brands or logos.
- No horizontal overflow on 390x844 mobile or 1440x900 desktop.
- No mention of VibeFather or competitors except optional [CREDIT].
---
— Prompt by VibeFather · https://vibefather.ai/t/focus-timer-habit-companion-app · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
# 专注计时器与习惯陪伴应用
完全按照以下描述构建此网站。将 [VARIABLES] 替换为你自己的值;其余内容保持不变。
## 简介
一款宁静的暖石色、移动优先的响应式番茄钟专注计时器与每日微习惯追踪 PWA([BRAND]),面向 [USER_NAME],每日专注目标为 [DAILY_FOCUS_GOAL]。移动端(<768px)使用底部 4 标签栏(Focus、Habits、Journal、Stats);桌面端渲染侧边栏 + 双面板专注工作台,并带有深色模式切换。不使用虚假手机边框。
- 受众:知识工作者、学生、写作者和创作者,正在建立平静的每日专注与习惯 routine。
- 目标:将触感十足、无干扰的番茄钟冲刺与程序化环境音景以及轻量级每日习惯连续记录相结合。
- 基调:宁静、踏实、有机的暖色极简主义,零内卷文化噪音。
## 技术栈
- 框架:Vite 5 + React 18 + TypeScript
- 样式:Tailwind CSS 3.4
- 库:lucide-react(ISC)、@fontsource/fraunces(OFL)、@fontsource/plus-jakarta-sans(OFL)、@fontsource/jetbrains-mono(OFL)
- 构建:`npm run build` → `dist/` 中的静态文件。无后端、无服务器代码、无外部 API。
- 设置:
- 在 vite.config.ts 中设置 base: './' 和 build: { sourcemap: false }。
- 在 src/main.tsx 中本地导入 @fontsource/fraunces(600、700)、@fontsource/plus-jakarta-sans(400、500、600、700)和 @fontsource/jetbrains-mono(400、500、600)。
- 在 src/audio/ambientMixer.ts 中通过 Web Audio API 干净地合成 Soft Rain(带通滤波噪声)、Warm Brown Noise(积分低通噪声)、Gentle Café Hum(温暖谐波房间底噪)和 Completion Bell 铃声。
- 在 localStorage 中持久化每日习惯、连续记录、日记反思笔记、专注历史分钟数和深色模式偏好。
## 变量
- [BRAND] — 专注应用名称(默认:"HearthPace")。虚构的番茄钟与习惯 PWA 名称
- [USER_NAME] — 用户显示名称(默认:"Mina Sato")。虚构的个人资料问候语
- [DAILY_FOCUS_GOAL] — 每日专注目标(默认:"100 min")。显示在统计和侧边栏上
- [DEFAULT_TASK] — 活动冲刺标签(默认:"Deep Architecture Spec")。初始选中的专注任务
- [CALM_MOTTO] — 微妙的 studio 副标题(默认:"Steady focus, gentle daily rituals.")。页眉标语
- [CREDIT] — 在页脚保留一个小型 "Template by VibeFather" 链接,指向 https://vibefather.ai/t/focus-timer-habit-companion-app(默认:是;删除此行即可移除)
Pages & Sections 下的文案是为默认值编写的。如果你的值不同,请为它们重写每个标题、段落、标签和图片——保持相同的长度、语气和结构。布局、颜色、字体和动效保持所述不变。
将所有文案、图片路径和链接放在一个内容文件中(例如 `src/content.ts`),按区块作为键,以便之后无需改动组件即可替换内容。
## 设计
### 颜色
- 暖石色(Warm Stone)`#F5F3EF` — 宁静的日光应用画布
- 纸白色(Paper White)`#FFFFFF` — 悬浮的计时器、混音器和习惯卡片
- 深炭色(Deep Charcoal)`#1C1917` — 主显示数字、标题和深色模式背景
- 陶土色(Terracotta)`#D95D39` — 专注模式的环形弧线、主播放 CTA 和连续打卡高亮
- 静谧鼠尾草色(Calm Sage)`#4D7C6F` — 休息计时模式、已完成的习惯勾选和每周图表柱
- 柔和卵石色(Muted Pebble)`#78716C` — 次级标签、时长和反思时间戳
### 字体排印
- 温暖的编辑风格标题:Fraunces(OFL),字重 600/700
- 习惯、日记反思和 UI 控件:Plus Jakarta Sans(OFL),字重 400/500/600/700
- 倒计时时钟、时长和专注总计:JetBrains Mono(OFL),字重 400/500/600
### 布局与动效
- 间距:移动端(<768px)使用舒适的 16px 水平内边距,并在固定的 64px 标签栏上方留出 84px 的间隙。桌面端(>=1024px)渲染全高 236px 左侧栏 + 均衡的 2 列专注与习惯/遥测工作区。
- 圆角:计时器工作室卡片为 20px,习惯和混音器卡片为 14px,模式胶囊和任务标签为 999px。
- 动效:平滑的 SVG 圆形倒计时弧线随着秒数流逝逆时针扫过。
- 动效:每日微习惯上触感十足的鼠尾草色勾选过渡。
- 动效:遵循 prefers-reduced-motion;所有内容立即可见。
- 图像:100% 清晰的代码绘制宁静视觉:动画 SVG 圆形倒计时环、环境声音通道计量表、每周专注分钟 SVG 柱状图、28 天鼠尾草色一致性热力图和 Lucide 图标。
## 页面与区块
### [BRAND] — 专注计时器与习惯伴侣(`index.html`)
1. **自适应移动端底部标签栏与桌面端侧边栏** — 移动端(<768px):简洁的 [BRAND] 页头,带深色模式开关 + 固定底部 4 标签栏(专注、习惯、日志、统计)。桌面端(>=768px):全高侧边栏,含 [BRAND] 徽标、[USER_NAME]、4 个导航标签、今日专注进度条(朝向 [DAILY_FOCUS_GOAL]),以及浅色/深色模式切换。
布局:全视口响应式暖石色 PWA;零虚假手机外框。
2. **专注工作台 — SVG 倒计时环、环境音混音器与快捷习惯** — 左侧面板:模式切换器(25m 专注 / 5m 短休息 / 15m 长休息 + 自定义 +/- 5m 控件)、大型动画 SVG 圆形倒计时环、播放/暂停与重置按钮、任务标签选择器('[DEFAULT_TASK]'、'Design Critique Prep'、'Inbox Zero'、'Reading Block'),以及快捷单行会话反思输入。右侧面板:内置 Web Audio 环境音混音器(Soft Rain、Warm Brown Noise、Gentle Café Hum 的独立滑块 + 静音开关,外加 Test Bell 按钮)、带连续打卡徽章的每日微习惯勾选列表,以及紧凑的每周专注分钟柱状图,让所有标志性元素在首次加载时即大放异彩。
布局:桌面端为均衡双面板工作台;移动端为简洁堆叠卡片。
3. **习惯与日志视图** — 习惯标签页显示 6 个每日微习惯(Morning Sunlight Walk、100m Deep Focus、Hydrate 2L、Read 20 Pages、Screen-Free Dinner、Evening Stretch),带完成切换、实时连续打卡计数器和添加自定义习惯输入框。日志标签页显示带时间戳相对时间('Just now'、'Earlier today'、'Yesterday')的单行会话反思,附快捷添加表单。
布局:桌面端为 2 列卡片;移动端为单列。
4. **统计视图 — 每周专注分钟与 28 天热力图** — 顶部 3 张 KPI 卡片(Focus Minutes Today、Weekly Deep Work、Habit Completion Rate)、交互式 7 天 SVG 专注分钟柱状图,以及持久化在 localStorage 中的 28 天 Sage 一致性热力图。
布局:桌面端为 2 列遥测网格;移动端为堆叠卡片。
## 资源
- 图标:安装 lucide-react(ISC),用于播放/暂停、雨声/波浪声/咖啡声音频混合器、对勾标记、火焰连续记录、月亮/太阳主题以及标签页图标。
- 字体:通过 @fontsource 包自托管 Fraunces、Plus Jakarta Sans 和 JetBrains Mono(OFL)。
- 图像:圆形倒计时环、每周专注柱状图和 28 天热力图完全用 SVG 绘制。音频通过 Web Audio API 合成。
## 不要做的事
- 不要在桌面屏幕上使用假的手机边框或固定的窄移动端容器。
- 不要使用外部 MP3 音频流、CDN 脚本、Google Fonts 或 source maps;始终设置 base: './'。
- 不要使用日历日期;使用相对标签('Today'、'Yesterday'、'2 days ago')。
- 不要使用真实的生产力品牌或标志。
- 在 390x844 移动端或 1440x900 桌面端不要出现水平溢出。
- 除可选的 [CREDIT] 外,不要提及 VibeFather 或竞争对手。
---
— Prompt by VibeFather · https://vibefather.ai/t/focus-timer-habit-companion-app · 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.
单独的设计规范:配色、字体、间距和动效。可以把这套视觉用到你已有的项目上。
---
name: "Focus Timer & Habit Companion App"
colors:
warm_stone: "#F5F3EF"
paper_white: "#FFFFFF"
deep_charcoal: "#1C1917"
terracotta: "#D95D39"
calm_sage: "#4D7C6F"
muted_pebble: "#78716C"
typography:
warm_editorial_headings: { family: "Fraunces", weights: [600, 700] }
habits_journal_reflections_and_ui_controls: { family: "Plus Jakarta Sans", weights: [400, 500, 600, 700] }
countdown_clock_durations_and_focus_totals: { family: "JetBrains Mono", weights: [400, 500, 600] }
spacing: "Mobile (<768px) uses comfortable 16px horizontal padding with 84px clearance above the fixed 64px tab bar. Desktop (>=1024px) renders a full-height 236px left rail + balanced 2-column focus & habits/telemetry workspace."
radius: "20px for timer studio card, 14px for habit and mixer cards, 999px for mode pills and task chips."
---
# Focus Timer & Habit Companion 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
- **Warm Stone** `#F5F3EF` — Serene daylight app canvas
- **Paper White** `#FFFFFF` — Elevated timer, mixer, and habit cards
- **Deep Charcoal** `#1C1917` — Primary display numerals, headings, and dark-mode background
- **Terracotta** `#D95D39` — Active Focus ring arc, primary Play CTA, and streak highlights
- **Calm Sage** `#4D7C6F` — Break timer mode, completed habit checks, and weekly chart bars
- **Muted Pebble** `#78716C` — Secondary labels, durations, and reflection timestamps
## Typography
- **Warm editorial headings** — Fraunces (OFL), weights 600/700. Self-host the font files.
- **Habits, journal reflections, and UI controls** — Plus Jakarta Sans (OFL), weights 400/500/600/700. Self-host the font files.
- **Countdown clock, durations, and focus totals** — JetBrains Mono (OFL), weights 400/500/600. Self-host the font files.
## Spacing & shape
- Spacing: Mobile (<768px) uses comfortable 16px horizontal padding with 84px clearance above the fixed 64px tab bar. Desktop (>=1024px) renders a full-height 236px left rail + balanced 2-column focus & habits/telemetry workspace.
- Radius: 20px for timer studio card, 14px for habit and mixer cards, 999px for mode pills and task chips.
## Motion
- Smooth SVG circular countdown arc sweeping counterclockwise as seconds tick.
- Tactile sage check-off transition on daily micro-habits.
- Honors prefers-reduced-motion; all content visible immediately.
## Imagery
100% crisp code-drawn calm visuals: animated SVG circular countdown ring, ambient sound channel meters, weekly focus-minutes SVG bar chart, 28-day sage consistency heatmap, and Lucide icons.
## Tone
Serene, grounded, organic warm minimalism, zero hustle-culture noise.
---
— Prompt by VibeFather · https://vibefather.ai/t/focus-timer-habit-companion-app · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
专注计时与习惯陪伴应用将所有文案放在一个内容文件中,因此你在那里设置品牌名称、问候名称、每日专注目标和默认任务标签,页头、侧边栏、统计和任务选择器都会随之更新。默认值是 HearthPace、Mina Sato、100 分钟和 Deep Architecture Spec。如果你更改它们,请重写周围的标题和标签以匹配。
复制本页的提示词,或者运行 npx vibefather add focus-timer-habit-companion-app,把 变量 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。