How to redesign an existing site with AI without breaking it
Your site already works. The goal is to change how it looks, everywhere, without changing what it does. These seven steps do that with Claude Code, Cursor or any AI coding agent, using one design system file as the reference.
Before you start: what an AI redesign can and cannot do
To redesign an existing site with AI you need three things: the project in version control, an AI coding agent that can read and edit the files, and a written design system for it to follow. The agent is good at applying rules consistently across many files. It is bad at inventing a coherent look across separate requests, which is why the design system has to exist before the first edit.
This guide covers a visual redesign. If you also want to change what pages contain or how users move through the product, do that afterwards as separate tasks.
Step 1: Commit everything
Make a commit, or a new branch, before you paste anything. Every later step assumes you can compare against this point and return to it.
Step 2: Choose one design system
Pick a single direction and write it down as a DESIGN.md file. You can load one of the finished templates into your AI tool, or fill in the blank DESIGN.md template. Do not mix two styles, and do not ask the agent to "make it look modern": that request is the cause of the inconsistency you are trying to fix.
Step 3: Hand the agent the design system with clear instructions
With AI Site Redesign installed in your AI tool, ask the agent to apply a template. It receives DESIGN.md together with instructions to save it in the project root, leave features, routes, data and copy alone, and work in a fixed order. If you wrote your own DESIGN.md, give it those same instructions yourself.
Step 4: Read the audit before any edits
The instructions ask for an audit first: every file that sets colors, fonts, spacing, radius or shadows, and every hard-coded value. Read it. It tells you how big the job is and where styles are duplicated. If the list includes files that should not change, such as email templates or a third-party widget, say so now.
Step 5: Create the tokens once
Have the agent define the tokens in one place: CSS variables in a global stylesheet, or the theme of the framework you already use. Nothing else should change in this step. Load the site and confirm it still looks the same as before, because no component uses the new tokens yet.
Step 6: Restyle shared components, then pages
Buttons, inputs, cards and navigation come first, because they appear on every page. Review them in the browser. Then go page by page. After each one, the agent reports what it changed and you check three things:
- Does everything still work? Click the main actions on the page.
- Are there leftovers? Search the diff for raw hex values or pixel sizes that are not in the design system.
- Does it hold on a phone? Narrow the window to about 375px.
Commit after every page you accept. Small commits make it easy to undo one bad change without losing the rest.
Step 7: Make it stick
Add one line to the file your agent reads automatically (CLAUDE.md, a Cursor rule, AGENTS.md or GEMINI.md): "Read DESIGN.md before any UI change." From then on, a visual change means editing DESIGN.md and asking the agent to apply it, not patching a single screen.
Common mistakes when redesigning with AI
- Asking for everything at once. "Redesign the whole site" in one request produces a huge diff nobody can review. Go component by component.
- Fixing pages instead of the file. If a button looks wrong, correct the rule in DESIGN.md so the fix reaches every button.
- Letting new values in. One extra gray or a one-off 14px padding is how drift starts again. The agent should ask before adding anything.
- Skipping the mobile check. Spacing that looks generous on a laptop often overflows on a phone.
Questions about redesigning an existing site with AI
Can AI redesign my website without rebuilding it?
Usually yes, if the redesign is visual: colors, typography, spacing, component styles. An AI coding agent can replace those across an existing codebase when it has a design system to follow. Changing page structure, navigation or content is a larger job and should be done as separate, smaller tasks.
How long does an AI redesign take?
It depends on how many pages and components the project has and how scattered the styles are. A small site with shared components can be restyled in a single session. A large app with inline styles on every page takes longer, because the audit list is longer and each page needs a review.
What if the agent changes something it should not?
That is why you commit first and work page by page. Review each diff, and if a change touches logic, routes or copy, reject it and remind the agent that the task is visual only. With version control you can always return to the last good commit.
Do I need Tailwind CSS for this to work?
No. The method works with plain CSS, CSS modules, Tailwind or a component library. The tokens become CSS variables or theme values in whatever system the project already uses.
Design system templates you can copy
- PlainMinimal black-on-white system for SaaS, tools and docs.
- AtelierElegant serif system for portfolios, studios and brands.
- Night ShiftDark neon system for AI products and developer tools.
- Soft PopRounded, friendly system for consumer and learning apps.
- RawHard-edged brutalist system for indie and creative sites.
- ConsoleCompact system for dashboards, admin panels and internal tools.