GuideBoth sides of AFD

Site style guide.
Decisions, not decoration.

Every value on the AFD sites comes from css/tokens-m2.css. This page reads those tokens live and draws every sample with the real classes, so it can't drift. The reasoning behind them lives in the agent skill at .claude/skills/afd-site-design/.

A working page for the site's design, not part of the site. Search engines are asked not to index it.

Two sides

AFD has two sites that share one wordmark, one type system and one set of tokens. What changes is the colour a page opens on. A tool's page has the same address on both sides, and the switch in the nav goes between them.

afd.dev

Development

Opens on red, the colour of a person and the UI. It shows commands, code and packages.

afd.design

Design

Opens on mint, the colour of an agent. It shows what a person sees and what an agent is told.

Section fields

Each colour field has one job. The hero's colour appears once as a hero. Cream rests sit between colour fields so the page never runs two loud fields, or two light ones, back to back.

Signal

A dev-side hero only. The single loudest statement on the page.

--field-signal

Rule

The one-line slab. A step lighter than signal; never on screen with the hero.

--field-rule

Agent

A design-side hero, and any section that is about the agent. Mint always means agent.

--field-agent

Deep

The agent at work, packages and the foot of a page.

--field-deep

Ink

Live demos, proof and the finale.

--field-ink

Rest

Cream breathing room. No numeral: rests stay quiet.

--field-rest

Type ramp

Eight shared steps, plus sizes for the honesty statement and closing command. Archivo Black carries statements, Space Grotesk carries reading and the thin half of each statement, IBM Plex Mono carries labels and code, and Inter carries the interface: navigation, buttons, fields, tabs and chips (--font-ui). A size between two steps is a fraction of a step, never a new pixel value: a home page's poster line is four fifths of display, and a long tool name is 0.82 of it.

Commands
Via CLI
afd call
Access isn't enough.
A pause before the point of no return.
An agent deserves the same care in its command contract.
Named capabilities, typed inputs and explicit prerequisites.
This caller asks before execution.
npm install @lushly-dev/afd-server @lushly-dev/afd-cli zod
Design for the agent

The statement

Section headlines pair a heavy line with a thin one at the same size: the claim, then its turn. The thin line sits in a direct child <span> of the h2.

Access isn't enough.
Agents need good UX.

Heroes

Someone who lands on a page should know what it is before they scroll. A home page keeps its poster line and adds a definition, the way in and three facts. A tool's page opens on a product hero: the name, one line that says what kind of thing it is, a description of 15 to 35 words, the way in, one small picture as proof, and three facts.

A tool's page

Agent-First Development / Violet Preview, on npm

Violet

A design token engine.
Every change is a command.

Violet keeps a design system's tokens on one tree, where each theme stores only what it changes. The CLI, the MCP server and your own code all call the same commands.

npm install --save-dev @lushly-dev/violet-cli@preview

What the proof isHow many

One picture, drawn by the tool itself: a tree, a result, a capture. Whatever shows the tool working.

What that shows One sentence, read from the same run as the picture.

A count
Something a reader can check: how many commands, how many outputs.
A way in
Where it runs, or who can call it.
A difference
The one thing it does that the alternatives don't.

A home page

The poster line stays, at four fifths of display above 850px. Under it: the name in bold and what it is, the way in, and the same three-facts strip. No proof figure. Only a home page keeps crop marks. Neither hero uses the thin slash, which would run through the facts.

Section anatomy

A figure label opens every numbered section. Colour fields carry a giant tone-on-tone numeral, bottom right (bottom left when a panel fills the right). Crop marks frame posters and live stages. Stamps confirm a result.

Fig. 03Design for the agent
Via CLI

Marks

A mark is a small label on a fact: a status, a result, where the fact came from. Its weight says how much stands behind the word, the same way on every page. Red and mint keep their meanings, so a mark is never mint, and the only red one is the alert.

Verified

Proven, or complete. A check ran and held.

data-mark="solid"
Observed

Seen, or partly there.

data-mark="outline"
Declared

Stated but not run, or not available.

