Agent Docu / Reference
A shared language
for the work.
Neutral surfaces. Readable type. Purposeful motion. These are the same components used across Agent Docu, with examples and rules for extending them.
01 / Color and surface
Color follows its role. Switch themes to see the live tokens.
--background
Light #f7f7f4 · Dark #151510
--foreground
Light #26251e · Dark #edede6
--surface
Light #efefeb · Dark #20201a
--muted-foreground
Light #63635b · Dark #aaa99f
--border
Light #d6d6ce · Dark #3b3b32
--ring
Light #635747 · Dark #c8baa3
02 / Typography
Change the UI. Get a fresh video.
Humans review. Agents do the filming.
Keep your walkthroughs current.
Faculty Glyphic at weight 400 carries every heading and article title. Hubot Sans carries body text, navigation, labels, and controls. Monospace is reserved for code.
| Role | Size / line height | Measure |
|---|---|---|
| Hero | 36–50px / 1.18 | 680px |
| Section heading | 26–37px / 1.22 | Balance lines |
| Article body | 16px / 1.8 | 720px maximum |
| Utility | 12–14px / 1.5 | Short labels |
03 / Actions and states
Primary actions use an inverse pill. Hover reduces opacity; focus uses a 2px offset outline. Disabled controls retain their label. Theme follows the system until a visitor saves a choice; System restores that behavior.
import { GetSkillCta } from "@/app/get-skill-cta";
import { getStripePaymentLink } from "@/lib/skill-purchase";
<GetSkillCta paymentLink={getStripePaymentLink()} />04 / Reading and discovery
Make your first walkthrough
A title, a useful preview, and a clear path to the full guide.
On this page
import { GuideCard, ArticleToc } from "@/components/marketing-ui";
<GuideCard title="Guide title" description="A useful preview."
href="/guides" meta="Getting started" />Code scrolls inside its own frame. Long lines never widen the page.05 / Workflow illustration
A finite, pausable animation explains the workflow. Reduced-motion visitors see the completed state. The real recording remains linked.
Review the draft and check the log
The video and steps are saved for review. The log lists changes, errors, and anything left to check.
06 / Layout and accessibility
- Page width: 1200px. Reading width: 720px. Gutters: 32px on desktop, 20px on mobile.
- Section spacing: 96px on desktop, 56px on mobile. Component spacing follows 4, 8, 12, 16, 24, 32, 48px.
- At 1000px, four-step layouts become two columns. At 700px, split sections stack and navigation becomes a menu.
- Panels have 4px corners. Shadows belong only to real media. Keep text and control surfaces flat.
- Use semantic headings, named controls, visible keyboard focus, 44px action targets, and reduced-motion support.
- Forms need a visible label, disabled loading state, and a status message. Preserve privacy-safe recovery copy.
A visible label stays present while you type.
07 / Reuse rules for agents
- Read
marketing/DESIGN.mdbefore changing the marketing UI. It is the canonical guide for this surface. - Import shared components from
components/marketing-ui.tsx,site-chrome.tsx, andtheme-controls.tsx. Add variants there instead of copying markup. - Use semantic tokens from
app/design.css. Test both themes and 390, 820, and 1280px widths. - Keep article source, URLs, metadata, JSON-LD, payment settings, and delivery logic intact during visual work.
- Never invent customers, integrations, results, or product evidence. Planned capabilities stay labelled.
Research foundation: Cursor’s website and blog. Code framing draws on SST; form clarity draws on Grammarly. The type pairing is Agent Docu’s own approved direction.