Visual

Design

Landing pages, app screens and other visuals on a design system.

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

FileWhat it is
tokens.jsonThe design system: colors (with a dark mode), fonts, type styles, spacing, radii, shadows. Every artboard gets it as CSS variables.
components/<Name>.htmlA reusable part (button, card, nav bar, pricing tier). Edit it once and every instance updates. Shown on the canvas to the left.
<Name>.htmlAn artboard: a screen, a page, a poster, an ad.
canvas.jsonWhere 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-width and padding. Its frame's h is the page's full height — render_design tells you the real content height; set it. Add viewports to 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 vh units in a page (its frame is the full page height, so 100vh is 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

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Pricing</title>
<style>
body { margin: 0; background: var(--color-bg); color: var(--color-ink); }
a:hover { text-decoration: underline; }
@media (max-width: 640px) { .tiers { grid-template-columns: 1fr !important; } }
</style>
</head>
<body>
<main style="max-width: 1200px; margin: 0 auto; padding: 96px 32px; display: flex; flex-direction: column; gap: 48px">
  <h1 class="text-display" style="margin: 0; text-align: center">Pick a plan</h1>
  <div class="tiers" style="display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px">
    <x-component name="Tier" title="Starter" price="$0" cta="Start free"></x-component>
    <x-component name="Tier" title="Team" price="$12" cta="Start trial" featured="true"></x-component>
    <x-component name="Tier" title="Business" price="[PRICE]" cta="Talk to sales"></x-component>
  </div>
</main>
</body>
</html>

Rules:

  • Static HTML and CSS only: no <script>, no on…= handlers, no javascript: 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 @media overrides — an override must say !important to 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-family rule (find_fonts lists families). Never <link> fonts yourself.
  • Real elements, even in a mockup: <button>, <a href>, <input> with <label>, <nav>, <header>, <main>, <footer>, headings in order. alt on 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.

{
  "color": {
    "bg":     { "$type": "color", "$value": "#fbfaf7", "$extensions": { "modes": { "dark": "#111110" } } },
    "ink":    { "$type": "color", "$value": "#1c1b19", "$extensions": { "modes": { "dark": "#f2f1ee" } } },
    "accent": { "$type": "color", "$value": "#c2410c", "$description": "Primary actions only" }
  },
  "font": {
    "display": { "$type": "fontFamily", "$value": ["Fraunces", "Georgia", "serif"] },
    "sans":    { "$type": "fontFamily", "$value": ["Inter", "system-ui", "sans-serif"] }
  },
  "text": {
    "display": { "$type": "typography", "$value": { "fontFamily": "{font.display}", "fontSize": "64px", "fontWeight": 600, "lineHeight": 1.05, "letterSpacing": "-0.02em" } },
    "body":    { "$type": "typography", "$value": { "fontFamily": "{font.sans}", "fontSize": "17px", "fontWeight": 400, "lineHeight": 1.6 } }
  },
  "space":  { "4": { "$type": "dimension", "$value": "16px" }, "6": { "$type": "dimension", "$value": "24px" } },
  "radius": { "md": { "$type": "dimension", "$value": "10px" } },
  "shadow": { "md": { "$type": "shadow", "$value": { "offsetX": "0px", "offsetY": "8px", "blur": "24px", "spread": "-6px", "color": "#0000001f" } } }
}

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).

<!doctype html>
<html lang="en"><head><meta charset="utf-8">
<style>.tier-cta:hover { filter: brightness(1.08); }</style>
</head>
<body>
<article data-props='{"title":{"type":"text","default":"Plan"},"price":{"type":"text","default":"$0"},"cta":{"type":"text","default":"Choose"},"featured":{"type":"boolean","default":false},"features":{"type":"list","default":[{"text":"Unlimited projects"}]}}'
  style="display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: var(--radius-lg); background: var(--color-surface); {{#featured}}outline: 2px solid var(--color-accent);{{/featured}}">
  <h3 class="text-h3" style="margin: 0">{{title}}</h3>
  <p style="margin: 0; font-size: 40px; font-weight: 700">{{price}}</p>
  <ul style="margin: 0; padding: 0; list-style: none; display: grid; gap: 8px">{{#features}}<li style="display: flex; gap: 8px"><x-icon name="check" size="18"></x-icon>{{text}}</li>{{/features}}</ul>
  <a class="tier-cta" href="#" style="padding: 12px 18px; border-radius: var(--radius-md); background: var(--color-accent); color: var(--color-on-accent); text-align: center; text-decoration: none; font-weight: 600">{{cta}}</a>
</article>
</body></html>

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 says active="today". (!important because 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 in currentColor (set color on it or its parent). stroke-width="1.5" thins it; label="Close" makes it a named image. find_icons searches the 2,000+ names. No emoji as icons.
  • Images: find_images searches openly licensed photos and illustrations (Openverse) — one or two plain words work best; add_asset stores an image from a URL (or base64) in the space and returns its /api/uploads/… URL for src or background-image. Credit the creator when credit_needed is 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_page shows 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: 65ch on 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_design measures 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

  1. This guide, then decide the direction (with capture_page if there is a brand or reference).
  2. create_design with tokens, the components you need, and the boards.
  3. render_design, look, fix with edit_design, render again.
  4. Give the person the link and a line on the direction and any placeholders they must fill.
  5. Later: list_comments on 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