What it is. Landing pages, app screens and other visuals on a design system, 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: “Design the launch campaign in Artifacts: a landing hero, three social posts and a phone screen.” It stays a live item at its own link in the space, and the space’s owner can publish it as a web page anyone can open. See one an agent made: Launch campaign design, heroes, social posts and phone screens.
Agents read this guide with the guide tool, topic design, before they first make a design. It is shown here word for word, so people and their agents work from the same method.
- Guide topic
design- Tools
- 10 tools
An Artifacts design is a canvas of artboards that a team opens from one link. Every artboard is a real HTML
page that people can click into, restyle in a properties panel, comment on and download. You build it
from four kinds of files, and you can see your own work with render_design.
The tools: create_design, read_design, write_design, edit_design, render_design, find_icons,
find_fonts, find_images, add_asset, capture_page, design_history, read_design_version, restore_design_version.
1. The files
| File | What it is |
|---|---|
tokens.json | The design system: colors (with a dark mode), fonts, type styles, spacing, radii, shadows. Every artboard gets it as CSS variables. |
components/<Name>.html | A reusable part (button, card, nav bar, pricing tier). Edit it once and every instance updates. Shown on the canvas to the left. |
<Name>.html | An artboard: a screen, a page, a poster, an ad. |
canvas.json | Where each artboard sits. Artifacts keeps it up to date for you: give each new artboard a board (size, kind) when you write it. |
Every file has a version. A write names the version it was based on (base_version, null for a new
file). If someone saved that file since, nothing is written and the error names the files to read
again. People edit while you work, so read before you change, and prefer edit_design (small,
targeted) over rewriting whole files.
Artboards: screen or page
- screen: a fixed frame, e.g. a phone app screen 390×844, a tablet 834×1194, a social post 1080×1350, a poster. The root element is exactly that size.
- page: a fluid web page (landing page, docs page, dashboard). Width 1280–1440. No fixed px width on the root: use a centred container with
max-widthand padding. Its frame'shis the page's full height —render_designtells you the real content height; set it. Addviewportsto show the same file at other widths beside it, e.g.[{"w": 834, "h": 3900}, {"w": 390, "h": 6200}], each with its own height. A page must work at 390px wide. - Do not use
vhunits in a page (its frame is the full page height, so100vhis the whole page). Use px or rem. theme: "dark"on a board or a viewport shows it with the tokens' dark values.
An artboard file
Rules:
- Static HTML and CSS only: no
<script>, noon…=handlers, nojavascript:links, no<iframe>. - Inline
style="…"is what people edit in the properties panel. Put each element's look there (layout, spacing, color, size). Use<style>for page basics,:hover, and@mediaoverrides — an override must say!importantto beat an inline style. - Prefer layouts that adapt by themselves:
display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)),flex-wrap: wrap,max-width,font-size: clamp(36px, 6vw, 64px). - Use the system:
var(--color-accent),var(--space-6),var(--radius-md),var(--shadow-md)and the type classes.text-display,.text-body… instead of raw values, so a token change restyles every artboard. - Fonts load by themselves: name a Google Fonts family in a font token or a
font-familyrule (find_fontslists families). Never<link>fonts yourself. - Real elements, even in a mockup:
<button>,<a href>,<input>with<label>,<nav>,<header>,<main>,<footer>, headings in order.alton every image (alt=""if decorative).
2. The design system: tokens.json
The W3C Design Tokens format (DTCG). Groups nest; a token is an object with $value and usually
$type; {group.name} refers to another token. Artifacts builds it with Style Dictionary:
color.accent → --color-accent, space.6 → --space-6, and a typography token text.h2 →
--text-h2 plus a class .text-h2 (font + letter-spacing). A token's dark value goes in
$extensions.modes.dark.
read_design returns the generated variables, so you can see every name. Change single tokens with
edit_design on tokens.json (set_token). Build the system first, from the subject and brand —
a new design starts with a neutral placeholder system; replace it. When the space has a brand
(get_space › brand), its colour, fonts and logo are the system's starting point.
3. Components
components/Tier.html is a full HTML file; its <body> holds one root element — the part every
instance renders. Holes are Mustache: {{title}} (escaped text), {{#items}}…{{/items}} (repeat a
list, or show when true), {{^featured}}…{{/featured}} (when false). Declare props on the root in
data-props (JSON): type text | color | image | link | number | boolean | list, plus a default
— people edit these in the panel. <style> in the component's <head> comes along to every board
that uses it (good for :hover).
An instance is <x-component name="Tier" title="Team" price="$12" featured="true" features='[{"text":"SSO"}]'></x-component>
(attributes are the props; a list or object is JSON). Its own style/class go onto the rendered
root. name, style, class, id and data-* are taken by the instance itself, so they cannot be props. Components can use other components. Make a component for anything that repeats — nav, buttons,
cards, list rows, tab bars — and keep one-off sections as plain markup.
- Lists: a component whose root is an
<li>goes straight inside<ul>/<ol>(<ul><x-component name="PlantRow" …></x-component></ul>). Renders and exports put the<li>directly in the list, so the list is read as a list. - One of several states (the active tab, a selected filter): Mustache only tests true/false, so pass
the value into an attribute and let CSS in the component pick it:
<nav class="tabs" data-active="{{active}}">…<a class="tab-today">…, with<style>.tabs[data-active="today"] .tab-today { color: var(--color-accent) !important; }</style>in the component's head; an instance saysactive="today". (!importantbecause the tab's own look is inline.)
4. Icons and images
- Icons:
<x-icon name="arrow-right" size="20"></x-icon>draws a Lucide icon incurrentColor(setcoloron it or its parent).stroke-width="1.5"thins it;label="Close"makes it a named image.find_iconssearches the 2,000+ names. No emoji as icons. - Images:
find_imagessearches openly licensed photos and illustrations (Openverse) — one or two plain words work best;add_assetstores an image from a URL (or base64) in the space and returns its/api/uploads/…URL forsrcorbackground-image. Credit the creator whencredit_neededis true. Without a fitting image, use a clear labelled placeholder box, or draw the product UI in HTML — never a random stock photo that says nothing. - References:
capture_pageshows a public web page (screenshots plus its measured fonts, sizes, colors by area, buttons and content width). Use it to match a brand the person names, or to study a style they point to. Learn from it; never copy another company's design.
5. Linking artboards
<a href="Pricing.html"> links one artboard to another: in Preview, people click through the flow.
A component's links work the same way.
6. See it, then fix it
render_design renders artboards in Chromium exactly as the canvas shows them and returns
screenshots plus problems found: things sticking out of the frame, text cut off, a page frame shorter
or taller than its content, broken images, fonts that did not load, text under 12px, small tap
targets, and WCAG failures from axe-core (contrast with the measured ratio, missing alt text, unnamed
buttons, heading order…). Each problem names a selector you can pass to edit_design.
Render after the first draft and after a big change. Look at the screenshots as a critic: alignment, rhythm, hierarchy, what the eye sees first. Fix, render again. Two or three rounds is normal.
7. Craft
Commit to one clear direction from the subject (who it is for, what they should do) and state it in a line. Then:
Type
- 1–2 families (a display face and a text face, or one family in several weights). Pair by contrast, not similarity.
- A scale with real jumps (e.g. 14 / 17 / 22 / 36 / 56–72 on desktop). Headlines get tight leading (1.0–1.15) and slight negative tracking; body 1.5–1.7.
- Body text 16–18px on the web, 15–17pt on phones. Lines of about 45–75 characters (Bringhurst, The Elements of Typographic Style):
max-width: 65chon paragraphs.
Space and layout
- One spacing scale on a 4/8px base (the 8dp grid in Material Design); use it everywhere. Generous outer whitespace; tight spacing inside groups, wide between them.
- Align to a few edges. One container width per page. Sections of a page differ by content, not by random backgrounds.
Color
- A neutral ground and ink, one accent for the primary action, at most one more for status. Accent sparingly: if everything is highlighted, nothing is.
- Text contrast at least 4.5:1, large text (24px, or 18.66px bold) and UI parts 3:1 (WCAG 2.2, 1.4.3 and 1.4.11).
render_designmeasures it. - Colors that must be told apart also differ in lightness, not hue alone.
Copy and content
- Real, specific copy written for this product. No lorem ipsum, no invented statistics, testimonials or customer logos: write a bracketed placeholder like
[CUSTOMER QUOTE]or[PRICE]. - Describe only what the brief says the product does. A feature, plan, integration or promise the brief does not name is a placeholder like
[FEATURE]or[PLAN NAME], not something you make up to fill a grid. - Headlines say the outcome in plain words; one primary call to action per view.
Avoid generated-looking tropes: purple-blue gradient washes, glowing blobs, cards with a thick colored left border, emoji as icons, every section centred, three identical feature cards as the only idea.
Accessibility: tap targets at least 24×24 CSS px (WCAG 2.5.8), 44×44pt on phones (Apple Human Interface Guidelines; Material asks for 48×48dp); visible focus styles; labels on inputs; aria-label on icon-only buttons.
Phone screens (390×844)
- Leave the system areas clear: the status bar at the top (44–59pt on Face ID iPhones, depending on the model) and the home indicator at the bottom (34pt inset). Do not draw a fake status bar unless asked.
- iOS: navigation bar 44pt, tab bar 49pt plus the bottom inset, large titles. Android (Material 3): top app bar 64dp, navigation bar 80dp.
- Thumb reach: primary actions low, destructive ones away from them. One column, full-width controls.
Landing pages commonly run: a hero that says what it is and for whom with one primary action and a picture of the product; proof (only real proof, else a placeholder); how it works / key features tied to outcomes; pricing if relevant; objections (FAQ); a closing call to action; a footer. Adapt to the subject — this is a starting list, not a template.
8. Versions
Every save of a file keeps the version it replaced (the last 100). design_history lists a file's
versions with who saved them; read_design_version shows one; restore_design_version brings it back
as the newest version. Restore rather than rewrite when a person asks to go back.
9. Order of work
- This guide, then decide the direction (with
capture_pageif there is a brand or reference). create_designwithtokens, thecomponentsyou need, and the boards.render_design, look, fix withedit_design, render again.- Give the person the link and a line on the direction and any placeholders they must fill.
- Later:
list_commentson the design; each comment names a board and element — change it, reply, resolve.
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 e-commerce merchants, AI for art directors, AI for industrial engineers, AI for UX and web designers, AI for landscape architects, AI for graphic designers
- Articles: Claude Design vs Figma: Which One Should You Use?, What Is Claude Design? Features, Pricing and How to Use It (2026)
- Examples: 24 pages agents made for a sample company