To rebrand an Astro theme, rename the project in package.json and its folder and repository, replace the brand values in the theme’s settings file and astro.config.mjs, swap the logo, favicon, web manifest and social image, then search both src/ and the built dist/ folder for the demo name until nothing is left.
Key Takeaways
- Start with a search for the demo brand so you know how many places it appears.
- The
nameinpackage.jsonis internal, but rename it so tools and logs match.- Brand text should come from one settings file; fix anything that bypasses it.
- Favicon,
manifest.webmanifestand the Open Graph image are easy to forget.- Keep the theme’s licence file; rebranding the site does not change its terms.
Measure the job first
Search for the demo name and domain before you change anything:
# Terminal
grep -rnil "aurora studio\|aurora-demo" . --exclude-dir=node_modules --exclude-dir=.git --exclude-dir=dist
The list is your checklist. Most themes keep the brand in a handful of files; a long list means some components hard-code it, and those are worth pointing at the settings file while you are there.
Rename the project itself
// package.json
{
"name": "harbour-dental-site",
"type": "module",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "astro dev",
"build": "astro build",
"preview": "astro preview"
}
}
Keep "private": true so the project can never be published to npm by accident, and leave scripts and dependencies alone. Then rename the folder and, if you created your own repository, its name on GitHub. If the theme repo is still a remote, keep it as upstream so you can merge updates later; tracking theme updates with an upstream remote shows the setup.
After renaming the folder, delete the caches that store absolute paths and reinstall:
# Terminal
rm -rf node_modules .astro dist
npm install
npm run dev
Replace the brand values
Edit the theme settings file (often src/config.ts or src/data/site.ts) with the new name, tagline, description, contact details and social links, and set site to the new domain in astro.config.mjs. Setting the site name, URL and social links walks through both files.
Then fix the places a settings file cannot reach:
- Legal pages. Privacy and terms pages often name the demo company. Rewrite them for the real business.
- Structured data. Search for
"@type": "Organization"orapplication/ld+jsonand update the name, logo and URLs. - Image alt text. Alt text such as “Aurora Studio logo” needs the new name.
- README. Replace the theme’s README with notes for whoever maintains the site next: how to run, build and deploy.
Swap the visual identity
Replace files in place, keeping names where you can so imports keep working:
| File | What to change |
|---|---|
src/assets/logo.svg or inline SVG in Header.astro |
New logo; check it at mobile width |
public/favicon.svg, public/favicon.ico |
New favicon |
public/apple-touch-icon.png |
180 by 180 pixel icon |
public/manifest.webmanifest |
name, short_name, theme_color, icons |
public/og-default.jpg (name varies) |
1200 by 630 social image |
Then update the colours and fonts through the theme’s design tokens rather than component by component; our design tokens guide explains the pattern, and placeholder image swaps covers the photography.
Verify in the built output
Source searches miss text that comes from content files and data. Search what you will actually deploy:
# Terminal
npm run build
grep -rli "aurora" dist/ | head -20
An empty result means the rebrand is complete. Also open dist/sitemap-index.xml (if the theme has a sitemap) to confirm the new domain.
Keep the licence file
Rebranding changes how the site looks, not who wrote the theme or what you are allowed to do with it. Keep the theme’s LICENSE or licence notice in the repository. A Komal theme’s commercial licence lets you build and rebrand unlimited sites for yourself or paying clients; it does not let you resell the rebranded files as a new theme. If you are rebranding for a dental client, for example, the Medical themes already ship clinic pages.
FAQ
Can I remove the theme author’s name from my Astro site?
Usually yes for visible credits such as a footer link, depending on the theme’s licence. Keep the licence file in the repository either way. Check the licence text for any attribution requirement before removing credits.
Do I need to rename package.json in an Astro project?
It is not required, because the name is not shown on the site. Renaming it keeps logs, tooling and monorepo setups clear, so it is worth the ten seconds.
Why does my old theme name still show in Google?
Search results show the last crawled version. After deploying the rebrand, request indexing of the homepage in Google Search Console and resubmit the sitemap.
How do I rebrand an Astro theme for a client?
Do the full rename in your own copy, deploy it to the client’s domain, and hand over a repository the client owns. Check the theme licence allows client use; Komal theme licences do.