data-mark="dashed"
Authored

Someone's word. Nothing checks it.

data-mark="plain"
Undeclared

Needs a decision. A build would stop here.

data-mark="alert"

Controls

Things you press or type into are rounded (--radius-control; small marks --radius-mark), and panels a step more (--radius-panel). Edges come from surfaces and shadows, not outlines: filled buttons are keys, outline buttons are tonal keys, fields are wells and panels float. Posters, colour fields, figure chips and crop marks stay square.

Chips pick one of a few; tabs switch what a panel shows

Parts a tool's page shares

A tool's page is not built from a template: each gets the sections its tool needs. Some parts recur, and those live once in css/area-kit.css. Anything only one tool needs stays in that tool's stylesheet.

The package layers, endpoints on top

Endpoints

tool-cli

What a person types.

tool-server

What an agent calls.

Foundation

tool-core

The engine, which needs nothing above it.

Steps: a short process, in order

  1. Step 1

    An agent proposes

    One sentence on what happens, and what does not.

  2. Step 2

    A person reads it

    Three or four steps at most. More than that is a list.

  3. Step 3

    A person decides

    If the page cannot run the process, a line under it says so.

A recorded run: pick a line, read what came back

For a tool that cannot run in a tab (Umbel is a native program, Botcore is Python). The page shows one real run, recorded by a build script and never edited: a button for each line, then that line, exactly what the tool printed, and one sentence on what to notice. The sentence's words are the page's; every number in it is read from the result. A line under the figure says when it was recorded, from which version, and links the whole record.

$ tool listexit 0
{ "success": true, "data": { "total": 3 } }
3 in all. The sentence says what to notice; the figure comes from the result.

Recorded on 17 November 2026 from tool 0.1.0. The whole recorded run

The foot: how to start, and where it stands

Start with the smallest thing.

One sentence on the first step, then the line to copy.

npm install --save-dev @lushly-dev/tool-cli@preview
Status

Preview. Say plainly what is released, what is not, and what it does not do yet. This block is where a page is most honest.

Running text

A last line of one word reads as a mistake. Paragraphs, list items and captions use text-wrap: pretty, and js/widows.js ties the last two words together in a browser that lacks it. Display type is exempt: there, one word on the last line is the design.

A hyphenated name goes in <span class="keep">, so FAST-AF never ends a line on FAST-.

Without the rule

Compare two versions and you see exactly what it was that changed.

With it

Compare two versions and you see exactly what it was that changed.

Words

The pages argue that nothing should be claimed that can't be shown. The copy follows the same rule.

Do

  • Say what kind of thing it is in the first screen: "A design token engine."
  • Read every number on the page from a run. If the tool changes, the page changes with it.
  • Open a status with its ladder word, then where it is: "Preview, on npm".
  • Label a fact by where it came from, and say what the tool does not do yet.
  • Run the real tool in the page. Where part of it can't run in a browser, say which part.

Don't

  • Open a tool's page with a slogan and make the reader scroll to learn what it is.
  • Use a status word outside the ladder (Stable, Beta, Preview, In development, Internal).
  • Type a result into the page, or draw a demo that only looks live.
  • Show two things that look identical without saying why they are being shown.

Palette primitives

The raw palette (--afd-*). Section and component CSS reaches for semantic tokens first; primitives are for component-internal detail with no role of its own.

Space

A nine-step scale, plus --section-pad for supporting sections, --statement-pad for major story beats and --heading-gap below each headline.

Motion

Motion marks a moment; it never runs continuously behind reading.

Do

  • Light a statement word by word as it scrolls in (data-lit), on at most three statements per page.
  • Stamp a <mark> once its statement is fully lit.
  • Animate one-time entrances (the hero slash) with --motion-enter and --ease-out.
  • Give every animation a static state under prefers-reduced-motion.

Don't

  • Loop motion behind text people are reading.
  • Hide content with opacity alone; use hidden or inert.
  • Animate layout properties; stick to transform and opacity.
  • Add a second bright-red field, a second light-up per section, or drafting grids.