# WTF DESIGN.md

> Public preview. The complete DESIGN.md source (all 91 design tokens, spacing, components and frontmatter) requires DesignMD Pro: https://www.designmdpro.app/pricing

A Material for MkDocs documentation theme in the slate (dark) colour scheme, tuned with an indigo primary and a deep-purple hero gradient, set in Roboto with Roboto Mono for code.

- Website: https://wtfutil.com
- Primary color: Blue `#4051B5`
- Fonts: Roboto, Roboto Mono
- Version: 1.0.0
- Details: https://www.designmdpro.app/websites/wtf

## Palette preview

- `accent`: `#526cfe`
- `primary`: `#4051b5`
- `surface`: `#2e303e`
- `on-accent`: `#ffffff`
- `on-primary`: `#ffffff`
- `on-surface`: `#e9ebfc`
- `primary-dark`: `#303fa1`
- `primary-deep`: `#3f0649`

## Typography preview

- `body-md`: Roboto
- `code-md`: Roboto Mono

---

## 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 `primary` and 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 `primary` on `surface` sit near 1.9:1, and the `accent` hover 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.
