🔥 All-Access Pass — $199 USD (Regular $499) · Unlock all 2,836 Astro themes ➔
komal.nakrani
Get All-Access Pass ($199)
ThemesCategoriesDocsBlogTips & TricksPricingGet All-Access Pass ($199)
Astro Themes••By Komal Nakrani

White Label Website Builds with Astro: A Practical Guide

How to deliver white label websites with Astro: remove your branding, keep client config in one file, ship from a private repo, and stay within the theme license.

#Astro#White Label Website#Agencies#Client Work#Astro Themes

A white label website is a site you build that carries your client’s brand (or your reseller partner’s brand) with no trace of yours. With Astro, white labelling is mostly about three things: keeping every brand value in one config file, stripping agency names from the code, metadata and build output, and delivering the project from a repository the client or partner owns.

Astro makes this easier than most stacks because there is no admin panel, plugin footer or hosted dashboard that shows who built it. The output is static HTML, and everything a visitor can see comes from source you control.

Key Takeaways

  • Put name, logo, colours, contact details and URLs in src/config/brand.ts so one project can be rebranded by editing one file.
  • Search the build output in dist/ for your agency name before every hand-off. Meta tags and comments leak.
  • Use CSS custom properties for brand colours so a new partner is a variables change, not a refactor.
  • Deliver from a repository and hosting account in the client’s name.
  • White labelling a site is fine under most commercial licences. Reselling the theme as a theme is not.

What white labelling means for agency work

In agency terms, white label work usually takes one of two forms:

  1. You build for another agency that sells the site to its client under its own name. You never appear.
  2. You build for a client and deliver a site with only their branding, no “built by” credits, and no tooling that points back to you.

Both need the same technical discipline. Brand values cannot be scattered across 40 components, and nothing in the HTML, JavaScript, images or repository history should reveal the original builder unless that is agreed.

Keep the brand in one config file

Start every white label project with a brand file. Components read from it instead of hard-coding names.

// src/config/brand.ts
export const brand = {
  name: 'Northline Physio',
  legalName: 'Northline Physiotherapy Ltd',
  tagline: 'Sports and spinal physiotherapy in Leeds',
  url: 'https://www.northlinephysio.example',
  email: '[email protected]',
  phone: '+44 113 496 0000',
  logo: { src: '/brand/logo.svg', alt: 'Northline Physio' },
  social: {
    instagram: '',
    linkedin: 'https://www.linkedin.com/company/northline-physio-example',
  },
  colors: {
    primary: '#0f5e9c',
    accent: '#f2a33a',
    surface: '#ffffff',
    text: '#1b1f24',
  },
} as const;

Then use it everywhere a name appears:

---
// src/components/SiteFooter.astro
import { brand } from '../config/brand';
const year = new Date().getFullYear();
---
<footer class="site-footer">
  <img src={brand.logo.src} alt={brand.logo.alt} width="140" height="32" />
  <p>&copy; {year} {brand.legalName}</p>
  <a href={`mailto:${brand.email}`}>{brand.email}</a>
</footer>

For a second partner, copy the repository and change brand.ts and the files in public/brand/. Nothing else should need editing. If it does, that component was hard-coding something it should have read from config.

Brand colours as CSS custom properties

Map the config colours to CSS variables once, in the base layout. Every component then uses var(--color-primary) instead of a hex value.

---
// src/layouts/BaseLayout.astro
import { brand } from '../config/brand';
const { title } = Astro.props;
---
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>{title} | {brand.name}</title>
    <link rel="icon" href="/brand/favicon.svg" type="image/svg+xml" />
  </head>
  <body>
    <slot />
  </body>
</html>

<style define:vars={{
  primary: brand.colors.primary,
  accent: brand.colors.accent,
  surface: brand.colors.surface,
  text: brand.colors.text,
}}>
  :global(:root) {
    --color-primary: var(--primary);
    --color-accent: var(--accent);
    --color-surface: var(--surface);
    --color-text: var(--text);
  }
