跳至主要内容
WoofJS

WoofJS DESIGN.md 设计系统与风格规范

Developer ToolsPro 专属v1.0.0 (最新)
woofjs.com•关联于 2026年11月27日 04:00•审核 Bestony

A single-screen landing page for a Scratch-inspired JavaScript library — a monospace code sample with real syntax highlighting on white, and three candy-colored pill buttons as the entire interface.

Pro 专属网站

当前可免费阅读 WoofJS 的完整设计叙述与最多 8 色主色板。升级 Pro 即可获取全部 51 个设计 Token、完整 DESIGN.md 源码下载及 1 个历史版本。

显示 8 / 11 个颜色
深色 (0%)
Aa 示例文字#000000
code
rgb(0, 0, 0)
深色 (40%)
Aa 示例文字#1CB9D6
number
rgb(28, 185, 214)
深色 (14%)
Aa 示例文字#A70CE2
string
rgb(167, 12, 226)
深色 (22%)
Aa 示例文字#808080
comment
rgb(128, 128, 128)
深色 (8%)
Aa 示例文字#2A00FF
keyword
rgb(42, 0, 255)
深色 (18%)
Aa 示例文字#767676
outline
rgb(118, 118, 118)
浅色 (50%)
Aa 示例文字#6FCF97
primary
rgb(111, 207, 151)
浅色 (100%)
Aa 示例文字#FFFFFF
surface
rgb(255, 255, 255)
获取完整色板、CSS 变量与 DESIGN.md 源码

升级 DesignMD Pro,复制全部颜色的 :root CSS 变量、查看组件配色引用并下载完整源文件。

设计规范

Overview

WoofJS is a Scratch-inspired JavaScript library for making games, aimed at beginners and classrooms. The entire homepage is one screen: a commented-out code sample at the top that doubles as the welcome message, and three pill buttons at the bottom. There is no navigation, no hero image, no footer copy — the code sample is the hero, and it literally greets you ("// Hey there, welcome to WoofJS!").

The design is the smallest possible expression of the product: white space, monospace type, and three flat candy colors. It reads as a teaching tool that is confident enough to show its own source before asking for anything.

Colors

  • primary #6fcf97 — mint green, the lead "Start Coding" button.
  • secondary #56ccf2 — sky blue, "For Educators".
  • tertiary #ca65e6 — orchid, "Project Showcase".
  • on-primary #ffffff — the label on all three buttons; the three fills are the only saturated color on the page.
  • code #000000 — plain code text.
  • comment #808080 — the gray of // comment lines, which carry all of the page's prose.
  • string #a70ce2 — string literals ('seconds').
  • number #1cb9d6 — numeric literals (.001).
  • keyword #2a00ff — language keywords and member access (var, circle.mov).
  • surface #ffffff — the entire page ground.
  • outline #767676 — the input border on the share/email control.

The syntax palette is the site's only real color system: five token colors doing the job a brand palette usually does. The three button colors are unrelated to the code colors on purpose — they are navigation, not content. The social share rail on the left edge carries the standard third-party brand colors (Facebook blue, Pinterest red, X black) and is not part of this system.

Typography

Two families, split by role. Everything in the code sample is Consolas over the Monaco/Andale Mono/Ubuntu Mono stack, set at 22.4px/400 on a 1.3 line height — large enough that the syntax colors read at a glance, with keywords and strings picked out by color alone. The three buttons are Arial at 24px/400, and the small "10 Shares" label and share controls use Helvetica Neue at 16px/400. There is no bold, no uppercase and no tracking anywhere; the monospace/sans split is the entire typographic hierarchy.

Layout

A single full-viewport column, left-aligned with generous margin. The code block runs down the left third of the page, comments and statements alternating with blank lines exactly as they would appear in an editor. A vertical share rail is pinned to the left edge — a "10 Shares" count above four square icon buttons (Facebook, X, Pinterest, email). The three CTA pills sit alone on a row near the bottom, centered, with wide gaps between them. Nothing else competes for attention.

Elevation & Depth

Completely flat. There are no shadows in the captured styles — not on the buttons, the share rail or the input. The buttons are pure fills on white, and the share rail separates itself only by its position at the page edge. The flatness suits the content: the page is a screenshot of an editor, and editors have no depth.

Shapes

One radius, used once: 20px, turning all three buttons into full pills. Everything else on the page is square — the code block has no container at all, and the share icons are plain squares. The pills are the only shaped objects, which is why they read as the only interactive ones.

Motion & Micro-interaction

There is no motion. The captured styles contain no transitions, no animations and no transforms — buttons do not darken, lift or scale on hover in any captured rule. For a page this small, that is a feature: nothing moves until you click.

Voice & Content Strategy

The voice is the product's own. The headline is a code comment, the tagline is a code comment, and the invitation is a code comment ("// Want to code something together? :-)"). The sample itself is a complete, runnable idea — spawn a circle every millisecond and move it forever — with its own inline commentary ("// Go, little circles, go!"). The three buttons name their audiences plainly: Start Coding, For Educators, Project Showcase. There is no marketing sentence anywhere on the page.

