用这个模板做的 2 个案例
同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。关于这个模板
这个模板将公司的年度业绩变成单页滚动页面,读起来像杂志特写,用起来像图表演示文稿。它以大图开场,报告年份用超大号衬线数字呈现,然后依次展开七个章节:封面、年度数字、增长、收入构成、全球办公地点、首席执行官信函和下载。每个章节只讲一个重点,并且直白地说清楚。
它适合想要超越 PDF 附件的财务和传播团队、向捐赠者汇报的非营利组织、向出资人写信的基金,以及公开分享数字的创始人。演示案例跟随一家虚构的冷链货运公司,第二个案例换成一家水务慈善机构,以展示主题变化时布局依然成立。所有数字均为示例数据,并在页面上标注。
设计将暖纸色背景与深墨色文字和单一钴蓝强调色搭配。全屏数字在出现时递增,每个数字配一句话用日常语言解释其含义。一个粘性折线图保持可见,同时简短注释依次经过,将高亮从一年移到下一年。柱状图从基线依次升起,圆环图段落在标签出现前扫开,点阵世界地图在每个办公地点上脉冲,并与城市和员工人数列表保持同步。所有图表均为手写 SVG,不使用图表库,因此你可以直接重新设计样式。
要改编它,只需替换一个内容文件中的值:名称、数字、章节主张、办公地点坐标和信函。地图标记、图表和可下载 PDF 均由该文件生成,因此会一起更新。偏好减少动态效果的访客会看到所有数字和图表的最终状态。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Annual Report Data Story Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else. ## Brief A single-page annual report for [BRAND], which runs [BUSINESS], told as a scroll data story in seven chapters: cover, the year in numbers, growth, revenue mix, offices, a letter from [LEADER], and a PDF download. Every chapter makes one clear point. Every figure, person and place is invented and labeled as sample data. - Audience: Customers, partners, staff and donors who will give a yearly report three minutes on a laptop or phone, and who are not financial specialists. - Goal: Have a reader finish knowing the year's four headline numbers and why they moved, then download the PDF. - Tone: Plainspoken, exact and a little dry, like a good business editor. Short sentences, real units, no corporate filler. It never reads as a regulated filing. ## Stack - Framework: Vite 5 + TypeScript (no UI framework) - Styling: Tailwind CSS 3.4 - Libraries: gsap 3 with ScrollTrigger (GSAP Standard (no charge, commercial use allowed)), pdf-lib (devDependency, build script only) (MIT), vite 5 (MIT), typescript 5 (Apache-2.0), tailwindcss 3.4, postcss, autoprefixer (MIT), @fontsource-variable/bodoni-moda (OFL-1.1), @fontsource-variable/newsreader (OFL-1.1), @fontsource/ibm-plex-sans (OFL-1.1) - Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs. - Setup: - Files: index.html, src/main.ts, src/style.css, src/content.json, src/charts/line.ts, src/charts/bars.ts, src/charts/donut.ts, src/charts/map.ts, src/countup.ts, src/rail.ts, scripts/make-pdf.mjs, public/favicon.svg, public/images/, ASSETS.md. - package.json scripts: dev is 'vite'; build is 'node scripts/make-pdf.mjs && tsc --noEmit && vite build'. Set 'type': 'module'. - vite.config.ts: base './', build.sourcemap false, build.outDir 'dist'. tsconfig.json: strict true, resolveJsonModule true. - tailwind.config.js: content ['./index.html', './src/**/*.ts']; theme.extend.colors paper, paper-deep, ink, slate, stone, hairline, accent with the hex values in Design; theme.extend.fontFamily display 'Bodoni Moda Variable', read 'Newsreader Variable', sans 'IBM Plex Sans', each with a serif or sans-serif fallback. - src/main.ts imports, in order: @fontsource-variable/bodoni-moda/opsz.css, @fontsource-variable/newsreader/opsz.css, @fontsource-variable/newsreader/opsz-italic.css, @fontsource/ibm-plex-sans/400.css, /500.css, /600.css, then ./style.css. Set font-optical-sizing: auto on html. - All copy and every figure live in src/content.json with top-level keys meta, cover, numbers, growth, quarters, mix, offices, letter, download, footer. main.ts fills the DOM from it, and all charts read their data from it. Figures must stay consistent with one another whenever they are rewritten. - Images referenced from TypeScript use import.meta.env.BASE_URL + 'images/hero.webp'. The PDF link is ./annual-report.pdf. - scripts/make-pdf.mjs reads src/content.json and uses pdf-lib to write public/annual-report.pdf: 3 US Letter pages with StandardFonts.TimesRoman and Helvetica. Page 1: Paper-colored background, a Cobalt rectangle 612 by 180 pt at the bottom, [BRAND], 'Annual Report [REPORT_YEAR]', 'Sample data'. Page 2: the four headline numbers, then the 8 quarterly bars drawn as rectangles. Page 3: the letter text, word-wrapped by hand with widthOfTextAtSize. Standard fonts only encode WinAnsi, so replace the minus sign U+2212 with a hyphen before drawing. The file stays under 100 KB. - Register once with gsap.registerPlugin(ScrollTrigger). Put every animation inside gsap.matchMedia() under the condition '(prefers-reduced-motion: no-preference)'. Initial hidden states are set by JavaScript inside that block only, so the HTML and CSS default is always the final state. Call ScrollTrigger.refresh() after document.fonts.ready and after window load. - Pulse keyframes and the scroll cue keyframes live in src/style.css, inside @media (prefers-reduced-motion: no-preference). html gets scroll-behavior: smooth under the same query. Every chapter has scroll-margin-top: 56px below 1024px. ## Variables - [BRAND] — Company or organization name (default: "Fennmark"). An invented company, nonprofit or fund. - [BUSINESS] — What it does, in a short phrase (default: "refrigerated freight and cold storage for food and medicine"). Rewrites the chapter claims, revenue segments, milestones and the letter. - [REPORT_YEAR] — The year being reported (default: "2025"). Four digits. Set on the cover in huge numerals and used as the last year of the charts. - [LEADER] — Letter writer, name and title (default: "Maren Aldous, Chief Executive"). A fictional person. Use a name that fits the portrait, or swap in your own portrait. - [HERO_IMAGE] — Cover photograph file (default: "hero-cold-yard.webp"). hero-cold-yard.webp or hero-water-tower.webp from the assets list, or your own wide dusk or dawn photo with a dark lower third. Saved to public/images/hero.webp. - [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/annual-report-data-story 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: "Annual Report Data Story"
colors:
paper: "#F4EFE6"
paper_deep: "#EAE3D6"
ink: "#14171F"
slate: "#5A5E66"
stone: "#A9A294"
hairline: "#D3CBBC"
cobalt: "#1A3FE0"
typography:
display_big_numerals_headlines_chart_values_at_28px_and_above: { family: "Bodoni Moda Variable", weights: [500] }
long_read_letter_lede_takeaway_sentences_pull_quote_in_italic: { family: "Newsreader Variable", weights: [400, 500] }
interface_rail_labels_axis_text_tables_and_buttons_always_with_tabular_nums: { family: "IBM Plex Sans", weights: [400, 500, 600] }
spacing: "Chapters after the cover sit in a main column with 200px left margin at 1024px and up, and 48px inner padding. Below 1024px the margin is 0 and padding is 16px. Chapter vertical padding is 144px on desktop and 88px on mobile. Rules are 1px Hairline."
radius: "Sharp everywhere: 0px on images, charts, bars and panels. Only buttons use 2px."
---
# Annual Report Data Story — 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
- **Paper** `#F4EFE6` — Page background and the text color on photos and on Cobalt
- **Paper Deep** `#EAE3D6` — Alternating number panels and the donut chapter background
- **Ink** `#14171F` — Body text, numerals, primary chart series and bars
- **Slate** `#5A5E66` — Secondary text, axis labels and the third donut segment
- **Stone** `#A9A294` — Ghost line, prior-year bars, the fourth donut segment and land dots on the map
- **Hairline** `#D3CBBC` — 1px rules, chart gridlines and the rail track
- **Cobalt** `#1A3FE0` — The single accent: active line, highlighted bar and segment, markers, buttons and the closing chapter
## Typography
- **Display: big numerals, headlines, chart values at 28px and above** — Bodoni Moda Variable (OFL), weights 500. Self-host the font files.
- **Long read: letter, lede, takeaway sentences, pull quote in italic** — Newsreader Variable (OFL), weights 400/500. Self-host the font files.
- **Interface: rail, labels, axis text, tables and buttons, always with tabular-nums** — IBM Plex Sans (OFL), weights 400/500/600. Self-host the font files.
## Spacing & shape
- Spacing: Chapters after the cover sit in a main column with 200px left margin at 1024px and up, and 48px inner padding. Below 1024px the margin is 0 and padding is 16px. Chapter vertical padding is 144px on desktop and 88px on mobile. Rules are 1px Hairline.
- Radius: Sharp everywhere: 0px on images, charts, bars and panels. Only buttons use 2px.
## Motion
- Default ease power3.out, durations 0.5 to 1.2s. Text enters with a 24px rise and a fade. Nothing bounces. Every trigger plays once, except the line chart steps, the parallax and the rail, which follow the scroll in both directions.
- Count-up: 1.6s power2.out from 0 to the final value when the panel's top reaches 65% of the viewport. Each number is stacked in one grid cell over an invisible copy of its final text, so its width never changes while it counts.
- Reduced motion: every number shows its final value, the line is fully drawn with the last year highlighted, bars and donut are complete, map dots and markers are visible with no pulse, no parallax, no smooth scrolling. Stepping past notes in the line chapter still moves the highlight, with no transition. The rail still updates.
## Imagery
Three documentary-style photographs from one shoot at blue hour, plus one matching portrait: deep blue shadows, warm sodium light and fine film grain. They sit square-cornered with no filters added. All charts, the map, the signature and icons are drawn in code as inline SVG.
## Tone
Plainspoken, exact and a little dry, like a good business editor. Short sentences, real units, no corporate filler. It never reads as a regulated filing.
---
— Prompt by VibeFather · https://vibefather.ai/t/annual-report-data-story · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 一家风险投资基金向出资人写信:将 BRAND 设置为该基金,BUSINESS 设置为其投资主题,将收入构成换成投资组合行业,将办公地点地图换成按城市划分的投资组合公司。
- 一家会员制非营利组织向捐赠者汇报:保留七个章节,将数字重新表述为服务对象和资金支出,并将 LEADER 设置为执行董事的信函。
- 一位上市公司创始人公开分享数字:在封面上使用 REPORT_YEAR,用你报告的数字替换虚构数字,并将 PDF 下载指向你的申报文件。
- 一个可持续发展或影响力团队:将 HERO_IMAGE 设置为宽幅现场照片,将增长章节改写为排放或覆盖范围,并保留点阵地图用于项目地点。
年度报告数据故事:常见问题
如何将自己的数字放入年度报告数据故事模板?
年度报告数据故事模板将所有数字保存在一个内容文件中,包含封面、年度数字、增长、季度、收入构成、办公地点、信函和下载等部分。替换其中的值后,数字递增、折线图、柱状图、圆环图和点阵地图都会从同一来源读取。重写数字时请保持彼此一致,并在数字变为真实数据前保留示例数据标签。
年度报告数据故事模板是否包含可下载的 PDF?它是如何生成的?
可以。年度报告数据故事模板从同一内容文件生成三页 US Letter PDF,包含一个带有品牌和报告年份的封面、一页四个头条数字和季度柱状图,以及一页信函。构建脚本在构建期间写入它,因此每当你更改数字时,下载文件都会与页面保持同步。
怎么用 AI 做一个年度报告数据故事?
复制本页的完整提示词(Pro),或者运行 npx vibefather add annual-report-data-story,把 [BRAND]、[LEADER]、[BUSINESS]、[HERO_IMAGE] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。