</style>

If the project uses Tailwind CSS, point the Tailwind colours at the same variables (primary: 'var(--color-primary)') so utility classes follow the brand file too. The design tokens with CSS variables guide covers this pattern in more depth.

Remove your own fingerprints

Agency names leak into places people forget. Before hand-off, check each of these.

Location What to look for
package.json name, author, repository, homepage fields
<head> <meta name="author">, generator, Open Graph site_name
Footer and legal pages “Built by”, “Designed by”, agency links
public/ Favicons, OG images, humans.txt, old logos
Comments HTML comments in components, which Astro keeps in output
Git history Commit authors and messages, if you hand over the repository
Analytics and forms Your tracking IDs, your form backend account

Then scan the built site, because that is what visitors receive:

# Build, then search the output for your agency name and domains
npm run build
grep -rniE "studio example|studioexample\.com" dist/ || echo "clean"

Astro adds <meta name="generator"> only if your layout includes {Astro.generator}. Remove it if you do not want the stack disclosed, although revealing Astro is rarely a problem.

If you hand over the Git repository and do not want your commit history visible, deliver a fresh repository with a single initial commit from the current state. Agree this with the client first; some prefer the full history.

Deliver from the client’s accounts

A white label site should not depend on anything in your name after launch:

  1. Repository: create it in the client’s or partner’s GitHub organisation, or transfer it.
  2. Hosting: deploy from their Cloudflare Pages, Netlify or Vercel account. The Cloudflare Pages deployment guide shows the setup.
  3. Domain and DNS: registered and managed by them.
  4. Third-party services: form endpoints, analytics, newsletter tools, maps API keys in their accounts, stored as environment variables, not in code.
# .env.example (committed): the client fills in their own values
PUBLIC_ANALYTICS_DOMAIN=
FORM_ENDPOINT=

This is also the point where a hand-off document helps: where the code lives, how to deploy, how to edit content, and which services hold which keys. The Astro launch checklist is a good base for that document.

Licensing and white label work

If you started from a paid theme, check that the licence covers client work and does not require a visible credit. Most commercial template licences do not require credits. Open-source themes under MIT require keeping the copyright notice in the source code, which is not visible to site visitors, so white labelling is still possible.

What licences do forbid is selling the template itself. White labelling a finished website for a client or partner is selling a website. Packaging your customised theme and selling it to other agencies as a starter is redistributing the template, which commercial licences, including the Komal licence, prohibit. The template licence guide explains the difference.

Scaling white label work across partners

Once you have done two or three white label projects, a pattern emerges. Keep one internal base project with your shared components and the brand file, and create each client project from it. Changes to the base do not flow automatically into delivered sites, and that is fine: each client owns a finished, independent codebase.

If you want a starting point per vertical (a clinic, a law firm, a restaurant), it is usually faster to start each from a theme in that niche than to stretch one base across every industry. Komal themes ship with a commercial licence for unlimited client sites, and Astro themes for portfolios and agencies is the largest category if you need a base for agency-style builds.

FAQ

What is a white label website?

It is a website built by one company and delivered under another company’s brand, with no visible credit to the builder. Agencies often buy white label builds from freelancers or other studios and sell them to their own clients.

Can I white label a site built from a theme?

Usually yes. Commercial theme licences generally allow client sites without visible credits. Check the licence for attribution requirements and make sure you are delivering a website, not redistributing the theme files.

How do I remove “Built with Astro” from my site?

Astro adds nothing visible by default. Remove {Astro.generator} from your layout’s <meta name="generator"> tag if present, and delete any footer credit the theme added.

Should the client own the hosting account?

Yes, for white label work it is the cleaner choice. The client or partner controls the domain, deploys and billing, and nothing breaks if your relationship with them ends.

Is white labelling the same as reselling a theme?

No. White labelling sells a finished website under someone else’s brand. Reselling a theme means distributing the template source as a product, which most commercial licences prohibit.