Components

  • Code sample — Consolas 22.4px/400 on a 1.3 line height, comments in #808080, strings in #a70ce2, numbers in #1cb9d6, keywords in #2a00ff, plain code in #000000, on the bare white ground with no container.
  • CTA pill — a 20px-radius pill in one of the three flat colors with white Arial 24px/400 text and ~10px padding: primary green ("Start Coding"), secondary blue ("For Educators"), tertiary orchid ("Project Showcase").
  • Share rail — a left-edge vertical stack: a "10 Shares" count in Helvetica Neue 16px above four square brand-color icon buttons (Facebook #3b5998, X #000000, Pinterest #cb2027, email #aaaaaa).
  • Text field — a 30px white input with a #767676 border and the same 20px pill radius, set in Consolas 13.3px.

Do's and Don'ts

  • Do set all code in Consolas at 22.4px and let the five syntax colors carry the hierarchy; don't bold or uppercase code.
  • Do keep comments in #808080 — they are the page's only prose, and their grayness is what makes the colored tokens pop.
  • Do keep the three buttons as the only saturated shapes, in their fixed order and colors (green, blue, orchid); don't add a fourth or reorder them.
  • Do keep the page flat — no shadows, no transitions, no hover states in the captured styles; don't add lift or motion to the pills.
  • Do keep the 20px pill radius on buttons and inputs only; don't round the code block or the share icons.
  • Do leave the social rail's brand colors alone — they belong to Facebook, X and Pinterest, not to this system.
  • Don't treat the white-on-color button labels as accessible small text — white on primary green measures 1.90:1, on secondary blue 1.86:1 and on tertiary orchid 3.22:1, so the labels stay at the 24px Arial scale; and the cyan number token on white is 2.34:1, so keep syntax colors to code display rather than UI text.

如何在 AI agent 里使用 WoofJS 的 DESIGN.md

  1. 获取 WoofJS 的 DESIGN.md

    请求 https://www.designmdpro.app/websites/woofjs.md,或通过 DesignMD Pro MCP 服务器调用 get_design_md 工具(slug 为 "woofjs"),即可获取公开版本;完整 tokens 需要 Pro。

  2. 保存为项目根目录下的 DESIGN.md

    把文件放在 AGENTS.md 或 CLAUDE.md 旁边,Claude Code、Cursor、Codex 等编码 agent 就能读到它。

  3. 让 agent 按它来写

    例如:“按照 DESIGN.md 里的 WoofJS 设计系统实现设置页,使用其中的颜色、字体和间距 tokens。”

WoofJS 风格 AI Prompt

参照 WoofJS(woofjs.com)的 DESIGN.md 设计系统,用它的视觉风格构建一个响应式落地页。

## 配色
- code: #000000
- number: #1CB9D6
- string: #A70CE2
- comment: #808080
- keyword: #2A00FF
- outline: #767676
- primary: #6FCF97
- surface: #FFFFFF

## 字体
- body-md: "Helvetica Neue", 16px, weight 400, line-height 1.5, letter-spacing 0em
- code-lg: "Consolas", 22.4px, weight 400, line-height 1.3, letter-spacing 0em
- label-lg: "Arial", 24px, weight 400, line-height 1.2, letter-spacing 0em

## 圆角
- sm: 20px

## 规则
- 背景、文字、边框和强调色只使用上面列出的颜色,不要自创新颜色。
- 所有文字都使用上面的字体样式,并保持它们的字号与字重层级。
- 圆角和间距取自上面的尺度,让各组件保持一致。

完整 DESIGN.md:https://www.designmdpro.app/websites/woofjs.md
在 V0 Prompt 生成器中自定义 →

常见问题

WoofJS 的主色是什么?

WoofJS 的品牌主色是翠绿(#6FCF97),其 DESIGN.md 共定义了 11 个颜色 token。

WoofJS 用的是什么字体?

WoofJS 的主要字体是 Helvetica Neue 和 Consolas。

Helvetica Neue 有什么免费替代字体?

Helvetica Neue 是商用字体,Google Fonts 上的相近免费替代有 Inter 和 Arimo。

如何在 Tailwind CSS 或 shadcn/ui 中使用 WoofJS 的设计 token?

本页公开了 WoofJS 的主色 #6FCF97。生成完整的 Tailwind 或 shadcn 主题需要完整的 DESIGN.md,可通过 DesignMD Pro 获取。

这份 WoofJS DESIGN.md 是官方的吗?

不是。这份文件由 DesignMD Pro 从 woofjs.com 的公开页面提取,与 WoofJS 无关联,也未获其认可。

WoofJS 的 DESIGN.md 最近一次更新是什么时候?

当前版本 1.0.0 提取于 2026年11月27日。

WoofJS 及其商标归各自所有者所有。DesignMD Pro 是独立项目,与 WoofJS 无任何关联,亦未获其认可;本 DESIGN.md 提取自其公开网站,仅供参考。