WTF DESIGN.md 設計系統與風格指南
Developer ToolsProv1.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 variables、檢視元件 Token 引用關係,並下載完整原始檔。
設計指南
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 伺服器以 slug "wtf" 呼叫 get_design_md 工具以取得公開版本。完整 token 集合需訂閱 Pro。
將其儲存為專案根目錄中的 DESIGN.md
將檔案放在 AGENTS.md 或 CLAUDE.md 旁,讓 Claude Code、Cursor、Codex 與其他程式開發 Agent 能夠讀取。
請你的 Agent 遵循該規範
例如:「請依照 DESIGN.md 中的 WTF 設計系統建構設定頁面,使用其中的色彩、字型與間距 tokens。」
WTF 風格 AI 提示詞
請依照 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 提示詞產生器中自訂 →常見問題
WTF 的主色是什麼?
WTF 的品牌主色為 藍色(#4051B5),其 DESIGN.md 共定義了 14 個色彩 tokens。
WTF 使用什麼字型?
WTF 的主要字型為 Roboto 與 Roboto Mono。
Roboto 是免費字型嗎?
是的。Roboto 是免費開源字型,可在 Google Fonts 上取得。
如何在 Tailwind CSS 或 shadcn/ui 中使用 WTF 的 design tokens?
本頁已公開 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 擷取自公開網站,僅供參考。