在这个模拟交易工作区里,你第一眼看到的就是一个已经在运转的市场。自选列表追踪六家虚构公司,每家都有自己的价格走势。选中一行,它的K线、盘口和交易订单会同时聚焦显示。深色画布让彩色的K线实体有充分的呼吸空间。带正负号的变化和对齐的数字让你不依赖颜色也能看出走势方向。
用时间周期探索价格历史的不同部分,然后查看单根K线的开盘、最高、最低和收盘价。你可以在价格上叠加移动平均线和波动带,或者在下方打开单独的动量图。图表下方,账户流水显示未平仓头寸如何随行情变化。投资组合视图包含现金,让你看到账户中实际投入了多少资金。
订单票据与图表连接同一个合成市场。市价单按报价方向成交。挂单有可见的触发条件、剩余购买力和取消操作。刷新页面后,账户、未完成指令和保存的图表偏好都会恢复。教育者可以用它做交易练习,开发者可以用它来原型设计数据密集型产品,而无需开设券商账户。发行方列表、初始账户和交易台名称来自一个小型内容配置。单个适配器包含模拟行情源和执行规则,因此底层模型变化时界面可以保持不变。
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Stock Trading Dashboard Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else. ## Brief Build [BRAND], a working local paper-trading terminal. On first paint, [PRIMARY_ISSUER] ([PRIMARY_SYMBOL]) is active in a populated market and the account already holds three positions. Use the exact default variables unless values are supplied. Every panel reads from the same simulated market. Keep the exact notice “Simulated, not financial advice” in the workspace. - Audience: Students experimenting with order types and developers building a desk around a local market feed. - Goal: A visitor can inspect a price move, place and cancel orders, and see an account change as the feed advances. - Tone: Economical US English desk labels, precise signed prices and plain feedback about what happened. ## Stack - Framework: Vite + React + TypeScript - Styling: Vanilla CSS - Libraries: React and React DOM (MIT), Vite (MIT), TypeScript (Apache-2.0) - Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs. - Setup: - Set Vite base to './' and production sourcemap to false. All graphics are local SVG or CSS. - Keep variable values and editorial copy in one content module. Put seeded data generation, feed ticks and simulated execution in one replaceable marketAdapter.ts file. - Persist a versioned account and feed snapshot with pending orders, fills, selected symbol and chart settings in localStorage. Seed only on first use and recover from malformed storage. ## Variables - [BRAND] — Desk name (default: "Rivetline Desk") - [PRIMARY_ISSUER] — Featured company (default: "Veylan Foundry") - [PRIMARY_SYMBOL] — Featured synthetic ticker (default: "VYL.X7") - [OPENING_CASH] — Starting cash in USD (default: "24500") - [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/stock-trading-dashboard 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: "Stock Trading Dashboard"
colors:
near_black: "#0B0E14"
up_green: "#16C784"
down_red: "#EA3943"
accent_blue: "#3B82F6"
panel_graphite: "#111721"
rule_steel: "#283444"
ice_white: "#ECF2FA"
muted_steel: "#A7B5C8"
typography:
desk_headings_and_ui: { family: "Barlow", weights: [400, 500, 600, 700] }
prices_and_symbols: { family: "IBM Plex Mono", weights: [400, 500, 600] }
spacing: "A 58px masthead, 24px desktop outer margins, 12px panel gaps, 16px panel padding, 36–46px data rows. At 1440px use a ~240px watchlist, flexible central chart and ~300px order desk. On narrow screens use one column, chart first and touch-friendly controls."
radius: "4px buttons and inputs, 7px framed panels, flat surfaces and fine steel seams."
---
# Stock Trading Dashboard — 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
- **Near-black** `#0B0E14` — Terminal canvas and chart ground
- **Up green** `#16C784` — Rising candles, bids and signed gains
- **Down red** `#EA3943` — Falling candles, asks and loss marks; supplement with signs and lighter text when required for AA
- **Accent blue** `#3B82F6` — Selection rail, chart overlay and trade action with near-black text
- **Panel graphite** `#111721` — Panel fill and toolbar
- **Rule steel** `#283444` — Chart lattice and fine separators
- **Ice white** `#ECF2FA` — Primary and numerical text
- **Muted steel** `#A7B5C8` — Secondary labels
## Typography
- **Desk headings and UI** — Barlow (OFL), weights 400/500/600/700. Self-host the font files.
- **Prices and symbols** — IBM Plex Mono (OFL), weights 400/500/600. Self-host the font files.
## Spacing & shape
- Spacing: A 58px masthead, 24px desktop outer margins, 12px panel gaps, 16px panel padding, 36–46px data rows. At 1440px use a ~240px watchlist, flexible central chart and ~300px order desk. On narrow screens use one column, chart first and touch-friendly controls.
- Radius: 4px buttons and inputs, 7px framed panels, flat surfaces and fine steel seams.
## Motion
- Let trades arrive every two seconds from a seeded walk, briefly tinting only the changed price.
- Respect reduced motion by removing animated flashes and transitions while keeping data fresh.
## Imagery
Use a small original blue stepped-bar mark in the masthead, six original instrument glyphs formed from lines and polygons, crisp hand-drawn-in-code candle wicks, volume bars, miniature price traces and an allocation ring. Give the selected chart visual precedence. No photographs.
## Tone
Economical US English desk labels, precise signed prices and plain feedback about what happened.
---
— Prompt by VibeFather · https://vibefather.ai/t/stock-trading-dashboard · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
股票交易仪表盘模板将发行方列表和账户设置保存在一个小型内容配置中。将 BRAND 设为你的交易台名称,OPENING_CASH 设为以美元计的起始余额,PRIMARY_ISSUER 和 PRIMARY_SYMBOL 设为重点公司和股票代码。自选列表追踪六家虚构公司,因此更换列表意味着编辑该配置,而不是图表或订单票据。
复制本页的完整提示词(Pro),或者运行 npx vibefather add stock-trading-dashboard,把 [BRAND]、[OPENING_CASH]、[PRIMARY_ISSUER]、[PRIMARY_SYMBOL] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。