← All guides

Guide · Design prompts · ★☆☆☆☆

Web design prompts for Claude Code: the names and words that change the result

Most of my design prompts went wrong on one word. I typed "menu or tab", "switch button" and "pop up page", and Claude had to guess what I meant. Here are those prompts, what came back, and the names I use now.

By Arthur Hsiao · Last updated · 7 min read

The short version. Claude builds what your word means, not the picture in your head. Name the part (tabs, segmented control, modal, toast). Say what moves (the letters, not the box they sit in). Say when it moves (on load, when it scrolls into view, or with the scroll). For the general shape of a good prompt, see how to write Claude Code prompts. This guide is only about design words. Every prompt below is copied from my session logs, typos and all.

1Say "tabs" when you mean tabs

On 2 Nov 2026 the /guide page had 14 cards and no way to filter them. I typed:

now we need like a menu or tab and show all. so easy for users to find guides

A menu and tabs are different parts. A menu is a list that opens from a button and closes again. Tabs are a row of buttons that stay on screen, and each one switches what shows below it. Claude picked tabs and said so:

The `/guide` page now has a tab bar between the search box and the cards: **All**,
**Workflow**, **Better results**, **Saving tokens** and **Built with AI**.

It also put a count on each tab ("Workflow 6") and told me what it had left out: the chosen tab wasn't in the URL, so nobody could link to one section. That's fixed now (/guide?tab=…), and the groups have been renamed since. The tabs stayed.

Claude guessed right, but it was still a guess. "Add filter tabs above the cards, one per group plus All, with a count on each" would have left nothing to guess.

The guide page toolbar: a row of rounded tabs (All 29, Start here 3, Getting started 7 and more) and, below on the right, a two-part Grid and List control with Grid pressed
The /guide toolbar today: tabs with counts, then the grid and list switch.

2Call the two-button switch a segmented control

34 minutes later, same session:

add a switch button for display type: grid or list

In design, a switch usually means a toggle switch: the on/off slider from your phone's settings. I wanted two buttons joined together, with one always pressed. That part is a segmented control (also called a button group or view toggle). Claude built the right thing, a grid | list pair at the end of the tab row. In the code it is a group of normal buttons, each with aria-pressed, so screen readers announce which one is on. It isn't a checkbox dressed up as a slider.

It also made two choices I hadn't asked for, and said so:

**Phones:** below 700px wide the list view looks the same as the grid, because the row
layout would be too cramped.

The choice also resets to grid on reload. Both were fine. But if I had used the right name, I could have spent the prompt on those two choices instead of on the shape.

The guide page in list view: one wide row per guide with stars on the left, title and summary in the middle, and Read guide with the minutes on the right
The list view the segmented control switches to.

Claude uses these names itself once it knows what you mean. On 16 Nov, while redoing an entry form in my Android app PennyDungeon, its report described "a two-part toggle at the top, with − for Expense and + for Income" and category "chips". If a reply names a part you didn't know, take the word and use it next time.

3"Pop up" can mean five different parts

On 23 Nov, in PennyDungeon:

create a badges button and pop up page for badges.  create a badge for each victory. when use click badge then show like logo on welcome page with victory details

Claude's plan split my "pop up page" into two parts:

- **Badges screen:** a grid with one badge per victory, newest first.
- **Badge detail:** tapping a badge pops up a big animated version, like the coin on the
  welcome screen, with the victory's details.

A full screen for the list and a pop-up for one badge was what I wanted, but I only knew Claude had read it that way because I read the plan. On a web page, "pop up" can be any of these five parts:

NameWhat it doesUse it for
Modal (dialog)Covers the page, dims the rest, and must be closed before you go on"Delete this?", a short form you must finish
DrawerSlides in from one edge, with the page still behind itFilters, a phone menu, a cart
PopoverA small box pinned to the button you clicked; it closes when you click awayA menu, a share list
TooltipA line of text on hover or keyboard focus, with no buttons insideWhat an icon means
ToastA short message in a corner that goes away by itself"Saved", "Link copied"

