Designing with the Agent

Colors, typography, layout, and imagery — iterate on look and feel until it clicks.

16 min read·6 parts·beginner

Lesson 2 gave you a repeatable way to phrase requests. This lesson uses those patterns for the fuzziest kind of change: how things look. Design isn't a single prompt — it's a short conversation where you name a direction, react to a draft, and lock in what works. By the end of this lesson your researcher portfolio should feel like yours, not like a template.


Part 1 · Design is a conversation

A common trap is to treat the agent like a design menu — "make it modern" — and hope. The result is usually the same beige defaults everyone else gets. Instead, art-direct: pick a mood, name a palette, choose a type feel, decide on density. The agent is fast at drafting; you're the one holding the taste.

Figure 1.1
MoodCalmBoldPaletteMutedVividTypeSansSerifDensityAiryPacked
Four axes give the agent enough constraints to draft something specific instead of average.
"Bold but calm. Muted navy palette with one warm accent. Editorial serif headings on a clean sans body. Give the layout room to breathe."

Four short sentences and the agent already has more to go on than most design briefs.


Part 2 · Setting a design direction

Before you touch a single component, spend one prompt establishing the system: primary color, accent, background, heading font, body font, and spacing scale. Ask the agent to store them as design tokens so every later change reuses the same vocabulary.

Figure 2.1
Palette
Ink
#0e1a2b
Surface
#1b2a44
Paper
#e8ecf2
Accent
#ff6b4a
Warm
#f5c26b
Typography
Fraunces / Playfair
Heading — editorial serif, bold weight
Inter or Geist for body copy — neutral, high legibility, sized between 15–17px with generous line height.
A concrete direction: palette + type pair. Vague adjectives become values the agent can implement.

A direction prompt that works

"Set up a design system for the site. Primary background #0e1a2b, accent #ff6b4a, paper #e8ecf2. Headings in Fraunces (serif, weight 600), body in Inter. Store as tokens in the global stylesheet and use them throughout — no hardcoded colors."

Part 3 · Reference-driven prompts

Words describe design badly. A single reference — a screenshot, a URL, or a section of your own site you already like — is worth a paragraph of adjectives. Attach it, then say exactly what to borrow.

Avoid
Make it modern
"Modern" means something different to every model on every day. You'll get gradient blobs, Inter everywhere, and a purple call-to-action.
Do
Mirror this reference, minus the parts you don't want
"Redesign the hero to match the attached screenshot: split layout, oversized serif headline on the left, portrait on the right with a thin border. Keep our navy background and coral accent — don't adopt the reference's colors."
Tip
Always tell the agent what not to copy from a reference. Left alone it will often pull colors and fonts you already ruled out.

Part 4 · Iterating on details

Once the direction lands, the rest of design is small, boring adjustments — a little more spacing, a slightly heavier weight, a hover state that reads. Do them one at a time. Each pass should be smaller than the last until nothing else bothers you.

Figure 4.1
  1. 1Direction

    Palette, type, density in one prompt.

  2. 2Draft

    Let the agent apply it across the page.

  3. 3Critique

    Name 2–3 things that feel off.

  4. 4Lock

    Freeze tokens; forbid further drift.

The design iteration loop: pick a direction, ship a draft, critique it out loud, refine, and finally lock.

Follow-ups that stay small

  • The headline is right. Increase its size by one step and tighten the line height.
  • Buttons feel heavy. Reduce vertical padding by 4px and use the accent only on hover.
  • Section spacing is inconsistent. Standardise to 96px top / 64px bottom across all landing sections.
  • Dark mode: keep the same tokens; only swap Ink and Paper. Don't invent new colors.

Part 5 · Avoiding generic AI aesthetics

Left unguided, most AI drafts converge on the same look: Inter everywhere, a purple-to-blue gradient hero, rounded cards with soft shadows, and an emoji or two in the pricing table. There's nothing wrong with any single ingredient — the problem is that everyone gets the same plate. Steer away on purpose.

Figure 5.1
generic-startup.app
Default AI aesthetic
Build the future, faster.
Generic sans, purple gradient, rounded pill CTA.
Get started →
ahmadnajmi.com
Distinctive direction
Research, taught in public.
Editorial serif, navy canvas, one warm accent.
Read the story
Same page, two directions. The right column names a distinctive palette and type pair; the left leaves the choices to defaults.

Prompts that break the default

  • Name a font that isn't Inter or Poppins — e.g. Fraunces, Space Grotesk, Instrument Serif, IBM Plex.
  • Ban purple gradients on white unless that's genuinely the brand.
  • Ask for one distinctive layout move: split hero, oversized numbers, editorial captions, marquee — pick one, not all.
  • Prefer one warm accent on a considered neutral over three colors of equal weight.

Part 6 · Accessibility & lock-in

A design that looks great but fails a contrast check isn't done. Ask the agent to test text-on-background pairs against WCAG AA (4.5:1 for body, 3:1 for large text) and to adjust the token — not the individual component — when a pair fails. Then lock the system so later prompts can't quietly drift.

Figure 6.1
Pass — 8.9:1
Body copy stays readable on navy.
Paper on Ink meets WCAG AA at every size.
Fail — 2.6:1
This muted variant is too soft.
Bump the token toward Paper before shipping.
Two text-on-background pairs. Test the token, not the one-off usage — a fixed token cascades to every component.

Locking the system

  • Freeze tokens in the global stylesheet; forbid hardcoded hex values in components.
  • Ask the agent to reject any future prompt that introduces a new color or font without adding a token first.
  • Cap animation: define one easing curve and one duration; reuse across the site.
  • Add a short "design rules" note in the project so later sessions inherit the taste.

Design prompt cheat sheet

A pocket version of the six moves. Glance at it before you ask for a visual change.

  • Conversation — art-direct, don't order from a menu.
  • Direction — palette, type, density in one prompt; store as tokens.
  • Reference — attach one; say exactly what to copy and what to skip.
  • Iterate — smaller passes each round; name 2–3 things at a time.
  • Anti-generic — pick a non-default font, one accent, one distinctive layout move.
  • Lock — check contrast, freeze tokens, cap animation.
Recap
Your researcher portfolio now has an intentional look — not a generated one. In Lesson 4 we'll grow it from a single page into a proper multi-page site with a shared header, footer, and navigation, and we'll make sure the design system you just locked carries across every route.