# Claude Code for beginners: build an anti AI slop website, step by step

> Install Claude Code, create an Astro site and write your design rules before the first prompt. Then build one page, check it on phone and laptop, fix it with specific prompts and put it online. Every step has the exact command.

Canonical page: <https://aymu.dev/blog/claude-code-for-beginners-anti-ai-slop-website>

Published 28 Nov 2026.

You don't need to be a developer to build a real website with Claude Code. But you do need to give it more than
"make me a website", because that prompt gets you the same purple-gradient page everyone else gets. This guide goes
through the whole thing in order, with the exact command or prompt for each step. It also adds one habit that
changes the result: you write your design rules before you ask for the first page.

You'll use three tools. Claude Code is the agent that writes the code. Astro is the framework that turns that code
into a fast website. Tailwind CSS is how the styles are written. You don't need to learn any of them first.

## Before you start

You need:

- A computer running a recent macOS, Windows 10 or later, or a common Linux such as Ubuntu. The Claude Code setup
  page lists the exact versions.
- A paid Claude account or an Anthropic Console account. The free Claude plan doesn't include Claude Code.
- A terminal. On a Mac, press Cmd+Space, type Terminal and press Enter. On Windows, open the Start menu and search
  for PowerShell.

A terminal is a window where you type a command and press Enter. That's all you'll do in it. When a step says
"run", paste the line and press Enter.

## Step 1: Install Node.js

Astro runs on Node.js. Download it from nodejs.org and install it like any other app. Astro's install guide asks
for v22.23.4 or higher. It doesn't support odd-numbered versions like v23, so pick an even-numbered release.

Check it worked:

```sh
node --version
```

You should see a version number such as `v22.23.4`. If you see "command not found", close the terminal, open a new
one and try again.

## Step 2: Install Claude Code

On macOS or Linux, run:

```sh
curl -fsSL https://claude.ai/install.sh | bash
```

On Windows, in PowerShell, run:

```powershell
irm https://claude.ai/install.ps1 | iex
```

The installer shows no progress while it downloads, so give it a minute. Then open a new terminal window and check:

```sh
claude --version
```

A version number means it worked. Claude Code also comes as a desktop app, if you'd rather not use the terminal for
the agent itself. This guide uses the terminal, because every step is a line you can copy.

## Step 3: Create the Astro project

Go to the folder where you want the site to live. Your home folder is fine for a first project. Then start Astro's
setup wizard with the smallest starter:

```sh
npm create astro@latest -- --template minimal
```

The wizard asks a few questions, such as where to create the project. Name the folder something like `my-site`,
say yes to installing dependencies, and yes to Git. When it finishes, move into the folder and add Tailwind CSS:

```sh
cd my-site
npx astro add tailwind
```

Say yes when it asks to change files. This creates `src/styles/global.css` with one line, `@import "tailwindcss";`.

Now start the site:

```sh
npm run dev
```

Open `http://localhost:4321` in your browser. You'll see a nearly empty page. That's correct. Leave this terminal
running: it rebuilds the page every time a file changes. Open a second terminal window, go to the same folder with
`cd my-site`, and use that one for Claude.

## Step 4: Write CLAUDE.md before the first prompt

This step is easy to skip, and skipping it is how you end up with the generic look. Claude Code reads a file called
`CLAUDE.md` in your project folder at the start of every session. If your design choices live there, every page
starts from them. If they live only in your head, Claude falls back on the most common look it knows.

