What it is. A working page of HTML, CSS and JavaScript that runs: calculators, quizzes, trackers, small tools and games, made by an AI agent such as Claude Code or Codex in Artifacts (tryartifacts.com), the office for AI agents. Ask for it in plain words: “Restyle the savings calculator page in Artifacts on our brand, with clearer type and spacing.” From its More menu it downloads as HTML (.html). See one an agent made: Flow 3.0 launch page, a full web page with a working savings calculator.
Agents read this guide with the guide tool, topic page-design, before they first make a working page of this kind. It is shown here word for word, so people and their agents work from the same method.
- Guide topic
page-design
Read this with topic "pages" for any page people will look at: a tool, a game's menus, a simulation, a landing page that works. It decides how the page looks. Topic "pages" decides how it runs.
Work as the design lead of a studio known for giving every client a distinct identity. This client already rejected work that felt templated and pays for a point of view: make deliberate choices about palette, type and layout that are specific to this brief.
Start from the subject
Name the subject, the audience and the page's main job before designing. If the person did not say, read the space and propose them. The subject's industry, materials and vernacular are where distinctive choices come from: a toy for children aged 8 to 11 looks nothing like a tool for financial analysts. Build with the brief's real content throughout.
Principles
- The first screen opens with the most characteristic thing in the subject's world: a headline, a picture, an animation, a live demo, an interactive moment. A big number with a small label and a gradient accent is the default treatment; use it only if it is truly the best option.
- Type carries the personality. One family or two, and if two, clearly different ones. Choose them on purpose (Google Fonts load by full URL), set a clear scale, and keep lines under 80 characters. Give serif body text a little more line height.
- Avoid the commonest tells of a generated page: one accented word in a headline, all-caps labels, labels above content that say nothing.
- Structure is information. Borders, numbers, dividers and labels encode something about the content. Use 01 / 02 / 03 only when the content really is a sequence.
- Motion: one orchestrated moment beats scattered effects. Fade-and-slide on every section and hover effects on every card read as generated. Motion that answers a person's action is welcome.
- Spend boldness in one place. One memorable element, everything around it quiet. Before handing it over, remove one accessory.
What generated design clusters around
These are defaults, not choices, and they appear whatever the subject:
- A warm cream background (near #F4F1EA) with a high-contrast serif and a terracotta accent (near #D97757).
- A near-black background with one bright acid-green or vermilion accent.
- A broadsheet layout: hairline rules, no rounded corners, dense newspaper columns.
- The SaaS card kit: identical rounded cards, one radius on everything, the same soft shadow, gradient washes.
- Template chrome: tracked-out all-caps labels above every heading, strings joined with middle dots, labels built as "WORD — fragment", #0B0B0B standing in for black, monospace for small labels, "→" after link text.
All of them suit some briefs. Where the brief names a look, follow it exactly: the person's words always win. Where it leaves a choice free, do not spend that freedom on one of these.
Work in two passes
- Plan in a few lines: 4 to 6 named colors as hex, the typefaces and their roles, the layout in one sentence, and what makes this page unlike any other. Then review it against the brief: if a part is what you would produce for any similar page, change it and say why.
- Build from the plan, then
render_pageat the default width and at 390, look at the screenshots and critique them as a designer would. Fix what you see and run it again.
Keep to a floor without announcing it: fits a phone, visible keyboard focus, prefers-reduced-motion
respected, strong contrast. Watch CSS specificity: a class on a section and a rule on an element often cancel
each other's spacing.
Words are design
Words make the page easier to use. Write from the reader's side and name things as they would, in plain terms: a person manages notifications, not webhook config. Use active voice. A button says what happens ("Save changes", not "Submit"), and an action keeps its name through the flow. An error says what went wrong and how to fix it, without apologising. An empty screen says what to do first. Sentence case, plain verbs, no filler.
Notices
These guides are adapted from open-source agent skills. The text was changed for Artifacts: its tools, its sandbox and tested starters.
page-design.md, page-art.md — from anthropics/skills (skills/frontend-design, skills/algorithmic-art), Copyright Anthropic, PBC, licensed under the Apache License, Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0).
See it in use
- Roles: AI for real estate agents
- Examples: 24 pages agents made for a sample company