From website template to live site, step by step
Get the theme from GitHub or as a zip, run it locally, replace the demo content, set SITE_URL and deploy to Cloudflare, Netlify or Vercel.
- Dateline 3.0.1
- Node.js 24
- pnpm 10
Going from a themes.dev website theme to a live site takes five steps: get the code (a private GitHub repository or a zip), install and run it locally, replace the demo content with yours, set your site's address, and deploy. For an Astro theme on Cloudflare, Netlify or Vercel that's an afternoon; most of the time goes into your own content, not the setup. This page follows the real files in our themes, using Dateline 3.0.1 as the example.
1. Get the code
Every website theme comes with UI Pro: the Astro edition with UI Pro, and the Next.js + Sanity edition as well with UI Pro Complete. On your account page, each theme offers two ways in:
- A private GitHub repository. Sign in with GitHub so we know which account to invite, then choose "Invite me". Accept the invitation on GitHub within seven days. You get read access: clone it, or better, use it as the upstream of your own repository so you can pull our updates later.
- A zip download. The same files, for when you don't use GitHub or want a clean start.
2. Run it locally
Our themes use pnpm. You need Node.js 22.18 or newer for the Astro editions (the Next.js editions say 22.12 or newer; each README names it).
npm install -g pnpmpnpm installpnpm dev # http://localhost:4321You'll see the demo site, filled with an invented business. Every person, place and figure in a demo is made up, so nothing in it can be published as is.
3. Make it yours
Where the content lives depends on the edition:
- Astro: in
src/content/, as Markdown and JSON files, checked against a schema.pnpm checktells you when a field is missing or wrong. - Next.js + Sanity: in a Sanity project you create (the free plan is enough). The README's "Set up Sanity" section takes about ten minutes, including importing the demo content so you can edit rather than start from empty. The Studio is in the repository's
studio/folder.
The look is set by tokens: colours, radius and fonts in one CSS file, the same shadcn/ui variables the blocks read. Change them there rather than in components. Adding a brand colour shows the pattern, and pnpm lint checks that you didn't hard-code a colour by accident.
Replace the photos too. The demo photos are generated for the demo and are there to show the layout.
4. Set the site's address
Canonical links, the sitemap, the RSS feed and the Open Graph images all need the final URL. Set SITE_URL when you build:
SITE_URL=https://www.example.com pnpm buildOn a host, put SITE_URL in the build settings instead. Or change the fallback in astro.config.mjs once.
5. Deploy
The Astro editions build to plain files in dist/, so any static host works. Dateline's repository, like most of our Astro themes, already contains the config for the two hosts we use most (check your theme's README for its exact list):
| Host | What's in the repo | What you do |
|---|---|---|
| Cloudflare Workers | wrangler.jsonc with static assets, 404 handling and trailing slashes | Change name, then pnpm build && npx wrangler deploy |
| Netlify | netlify.toml | Connect the repository; it reads the build settings from the file |
| Vercel | Nothing needed | Import the repository; Vercel recognises Astro |
Step by step for Cloudflare, including deploying on every push and adding your domain: deploy Astro to Cloudflare Workers. For the Next.js editions (OpenNext on Cloudflare, or Vercel): deploy Next.js to Cloudflare Workers, and deploy Sanity Studio for the editors.
Forms
Forms post to endpoints you set in the theme's content (in Dateline: src/content/site.json, under forms), and they work without JavaScript. On Cloudflare, a small optional Worker in worker/ handles them: it checks the required fields, forwards each submission as JSON to the address you set as the secret FORWARD_URL and redirects to /thanks/. Without that secret it accepts nothing. The README's Forms section has the two lines to uncomment. On another host, point the forms at your own form service.
Getting updates later
Each theme has a CHANGELOG.md, and every release is on our changelog. If you started from the repository, keep ours as a second remote and merge its new commits into your branch when a release comes out; most of your changes are content, which our releases rarely touch. From a zip, download the new version and compare.
Questions
Can I use a theme for a client's site?
Yes. You can build client sites with it and hand them over; the client may own, host and edit the finished site. What isn't allowed is reselling the theme itself. What the licence allows has the details.
Do I need to know React for an Astro theme?
Not for content and styling. The sections are React components rendered to HTML at build time, so you'll see .tsx files, but most changes are content, props and tokens.
Which edition should I pick?
Astro when you, or a developer, edit the content in files. Next.js + Sanity when non-technical editors need a CMS with drafts and previews.
Related articles
- DeployingDeploy an Astro site to Cloudflare WorkersA static Astro site needs no adapter: a four-line wrangler.jsonc and wrangler deploy. When pages render on request, add @astrojs/cloudflare. Both tested.
- SanityHow to deploy Sanity Studio (hosted or self-hosted)npx sanity deploy puts the Studio on *.sanity.studio for free. Set studioHost for unattended deploys, use a deploy token in CI, or host it yourself.
- Using themes.devWhat the UI Pro licence allows: client work, teams and the MIT free libraryUnlimited projects and client sites, paid once. No reselling the blocks as a kit or template. How the sizes work, common cases, and how MIT differs.
Still stuck? We answer every message ourselves. Write to us