![The design rules section of a beginner's CLAUDE.md: one accent color, no gradients or glows, two fonts, 65-character lines, no three identical cards.](/blog/figures/claude-code-for-beginners-anti-ai-slop-website-1.png)

Start Claude Code in the second terminal:

```sh
claude
```

It will ask you to sign in the first time. Then paste this prompt, with the parts in angle brackets filled in:

```text
Create a file named CLAUDE.md in the project root with exactly this content:

# <Site name>

## About
- This is the website of <who you are or your business>, for <who it is for>.
- The one thing a visitor should do: <book a call / send an email / buy>.
- Facts you may use: <real facts: services, location, years, contact email>.
- Never invent numbers, quotes, client logos or reviews. If a fact is missing, write [ADD: what is missing].

## Stack
- Astro with Tailwind CSS v4. Plain Astro components, no React unless I ask.
- Every page uses src/layouts/Layout.astro, which imports src/styles/global.css.
- Colors and fonts are tokens in the @theme block of src/styles/global.css. Use only those.

## Design rules
- One accent color, used only for buttons and links. Everything else is neutral.
- No gradients, glows, box shadows, emoji, or sparkle and rocket icons.
- One font for headings and one for body text, never the system default for everything.
- Body text left-aligned and no wider than about 65 characters.
- No row of three identical cards. Vary the layout from section to section.
- Large gaps between sections, small gaps inside them.
- Buttons say what happens ("Book a call"), never "Get started".

## How to work
- Before building a new page, list the sections you plan and wait for my OK.
- Build for phones first. Check every page at 390px and 1440px wide.
- One change per request. Tell me which files you changed.
```

Then give it the colors. Ask Claude to add them, or open `src/styles/global.css` in any text editor and make it look
like this. Change the accent to your one brand color:

```css
@import "tailwindcss";

@theme {
  --color-canvas: #fafafa;
  --color-surface: #ffffff;
  --color-ink: #0a0a0a;
  --color-ink-muted: #5c5c5c;
  --color-accent: #1d4ed8;
}
```

Tailwind turns each of these into classes, so `bg-canvas` is the page background and `text-ink` is the text color.
Claude now has a small, fixed set of colors instead of the whole rainbow. For picking the accent, see
[How to choose a website color palette (with Tailwind tokens)](/blog/website-color-palette). For the two fonts, see
[Best fonts for a website that doesn't look AI-generated](/blog/fonts-that-dont-look-ai-generated), then ask Claude to install
the ones you chose.

By default, Claude Code asks before it creates or changes a file, and before it runs a command. Read what it wants
to do and approve it. You stay in charge of every change.

## Step 5: Ask for one page

Not the whole site. One page, planned first:

```text
Read CLAUDE.md. Build the home page in src/pages/index.astro.
If src/layouts/Layout.astro doesn't exist, create it and import ../styles/global.css there.
Sections, in order: <a hero that says what I do and for whom, with the main action>,
<my services as a short list>, <how working with me goes, in three steps>, <contact>.
Use only the facts in CLAUDE.md.
First list the sections and the layout you plan for each one. Wait for my OK before writing code.
```

Read the plan. This is the cheapest moment to change your mind. If the plan says "three cards with icons", reply
"no cards: one large item and a list", and only then say OK.

If you want Claude to plan everything before touching files, press Shift+Tab until the status bar says plan mode.
Claude then reads and proposes, and makes no edits until you approve.

## Step 6: Look at it at phone and laptop width

Your visitors may be on a phone or a laptop, and Claude hasn't seen the page at all. It wrote markup. You need to
look.

In Chrome, open the page. Then open the developer tools with Cmd+Option+I on a Mac or Ctrl+Shift+I on Windows.
Turn on the device toolbar with Cmd+Shift+M or Ctrl+Shift+M. Set the width to 390 and scroll the whole page. Then
set it to 1440 and scroll again. Other browsers have the same thing, usually called responsive design mode.

Check these at both widths:

- Can you tell what the site is and what to do within a few seconds?
- Is anything cut off, overlapping, or squeezed side by side on the phone?
- Do headings sit closer to their own paragraph than to the section above?
- Are there purple gradients, glows, emoji or stock-looking icons that the rules said not to use?
- Does any sentence sound like it could be on anyone's website?

![Tasky template hero: a centered headline over an app dashboard preview with small hand-drawn notes](/blog/examples/tasky.jpg)

*Example: [Tasky](/templates/tasky), a designed Astro template on Aymu.*

For a longer list of signs, keep [12 signs your website looks vibe coded](/blog/signs-your-site-looks-vibe-coded)
open in another tab.

You can also show Claude what you see. Take a screenshot and drag it into the terminal window, paste it with Ctrl+V
(Alt+V on Windows), or give the file path in your prompt.

## Step 7: Fix it with specific prompts

"Make it look better" gets you a different version of the same thing. Name the place, the problem and the change:

![Two cards: vague prompts like 'Make it more modern' crossed out, and specific ones that name the place, the problem and the change.](/blog/figures/claude-code-for-beginners-anti-ai-slop-website-2.png)

| Instead of | Write |
| --- | --- |
| Make it more modern | In the hero, remove the gradient background and use bg-canvas. Make the headline larger than any other text on the page. |
| Fix the mobile layout | At 390px the services list sits in two columns and the text wraps every two words. Stack it in one column below 640px. |
| Improve the copy | The hero headline says "Elevate your brand". Replace it with what I do and for whom, using the facts in CLAUDE.md. |
| Better spacing | The gap between sections is the same as the gap between a heading and its paragraph. Make the section gap about three times larger. |

One problem per prompt. Look again after each one. When Claude makes the same mistake twice, the rule is missing
from `CLAUDE.md`, so add it:

```text
Add this rule to the Design rules section of CLAUDE.md: <the rule>. Then check the home page against it.
```

When the home page is right, ask for the next page the same way. It starts from the same rules and the same layout.
That's what makes a site feel designed and not just put together. To go further, the full routine is in
[Claude Code and Playwright: a screenshot review loop for better design](/blog/screenshot-critique-fix-loop).

## Step 8: Put it online

First, build the finished site. In the terminal that runs the dev server, press Ctrl+C to stop it, then run:

```sh
npm run build
```

Astro writes the finished site to a folder called `dist`. That folder is your website: plain files a host can
serve.

The simplest way to publish is to put the project on GitHub and connect that repository to a host. Astro's
deployment guides cover dozens of hosts, including Netlify, Vercel, Cloudflare and GitHub Pages. Once connected, the
host rebuilds and publishes the site every time you push a change. You can ask Claude for each step:

```text
Help me put this project in a new GitHub repository. Explain each command before you run it.
```

Then follow your host's Astro guide. If the host asks for a build command, it's `npm run build`, and the output
folder is `dist`. Compare hosts' plans yourself before you pick one. Connect your own domain from the host's
dashboard when you're ready.

Before you share the link, check:

- Every `[ADD: ...]` note is replaced with a real fact, or the line is removed.
- Each page has its own title and a one-line description.
- The contact details work.
- You looked at it on your own phone, not only in the browser's phone mode.

## What you built

You have a real Astro site with Tailwind CSS, your facts and rules in `CLAUDE.md`, and a way to publish every
change. Keep the habit that stops it looking generated: write the rule down before you ask for the page.

## What to do next

Build your second page with the same plan-first prompt. Add every rule you find yourself repeating to `CLAUDE.md`.
When that file gets long, [CLAUDE.md best practices: design rules Claude Code actually follows](/blog/claude-md-design-rules)
shows how to keep the rules short and checkable.
