The job: “Make my dated website look modern without rewriting the content or breaking it”
Restyle your site with a modern design using Claude's frontend design skill
Give an old-looking web page a modern look with Claude Code and Anthropic's frontend-design skill: a bento grid, bold type, automatic dark mode and one calm entrance animation that switches off for people who ask for less motion. Your text stays exactly the same.
- Level Beginner
- Time 30-45 minutes
- Works with
- Claude Code
- Claude Desktop
- Claude.ai
On this page10 sections
Your site works, but it looks like 2012: a blue bar at the top, a column of grey boxes, Arial everywhere. This guide gives it a modern look with Claude Code and Anthropic’s frontend-design skill, without touching your words. You’ll ask for four specific things, not a vague “make it modern”: a bento grid, bold typography, automatic dark mode, and motion that respects people who turn it off.
We tested this on a made-up page for a neighborhood tool library (a header, five boxes, a footer). We gave Claude Code the official skill file and the prompt in step 3. Claude loaded the skill and rewrote the page in about 90 seconds. We then checked the result in a real browser: the visible text was word-for-word the same as before, the lowest text contrast was 7.2:1 in light mode and 8.7:1 in dark mode, the phone layout didn’t scroll sideways, and with “reduce motion” turned on, the number of animated elements dropped from 3 to 0.
What you’ll have at the end
- The same page with the same text, links and section ids, in a new layout.
- A bento grid: your sections as tiles of different sizes in one grid, like the compartments of a bento lunch box. The most important tiles are the biggest. On a phone, they stack in the original reading order.
- Bold typography: one large, heavy headline, and a small set of clear text sizes.
- Dark mode that follows the visitor’s phone or computer setting.
- One short entrance animation when the page loads, which turns off for visitors who set their device to reduce motion.
- A before and after you can compare side by side.
What you need (and cost)
| Item | Details |
|---|---|
| Claude Code | In a terminal or the Code tab of Claude Desktop. Needs a Pro, Max, Ultra, Team, Enterprise or Console account. |
| The frontend-design skill | Free and open source (Apache 2.0), made by Anthropic. Step 1 installs it. |
| Your page | An HTML file, or a folder with your site. Make a copy first. |
| A browser | Chrome is used for the checks in step 4. |
Cost: your Claude plan’s normal usage. Nothing else is paid.
What the skill does
A skill is a folder of instructions Claude loads when your request matches it. This one is a short design brief Claude reads before writing any page code. We read the official file. It tells Claude to:
- Plan before coding: 4 to 6 named colors as hex codes, the typefaces and their roles, and a layout sketched as an ASCII wireframe.
- Review the plan and revise any part that looks like the default answer for any similar page.
- Avoid common tells of generated pages, which it lists by name: a cream background with a terracotta accent, identical rounded cards with the same soft grey shadow, an all-caps label over every heading, an arrow added to every button.
- Use motion sparingly: “a single orchestrated moment” instead of a fade-in on every section.
- Meet a quality floor: works down to phone size, visible keyboard focus, reduced motion respected.
Your words always win. If you ask for something on its list of defaults, you get it.
Step 1: Install the skill
In Claude Code, run:
/plugin install frontend-design@claude-plugins-official
The /plugin panel opens on the plugin’s details. Pick a scope: just you in every project, everyone who works in this repository, or just you in this repository. Claude Code adds Anthropic’s official marketplace for you the first time you start an interactive terminal session. If the command says it can’t find it, run /plugin marketplace add anthropics/claude-plugins-official first.
Using claude.ai instead? Turn on Code execution and file creation in Settings > Capabilities, then look for frontend-design in Customize > Skills. More detail is on the frontend design skill page. We only tested the Claude Code version.
What we did in the test: we didn’t run /plugin install. We saved the official SKILL.md as a project skill at .claude/skills/frontend-design/SKILL.md. It’s the same file as in the plugin (we compared them), and .claude/skills/<name>/SKILL.md is the project skill location in Claude Code’s docs. The only difference: a plugin skill can also be called by its full name, /frontend-design:frontend-design.
Step 2: Make a copy and open the folder
- Copy your site folder, or at least
index.html. Keep the original asbefore.htmlso you can compare. - Open Claude Code in the folder: in Claude Desktop, click the Code tab and open the folder; in a terminal,
cdinto it and runclaude.
If your site uses a framework (Astro, Next.js, WordPress theme files), the same prompt works, but name the file that holds the layout, and ask Claude to keep the existing components.
Step 3: Ask for the restyle
Paste this prompt. It’s exactly the one we ran. Change site/index.html to your file’s path.
Use the frontend-design skill to restyle site/index.html. Keep every piece of text, every link and every section id exactly as it is. Change only the look and the HTML structure around the content.
What I want:
- A bento grid: the sections become tiles of different sizes in one grid, so the most important things (what we do, how to join) get the biggest tiles. On a phone, it becomes one column in the same reading order as the original page.
- Bold typography: one strong, large headline treatment, and a clear type scale. Use system fonts only, no web fonts or external files.
- Dark mode: follow the visitor's system setting with prefers-color-scheme. Both themes must keep body text contrast at least 4.5:1.
- Motion: one short entrance moment when the page loads, nothing on every card. Wrap all animation and transitions in prefers-reduced-motion so they are turned off for visitors who ask for less motion.
- Visible keyboard focus on every link.
Show me your short design plan first (colors as hex, type, a small ASCII wireframe of the grid), then write the new site/index.html. Finish with a list of what you changed and the contrast ratios you checked.
Change “what we do, how to join” to the two things that matter most on your page. That one line decides which tiles get the most space.
What the terms mean:
- Bento grid is built with CSS Grid, a browser feature for placing boxes in rows and columns. A tile can span several columns or rows, which is how some tiles end up bigger.
- prefers-color-scheme is a CSS check for the visitor’s light or dark setting. The page switches by itself, with no toggle button needed.
- prefers-reduced-motion is a CSS check for the “reduce motion” setting on phones and computers. Some people turn it on because movement on screen bothers them.
- 4.5:1 is the minimum contrast for normal-size text in WCAG 2.2, the web accessibility standard from the W3C.
What came back in our test: a 6-column grid with a big navy hero tile (title, links and intro line) and a yellow “Join” tile as the only bright color. “How it works”, “Popular tools” and “Join” got large tiles; “Workshops” and “Hours” got small ones. The headline went to a very heavy weight with tight letter spacing. The only motion was the hero’s three parts rising in once, inside a prefers-reduced-motion: no-preference block. Claude reported its own contrast checks; we measured the same numbers independently.
Step 4: Check the before and after
Don’t trust the summary alone. Open both files side by side and check these five things:
- Same words. Read the new page top to bottom against
before.html. Or ask Claude:Compare the visible text of before.html and site/index.html and list any difference. - Phone size. In Chrome, open DevTools and click Toggle device toolbar. Pick a phone. The tiles should stack in the original order, with no sideways scrolling.
- Dark mode. In DevTools, open the Rendering tab, find Emulate CSS media feature prefers-color-scheme and choose
prefers-color-scheme: dark. Read every tile. - Reduced motion. In the same tab, set prefers-reduced-motion to
reduceand reload. Nothing should move. - Keyboard. Click the address bar, then press Tab repeatedly. You should always see where you are.
Want Claude to do these checks? With Playwright MCP installed, Claude Code can open the page, switch dark mode and reduced motion on and off, and save screenshots. That’s how we checked our test.
What can go wrong
- Text gets “improved”. Claude may tidy a sentence or a heading. The “keep every piece of text” line stopped that in our test, but check anyway. If something changed, say:
Put back the original text in the Hours tile, word for word. - Big tiles with little in them. In our result, the “How it works” tile was tall but held only one sentence, leaving empty space. Ask for a span change (“make How it works 2 columns by 1 row”) or split the sentence into a list in your own content.
- Small text on small tiles. The “Workshops” and “Hours” text came out smaller than the rest. If it’s hard to read on a phone, ask for one size up.
- Web fonts slow the page down. That’s why the prompt says system fonts only. If you want a special font, ask for it by name and accept one extra file.
- The site breaks in other pages. If several pages share one stylesheet, a restyle of one page can change the others. Ask Claude to list every file it changed, and open each page once.
- Everything moves. If the result fades in every section, repeat the motion line from the prompt. The skill itself warns against it.
Make it yours
- Two directions. Add:
Give me two design plans with different palettes and type, and wait for me to pick one before you write code. - Brand colors. Add:
Use these colors: #1F3A5F (main), #F2C230 (accent). Pick the rest to match. - A dark-mode switch. Add:
Also add a small button that lets visitors switch between light and dark, and remember their choice. - Start from a sketch. No page yet? Draw it and follow Screenshot to working UI with Claude, then come back here.
- From Figma. If a designer already made the new look in Figma, use Figma to code with Claude instead.
Next steps
- Run a UX and accessibility audit of your site to check contrast, keyboard use and alt text across the whole page, not just the parts this prompt covers.
- Build and deploy a website with Netlify to put the new version online.
- Making graphics to announce the new look? See Make social graphics with Claude and Canva.
Sources
- raw.githubusercontent.com/anthropics/skills/main/skills/frontend-design/SKILL.md (opens in a new tab)
- github.com/anthropics/claude-plugins-official/tree/main/plugins/frontend-design (opens in a new tab)
- raw.githubusercontent.com/anthropics/claude-plugins-official/main/plugins/frontend-design/README.md (opens in a new tab)
- code.claude.com/docs/en/discover-plugins (opens in a new tab)
- code.claude.com/docs/en/skills (opens in a new tab)
- code.claude.com/docs/en/setup (opens in a new tab)
- developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_layout (opens in a new tab)
- developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme (opens in a new tab)
- developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion (opens in a new tab)
- developer.chrome.com/docs/devtools/rendering/emulate-css (opens in a new tab)
- w3.org/TR/WCAG22/ (opens in a new tab)
Related guides
Screenshot to working UI with Claude: turn a sketch or whiteboard photo into a web page
Take a photo of a whiteboard, a paper sketch or a screenshot you like, give it to Claude, and get a working web page with real buttons and forms. Then compare a screenshot with your sketch and fix the differences.
Beginner30-45 minutes
UX and accessibility audit with Claude and Playwright MCP: WCAG 2.2 checks and a fix list
Have Claude open your site in a real browser with Playwright MCP, check it against WCAG 2.2 level AA (contrast, keyboard, focus, alt text, labels, target size) and write a prioritized fix list. Then let it fix the worst issues and check its own work.
Intermediate45-60 minutes
Turn a recipe, workout or habit idea into a simple tracking app on your phone
Describe what you want to track in a short note, have Claude build a small web app with big buttons, streaks and a backup screen, put it online for free and add it to your phone's home screen.
Beginner45-60 minutes