A few more names that change what gets built, with where each one is on this site:

  • Card vs panel: a card is one clickable item in a grid (each guide on /guide). A panel is a box that groups content and isn't one item (the stone panels on the Tools page).
  • Header vs navbar vs hero: the header is the strip at the very top (logo, links, EN/繁/简). The navbar is the links inside it. The hero is the first big section of a page (the ink art on the home page).
  • Badge vs chip vs tag: a badge is a small count or status (the "29" on the All tab). A chip is a small pill you can tap to pick or filter (PennyDungeon's categories). A tag is a fixed label on an item (the stars on each guide card).
  • Skeleton vs spinner: a skeleton is grey shapes in the page's layout while content loads; a spinner is one turning icon. This site prerenders every page, so it has neither, but the words still decide what Claude builds.

4Say what moves, and what stays still

On 12 Nov I asked for a better hover effect on the home page's hero art:

hover animation need to imrpved to more detail. when mouse hover over it turn back some into ascii and looks like finger touch water or sand. there will be sand flow or water flow

Claude built water: a wake behind the mouse, ripples spreading out, and "the ASCII tiles slide with the waves". It said it had only seen still frames. Three days later I saw what was wrong:

the real problem on the current one is when you mouse move over it looks like many squres moving. do you notice that?
Yes. It comes from how the hover is drawn: each cell is a 10px square of paper with its
characters on it, and every square slides on its own with the water. So you see the
square edges shift, gap and overlap, not the characters.

The fix was to keep the paper still and slide only the characters. My next prompt said what I should have said on day one: I want it looks like only letter moving. "Water" described the feeling, but it didn't say which thing was the water. When you ask for motion, name the thing that moves (the letters, the background, the whole card) and the thing that doesn't.

5Scroll-triggered, scroll-driven or a still

On 13 Nov I asked about the ASCII art at the bottom of the home page:

So Bottom of the home page animation is scroll animation? Just asking
Not quite. It is scroll-triggered, not scroll-driven.

Claude explained the difference with the numbers from its code. It started when about 40% of the art was on screen, played by itself for about 2.6 seconds, and ignored scrolling after that. These are the motion words worth knowing:

  • On load: plays once when the page opens.
  • Scroll-triggered: starts when the part scrolls into view, then runs at its own speed.
  • Scroll-driven (or "scrubbed"): tied to the scroll position. Scroll slowly and it moves slowly. Scroll up and it plays backwards.
  • Fade and stagger: appear by changing opacity; stagger means one item after another with a short delay.
  • Reduced motion: the system setting some people turn on. Ask for a still version for them.

Then I wanted neither kind of animation:

Make it like static image like suck in halfway through almost into hero

Claude made it a still frame: one frozen moment of the hero's intro animation, drawn once. It said that how far in the frame is caught is one number, paint(1100), and that 1400 was "almost all art". Once you know what each word means, you can say which one you want. For how the scroll effects are built, see GSAP scroll animation in Angular.

Ink artwork of shoulder armour showing through a ring of ASCII characters, with some characters caught mid-flight towards the centre
The still frame at the bottom of the home page: the intro animation, stopped part of the way in.

6Words for layout, spacing and type

These words map straight to CSS, so Claude can act on them. The values are this site's own, from src/styles.scss and guide.scss:

  • Max width: how wide content gets on a big screen. Pages here stop at 1200px; this article stops at 760px.
  • Line length: about 60 to 75 characters per line is comfortable to read. That's why the article is narrower than the page.
  • Full bleed: edge to edge, ignoring the max width.
  • Split: two columns side by side, like text on the left and a picture on the right.
  • Above the fold: what shows before any scrolling.
  • Padding vs gap: padding is the space inside a box, and gap is the space between boxes. This site uses a scale of 4, 8, 16, 24, 40, 64 and 120px. "More gap between the cards" is a change Claude can make; "more airy" isn't.
  • Type: sans (Inter for body text), display (Bricolage Grotesque for headings), mono (code, labels and the small "eyebrow" line above a title).
  • Hierarchy: which thing you see first. Ask for one main action per screen.
  • Contrast: how much a thing stands out from what's behind it. On 30 Oct I asked play pause button can use icon and make it contract so it is obvious for users. Claude replied I read "contract" as "contrast" and made "a 44px dark ink circle with an ivory icon, a 2px ivory ring". The right word, even misspelt, got a concrete result.

Words that do nothing: modern, clean, sleek, professional, nicer, "make it pop", "improve it". On 16 Nov I wrote entry form and button need to be improved. the style looks not match the whole app. each button on the form should have icon so users can instantly know what button doest. "Improved" gave Claude nothing. The icon sentence did all the work: every control got an icon next to its label, and the form moved onto "the same rounded cards as Home and Goals". Anything vague comes back as Claude's own taste. Replace each vague word with a part and a change: "icon on every button", "16px more gap", "one accent colour".

7Labels are design too

The text on a part is part of the design. It's a promise of what happens when someone clicks.

On 2 Nov: do we need "Guide" label on each card. because we're already on Guide main page. obvouisly they are guides. Claude removed it from the cards but kept the "Guide · …" line on each guide's own page, "because people can land there from search without seeing the list".

On 17 Nov: change Download the beta label to something else looks like when click will start downloading. The link opened a page and didn't download anything, so Claude changed it to "See screenshots and how to install".

Ask Claude to read each button and link label and say what a visitor would expect it to do. It's a cheap check.

When you don't know the name

Take a screenshot of the part on any site, paste it into your prompt, and ask: "What is this part called, and what are the parts around it called?" Then use those names in the prompt that builds it. I didn't do this for the cases above. I learned most of these names afterwards, from Claude's own replies, and that's the slow way to learn them.

Next: build a landing page with Claude Code, where these words go into a written brief before any code.