Web Design with Claude Code: What 280 Commits on This Website Taught Me
Claude Code web design: 261 of 280 commits on this site. What works, what doesn't – and how CLAUDE.md and check scripts keep it reliable.
Paul Mill
Automation & AI
Table of contents
Web design with Claude Code means: an AI agent works directly in your website’s files, writes components, copy and configuration, runs the build, checks the result in the browser and ships it. This website was built exactly that way. Since 12 April 2026 the project has 280 commits — 261 of them, or 93 %, list Claude Code as co-author. A new version has gone live more than 70 times.
This isn’t a “website in ten minutes” tutorial. It shows what holds up over months on a real, bilingual website with a contact form, blog, showcase and motion library — and where a human remains indispensable.
What “web design with Claude Code” actually means
Claude Code isn’t a site builder or a chat window you copy code out of. It runs in the project folder, reads the existing files, changes them, runs commands and looks at the result. For a website that means:
- Design as code: colours, fonts, spacing and components live as files (here Astro 6 with Tailwind CSS v4). Claude Code changes them like a developer would.
- Content in two languages: every page exists in German and English, including hreflang, sitemap and its own preview image — Claude Code keeps both versions in sync.
- Checking in the browser: after a change, Claude Code starts the dev server, opens the page and checks layout, console and mobile view.
- Shipping: one command checks, builds and deploys to Cloudflare, then verifies that the new version is really live.
The result is currently 191 published pages from about 34,000 lines of code and content.
Lesson 1: CLAUDE.md is the real project
Claude Code reads a file called CLAUDE.md in the project folder when it starts. On this website it now has 288 lines — and it is the reason commit 250 is no worse than commit 20.
It doesn’t explain how to program; it records what applies in this project:
- Decisions with dates: “Steel & cobalt colour scheme (decided 21 Nov 2026)”, “No prices, anywhere”, “Always address the reader formally”. Without these lines an agent suggests the same alternatives again every week.
- One source of truth: navigation paths live only in
navigation.ts, contact details only insite.ts, retention periods only incontact-policy.ts— and the privacy policy reads them from there. An agent that has to change a phone number in three places will miss one. - The why: almost every rule comes with the bug that caused it. “No
backdrop-filteron mobile — it caused header jumps on the iPhone.” A rule with a reason gets followed; one without gets “improved” at the next opportunity.
If you build a website with Claude Code and adopt only one thing, adopt this: every decision you don’t want to make twice belongs in CLAUDE.md, with a date and a reason.
Lesson 2: rules the build checks, not rules you hope for
A line in CLAUDE.md is a request. A script that fails the build is a guarantee. This website has several:
- Content Security Policy: the site allows no inline JavaScript.
verify-csp.tsruns as the last step of every build and fails it as soon as an inline script ends up in the HTML. - Type checking:
astro checkverifies all components and content before every deploy. - Live check: after deploying, the script compares the homepage byte for byte with the build and tests whether the contact form has its secret. Only then is the version tagged as a release.
The effect: Claude Code can’t accidentally ship something that breaks the ground rules — and if it happens, the agent sees the error itself and fixes it.
Lesson 3: design needs a direction, not adjectives
“Make it modern and premium” leads to the website everyone has: purple gradients, glass everywhere, big emojis. What worked here:
- A fixed system: a few named colours (steel, grey-blue, cobalt), two typefaces, one rule for heading weights that lives centrally in
global.css, not in every component. - Prohibitions: “Cobalt is never a surface, only an accent.” “No coloured light blobs — that read as the AI look.” For an agent, prohibitions are more precise than wishes.
- Look instead of describe: after every visible change, a screenshot at desktop and mobile width. Claude Code then sees for itself that a line wraps or a contrast isn’t enough.
Lesson 4: small steps, straight on main
Every change to this website is its own small commit with a description — from a new blog post to a single redirect. That makes three things easy: understanding what changed; rolling back if something’s off; and telling the next session where things stand. Next to CLAUDE.md, the Git history is the project’s second memory.
Where Claude Code is strong in web design
- Wide changes: a new block on every service page, a rename across both languages, a date format that Search Console flags in the schema — tasks that cost an hour of searching by hand.
- Technical SEO: generating canonicals, hreflang, structured data, sitemap and Open Graph images from one source and keeping them consistent.
- Performance and accessibility: image variants, lazy loading, focus styles, contrast,
prefers-reduced-motion— rules you set once that then apply everywhere. - Interactive elements: the live demos in the Showcase and the clips in the Motion Library were also built with Claude Code. How that works for animation is in Motion Graphics with Claude Code.
Where it takes a human
- Positioning and copy: what the site promises, to whom and in what tone — no agent decides that.
- Taste in the details: the first draft is almost always tidy and rarely special. Specific feedback makes the difference: “too loud”, “more subtle”, “looks like a template”.
- Legal: Claude Code drafts legal notices, privacy policies and disclosure texts cleanly; the operator remains responsible for them.
- Truth: an agent happily writes convincing case studies and figures. That’s why this website has a rule: numbers only when they can be backed up — and unsupported examples get removed.
Frequently Asked Questions
Can you build a complete website with Claude Code?
Yes. This website is the example: design, content in two languages, blog, contact form with bot protection and email delivery, deployment on Cloudflare. Claude Code writes the code and checks it; decisions about content, design and legal matters are still made by a human.
Do I need programming skills for web design with Claude Code?
For a simple page, not necessarily. For a website maintained over months, someone should understand what a build, a commit and a deploy are — otherwise errors are hard to place. Claude Code can handle and explain the rest.
Which tech stack works well for websites with Claude Code?
Stacks that consist entirely of text files and have a clear build work well: here Astro with Tailwind CSS, content as MDX, hosting on Cloudflare. A CMS with a database is possible but harder to verify. A comparison of the options is in WordPress, Payload CMS or Code with AI.
How do I stop Claude Code from breaking the website?
With three things: a CLAUDE.md that records what applies; check scripts that fail the build on rule violations; and a deploy that verifies after shipping that the site really works. Plus small commits, so every change can be reverted.
Is a website built with Claude Code cheaper?
It gets built faster, especially for changes that touch many pages. But the time saved goes into coordination, review and content. What a website costs overall is covered in How much does a professional website cost?.
Conclusion
Web design with Claude Code works when you treat the agent like a new developer on the team: it gets a good onboarding (CLAUDE.md), firm guardrails (scripts that fail the build) and clear feedback. Then a fast code generator becomes a reliable colleague — 261 commits on this website are the proof.
If you’d like a website built this way, you’ll find everything else under Web Design.