用这个模板做的 2 个案例
同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。关于这个模板
一个三栏式邮件客户端,是真正可用的界面,而不是一张界面截图。首屏是一个繁忙的深石板色收件箱,已有会话打开:左侧是文件夹和彩色标签,中间是密集的会话列表,右侧是串式阅读视图。分类收件箱将主要、更新和订阅邮件分开,列表支持未读标记、星标、稍后处理、多选和批量操作。写信器支持富文本格式、附件标签、从联系人列表自动补全收件人、定时发送和键盘发送。搜索会随输入实时过滤,并带有附件、未读状态、标签和时间的筛选标签,快捷键面板列出了移动、归档、加星、回复和写信的单键命令。一个虚构自由职业者的预置邮箱让界面具有真实的密度,包含客户、会计师、订阅邮件、收据和家人邮件。所有数据都通过一个适配器文件存放在 localStorage 中,因此可以用真实的邮件 API 替换存储,而无需改动界面。白色、石板色和温暖的珊瑚色用于未读和主要操作;默认深色模式,可切换浅色模式。在内容文件和种子文件中替换服务名称、用户和种子数据,即可将其变为你自己的。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Email Inbox App Interface Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else. ## Brief A three-pane email client for a fictional mail service: folders and labels; a conversation list with unread, star, snooze and bulk actions; a threaded reading view; a composer with rich text, attachment chips, recipient autocomplete and scheduled send; search with filters; keyboard shortcuts; and a split inbox (Primary, Updates, Newsletters). A seeded mailbox of a fictional freelancer. Everything is stored in localStorage behind one adapter file written so a real mail API can replace it. The first screen is a busy inbox with a thread open. White, slate #1E293B and a warm coral #FF6B5A for unread and primary actions; dark mode. - Audience: Product designers and front-end developers who need a believable mail or messaging interface to prototype with, and developers building a mail client. - Goal: Look and behave like a mail client people already use: dense, fast and keyboard-friendly, with real state behind every control. - Tone: Calm, compact and neutral. Interface labels are short and plain; the seeded messages read like real work email. ## Stack - Framework: Vite 6 + React 18 + TypeScript - Styling: Tailwind CSS 3.4 - Libraries: motion (MIT), lucide-react (ISC), @fontsource-variable/onest (OFL-1.1), @fontsource-variable/jetbrains-mono (OFL-1.1) - Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs. - Setup: - vite.config.ts: base './', build.sourcemap false, nothing from src/ copied into dist/. - tailwind.config.js: darkMode 'class'; extend colors with two palettes named by CSS variables in src/index.css (slate, panel, raised, line, text, muted, accent) so the dark and light themes swap by changing the class on <html>. - src/data/types.ts defines Thread, Message, Contact, Label and Folder; src/data/seed.ts holds the seeded mailbox; src/data/adapter.ts exports a MailAdapter interface and LocalStorageAdapter, the only file that reads or writes localStorage under the key [BRAND_SLUG]-state, where [BRAND_SLUG] is [BRAND] lowercased with hyphens. - src/store/useMail.ts is a reducer (useReducer + context) that holds the mailbox state and every action: select thread, mark read or unread, star, snooze, archive, delete, move to label, send, schedule, save draft, apply search and filters, set theme. - Scheduled messages sit in an Outbox folder; on load, any whose scheduled time has passed move to Sent. - The rich-text body is a contentEditable div with document.execCommand for bold, italic, lists, link and quote; no editor library. - All interface copy, folder names, labels, contacts and settings live in src/content.ts; the mailbox itself lives in src/data/seed.ts; components never hard-code copy. ## Variables - [BRAND] — Mail service name (default: "Quill Mail") - [USER_NAME] — Mailbox owner (default: "Maya Okonkwo"). The freelancer whose mailbox is seeded. - [USER_ROLE] — What the owner does (default: "freelance brand designer"). Shown in the account menu and the signature. - [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/email-inbox-app-interface 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 仍然免费。
DESIGN.md
单独的设计规范:配色、字体、间距和动效。可以把这套视觉用到你已有的项目上。
---
name: "Email Inbox App Interface"
colors:
slate: "#0F172A"
panel: "#1E293B"
raised: "#273449"
line: "#334155"
text: "#F8FAFC"
muted: "#94A3B8"
accent: "#FF6B5A"
white: "#FFFFFF"
ink: "#1E293B"
mist: "#E2E8F0"
slatemuted: "#64748B"
typography:
ui_everything_in_the_interface: { family: "Onest Variable", weights: [400, 500, 600, 700] }
mono_timestamps_keyboard_hints_attachment_sizes: { family: "JetBrains Mono Variable", weights: [400, 500] }
spacing: "Density is high: list rows 56px (72px with a snippet line), sidebar items 32px, pane padding 12px, 4px rhythm; reading pane text 15px with 1.6 line-height and a max width of 640px."
radius: "Panels and composer 12px; buttons 8px; chips and avatars rounded-full; inputs 8px."
---
# Email Inbox App Interface — 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
- **slate** `#0F172A` — Dark theme app background
- **panel** `#1E293B` — Dark theme side and top bars; light theme primary text
- **raised** `#273449` — Dark theme hover rows, selected chips, composer
- **line** `#334155` — Dark theme borders and dividers
- **text** `#F8FAFC` — Dark theme text
- **muted** `#94A3B8` — Dark theme secondary text
- **accent** `#FF6B5A` — Warm coral: unread dots and bold unread text, primary buttons with slate text, selection, the compose button
- **white** `#FFFFFF` — Light theme background and buttons
- **ink** `#1E293B` — Light theme text; text on coral
- **mist** `#E2E8F0` — Light theme borders
- **slateMuted** `#64748B` — Light theme secondary text
## Typography
- **UI / everything in the interface** — Onest Variable (OFL), weights 400/500/600/700. Self-host the font files.
- **Mono / timestamps, keyboard hints, attachment sizes** — JetBrains Mono Variable (OFL), weights 400/500. Self-host the font files.
## Spacing & shape
- Spacing: Density is high: list rows 56px (72px with a snippet line), sidebar items 32px, pane padding 12px, 4px rhythm; reading pane text 15px with 1.6 line-height and a max width of 640px.
- Radius: Panels and composer 12px; buttons 8px; chips and avatars rounded-full; inputs 8px.
## Motion
- Pane changes cross-fade 150ms; list rows slide out 200ms on archive or delete.
- Composer opens with a 220ms scale from 0.98 and fade; toasts slide up 200ms and leave after 3 seconds.
- Bulk action bar slides down from under the toolbar 200ms; hover states 120ms.
- Snooze and star controls scale to 0.9 and back on press.
- prefers-reduced-motion: everything switches instantly with no fades or slides.
## Imagery
None. No photographs or illustrations: avatars are circles in a colour derived from the sender's name with white initials; icons come from lucide; the first screen is carried by the density and polish of the interface itself.
## Tone
Calm, compact and neutral. Interface labels are short and plain; the seeded messages read like real work email.
---
— Prompt by VibeFather · https://vibefather.ai/t/email-inbox-app-interface · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 客户支持团队:将 BRAND 设置为你的帮助台名称,为队列重新命名文件夹,并将预置的自由职业者邮箱改为带有回复模板的示例客户会话。
- 自由职业顾问:将 USER_NAME 和 USER_ROLE 设置为你自己,用你自己的客户通信替换种子邮件,并将签名指向你的业务信息。
- 消息产品原型:保留三栏布局,将邮件字段替换为直接消息,使用标签表示会话主题,同时保留搜索和快捷键。
- 面向开发者受众的内部工具演示:保留深石板主题,用部署警报和收据填充邮箱,并将分类收件箱显示为主要、警报和摘要。
邮箱应用界面:常见问题
邮箱应用界面模板包含哪些内容?
邮箱应用界面模板是一个单页三栏式邮件客户端。它包含文件夹和彩色标签、带未读标记、星标、稍后处理、多选和批量操作的会话列表、串式阅读视图、支持富文本格式、附件标签、收件人自动补全和定时发送的写信器、带筛选标签的实时搜索、键盘快捷键面板,以及将主要、更新和订阅邮件分开的分类收件箱。预置邮箱让首屏加载时就有真实的密度。
如何将邮箱应用界面连接到真实的邮件 API?
邮箱应用界面模板将所有数据存放在 localStorage 中,通过一个导出邮件适配器接口的适配器文件管理。要使用真实邮件,请编写一个新的适配器,针对你的邮件 API 实现相同的接口,并替换掉本地存储适配器。界面、状态管理和组件保持不变,因为只有该适配器文件会读写存储的邮件。
怎么用 AI 做一个邮箱应用界面?
复制本页的完整提示词(Pro),或者运行 npx vibefather add email-inbox-app-interface,把 [BRAND]、[USER_NAME]、[USER_ROLE] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。