WTF DESIGN.md 设计系统与风格规范
Developer ToolsPro 专属v1.0.0 (最新)A personal information dashboard for your terminal, documented on a Material for MkDocs site with an indigo header and a deep-purple hero gradient.
当前可免费阅读 WTF 的完整设计叙述与最多 8 色主色板。升级 Pro 即可获取全部 91 个设计 Token、完整 DESIGN.md 源码下载及 1 个历史版本。
升级 DesignMD Pro,复制全部颜色的 :root CSS 变量、查看组件配色引用并下载完整源文件。
设计规范
Overview
WTF's documentation site is a stock Material for MkDocs build with a hand-written landing page dropped on top, and the two halves have noticeably different personalities. The docs themselves are calm, dark and text-first: a slate-navy canvas, a single indigo header, generous 16px body copy and a left rail of module links that reads like a terminal's menu. The homepage is the loud half — a full-bleed indigo-to-deep-purple gradient, a bold 700-weight headline, two pill-free rectangular CTAs and a screenshot of the actual terminal dashboard rendered as a product shot. The audience is developers who already live in a terminal, so the site leans on monospace code blocks, command-line snippets and a dark surface rather than illustration or photography. Density is high but evenly spaced; nothing overlaps, and the only ornament is the white wave that slices the bottom of the hero.
Colors
primary (#4051b5) is the Material "indigo" primary and the single loudest colour on the docs pages: it fills the header bar and the tab strip, colours in-body links, and backs primary buttons. Its light and dark steps (#5d6cc0, #303fa1) are used for the source/repository chip in the nav and for hover states. primary-deep (#3f0649) is the site's own --wtf-primary-color: the bottom stop of the homepage gradient and the text colour of the hero's filled button. accent (#526cfe) is the interaction colour — every button, link and icon turns accent on hover or focus. surface (#2e303e) is the slate page background; surface-sunken (#21222c) is the darker recess used for code blocks and the search dialog; surface-footer (#1a1b23, drawn at 87% opacity) sits below it. Text runs in on-surface (#e9ebfc) for body copy, on-surface-muted (#d2d7f9 @0.62) for page titles and secondary labels, and on-surface-faint (#d2d7f9 @0.32) for passed nav items and heading anchor links. Hairlines are never a solid colour: dividers, table rules and card edges are surface-hairline at 12% opacity. The light scheme (white #ffffff surface, rgba(0,0,0,.87) text) exists behind the header's theme toggle but is not the default.
Typography
Roboto carries everything; Roboto Mono carries only code. Roboto is loaded from Google Fonts at 300, 400 and 700 with font-display: fallback, and the fallback stack is -apple-system, system-ui, Helvetica, Arial, sans-serif. The scale is Material's 1.2500 minor-third, rooted at 16px: h1 at 2em (32px) in weight 300 with -0.01em tracking, h2 at 1.5625em (25px/300), h3 at 1.25em (20px/400), h4 at 1em (16px/700), h5/h6 at 0.8em (12.8px/700, h5 uppercased). Line heights are tight and fixed at 1.3/1.4/1.5 — never unitless defaults. The one exception is the homepage hero, whose h1 is flipped to weight 700 and inherits the hero's white. Body paragraphs sit at 16px/1.6, nav and footer links at 14px/1.3, and inline code at 0.85em (13.6px) on a surface-sunken chip with a 2px radius.
Layout
The shell is a fixed 48px indigo header with a second tab strip beneath it, then a two-column body: a primary sidebar of module links on the left, content in the middle, and a "Table of contents" rail on the right. The content column is capped at 1220px with 12.8px (0.8rem) gutters and 12.8px side margins, so the measure stays around 68 characters. Vertical rhythm comes from a 4px base unit — 4, 8, 12, 16, 24, 32, 40, 60 — and headings reserve their own space with em-based margins (h2 1.6em 0 .64em, h3 1.6em 0 .8em) rather than utility classes. On the homepage the sidebars are hidden above 76.25em and the hero becomes a flex row: copy on the left capped at 30rem, the terminal screenshot floated right at 20rem. Below 70em the hero collapses to a single centred column with a 1.4rem headline and a 15rem image.
Elevation & Depth
Depth is almost entirely flat. The slate theme's only real shadow is the two-layer 0 0.2rem 0.5rem rgba(0,0,0,.2), 0 0 0.05rem rgba(0,0,0,.1) that Material applies to the header, and on the dark background it reads as a soft separation rather than a lift. Cards, panels and the search dialog are separated from the page by their own darker background plus a 12%-opacity hairline, not by a shadow. The single exception is the floating search dialog, which carries 0 4px 10px rgba(0,0,0,.4), 0 0 1px rgba(0,0,0,.35) so it clearly floats above the content. The homepage hero gets its sense of depth from the gradient itself plus the white wave silhouette at the bottom edge, which is an inline SVG path rather than a border or shadow.
Shapes
Corner radii are deliberately near-square: the theme's 0.1rem resolves to a measured 2px on buttons, code chips, inputs and cards, and everything else — the header, the tab strip, the footer, the sidebar — is a hard 0px. The only round shapes in the system are the 100%-radius circular icon buttons used for nav toggles and the tabbed-set pager, which are the one place a pill silhouette appears. Nothing is fully rounded; there are no pill CTAs and no large-radius cards. Combined with the 2px hairline borders and the 1.6px button outlines, the overall read is technical and squared-off rather than friendly.
Motion & Micro-interaction
Motion is short, colour-led and functional. The default interaction transition is color, background-color, border-color over 125ms on an ease curve — that is what buttons, links, nav items and table rows all use, so the whole site changes state in a single consistent beat. Fades and opacity changes take 250ms. The mobile navigation drawer slides in over 250ms with cubic-bezier(.8,0,.6,1) out and cubic-bezier(.4,0,.2,1) back, with opacity delayed by 50–125ms so the panel appears to settle. The header title swap on scroll is the only long animation: 400ms cubic-bezier(1,.7,.1,.1) on transform paired with a 150ms opacity fade. The tabbed-set indicator slides with a 225ms width plus 250ms transform. Everything is disabled under prefers-reduced-motion: reduce via a global transition: none !important.
Voice & Content Strategy
The copy is plain, technical and second-person, written by the maintainer rather than a marketing team. Sentences are short declaratives with no exclamation marks and no superlatives, and technical nouns are always linked inline on first mention — "Oversee your services with Airbrake. Keep an eye on your OpsGenie schedules, Google Calendar, Git and GitHub repositories. Track your deployments via New Relic." and "See who's away in BambooHR, which Jira tickets are assigned to you, and what time it is in Barcelona. And dozens more." Imperatives are the CTA grammar throughout: "Quick start", "Modules", "See Installation to get started", "Type to start searching". The one piece of personality is the announcement bar, which uses the project's own name as a joke — "We're changing our name! Stay tuned to hear more about our new name Tessera!" Section titles are sentence case and noun phrases ("Configuration Files", "Command-line Options", "Keyboard Commands"), and body copy spells out paths in full (~/.config/wtf/config.yml) rather than abbreviating them.
Components
Buttons (.md-button) are 50px tall, 2px-radius rectangles with a 1.6px border, 10px vertical and 32px horizontal padding, and 16px/700 Roboto. The primary variant is filled primary with white text; the secondary variant is transparent with a white outline and on-surface text, used as the hero's "Modules" action. On hover or focus both flip to an accent fill, and the hero's filled button swaps from white-on-deep-purple to accent-on-surface.
Header / nav is a 48px primary bar holding the logo, the site title at 0.9rem, a theme toggle, a 36px search input and a repository chip that shows the version, star count and fork count. The active nav item is accent; inactive items are white at full strength. A second primary tab strip sits directly beneath and repeats the top-level sections.
Search input is a borderless 36px field that inherits the header's indigo, with a leading magnifier icon and a placeholder that reads "Search". Its dropdown dialog is surface-sunken with a 12%-opacity meta strip.
Cards on the homepage ("Sponsored by") are surface panels with a 2px radius, 16px padding and a hairline edge; each holds a sponsor logo, a wordmark and a short descriptor. In the docs, the equivalent container is the admonition, which is a surface block with a coloured left border and a 10%-tint title bar.
Code blocks are surface-sunken panels with a 2px top radius, 12.4px/18.4px padding, Roboto Mono at 0.85em, and a copy button that is invisible until hover. Inline code is the same font on a 2px-radius chip.
Footer is a surface-footer band (87% opacity over the page) with white text at 0.64rem for the copyright line and a three-column link list above it.
Do's and Don'ts
- Do keep the indigo header and the slate body as the only two large colour fields; never introduce a third full-bleed background outside the homepage hero.
- Do use
accent(#526cfe) for every hover, focus and active state — it is the site's single interaction colour and should not be substituted. - Do set in-body links to
primaryand headings to weight 300 with -0.01em tracking; don't bold section headings or let tracking go positive. - Don't add shadows to cards, panels or tables — separate them with the 12%-opacity hairline or a darker background instead.
- Don't round corners beyond 2px; the only circular elements are the icon toggles, and pill buttons would break the terminal-tool character.
- Don't lengthen the 125ms state transition — the site's calm comes from every control answering in the same single beat.
- Do write UI copy as short second-person imperatives ("Quick start", "See Installation") and link technical nouns inline on first mention.
- Don't lighten the low-contrast pairs without flagging them: body links at
primaryonsurfacesit near 1.9:1, and theaccenthover fill with white text sits near 4.3:1 — both are the shipped values and any change should be a deliberate contrast fix, not an accident. - Don't let the homepage hero's gradient drift from indigo → deep purple → white; the 99% stop and the white wave at the bottom edge are what tie it back to the light content below.
- Do keep the 4px spacing base and the 1220px content cap; arbitrary 5px/10px/15px values and wider measures both read as off-system.
如何在 AI agent 里使用 WTF 的 DESIGN.md
获取 WTF 的 DESIGN.md
请求 https://www.designmdpro.app/websites/wtf.md,或通过 DesignMD Pro MCP 服务器调用 get_design_md 工具(slug 为 "wtf"),即可获取公开版本;完整 tokens 需要 Pro。
保存为项目根目录下的 DESIGN.md
把文件放在 AGENTS.md 或 CLAUDE.md 旁边,Claude Code、Cursor、Codex 等编码 agent 就能读到它。
让 agent 按它来写
例如:“按照 DESIGN.md 里的 WTF 设计系统实现设置页,使用其中的颜色、字体和间距 tokens。”
WTF 风格 AI Prompt
参照 WTF(wtfutil.com)的 DESIGN.md 设计系统,用它的视觉风格构建一个响应式落地页。
## 配色
- accent: #526CFE
- primary: #4051B5
- surface: #2E303E
- on-accent: #FFFFFF
- on-primary: #FFFFFF
- on-surface: #E9EBFC
- primary-dark: #303FA1
- primary-deep: #3F0649
## 字体
- body-md: "Roboto", 16px, weight 400, line-height 1.6
- code-md: "Roboto Mono", 13.6px, weight 400, line-height 1.4
## 圆角
- sm: 2px
- full: 9999px
- none: 0px
## 规则
- 背景、文字、边框和强调色只使用上面列出的颜色,不要自创新颜色。
- 所有文字都使用上面的字体样式,并保持它们的字号与字重层级。
- 圆角和间距取自上面的尺度,让各组件保持一致。
完整 DESIGN.md:https://www.designmdpro.app/websites/wtf.md在 V0 Prompt 生成器中自定义 →常见问题
WTF 的主色是什么?
WTF 的品牌主色是蓝色(#4051B5),其 DESIGN.md 共定义了 14 个颜色 token。
WTF 用的是什么字体?
WTF 的主要字体是 Roboto 和 Roboto Mono。
Roboto 是免费字体吗?
是的。Roboto 是免费开源字体,可在 Google Fonts 获取。
如何在 Tailwind CSS 或 shadcn/ui 中使用 WTF 的设计 token?
本页公开了 WTF 的主色 #4051B5。生成完整的 Tailwind 或 shadcn 主题需要完整的 DESIGN.md,可通过 DesignMD Pro 获取。
这份 WTF DESIGN.md 是官方的吗?
不是。这份文件由 DesignMD Pro 从 wtfutil.com 的公开页面提取,与 WTF 无关联,也未获其认可。
WTF 的 DESIGN.md 最近一次更新是什么时候?
当前版本 1.0.0 提取于 2026年11月28日。
WTF 及其商标归各自所有者所有。DesignMD Pro 是独立项目,与 WTF 无任何关联,亦未获其认可;本 DESIGN.md 提取自其公开网站,仅供参考。