Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A minimal Astro and Sanity CMS starter template for building modern, content-driven websites.

Astro landing page starter with gradient background, responsive hamburger/dropdown menu, and switchable floating/fullscreen headers.
Astro Sanity Starter is a minimal boilerplate for building fast, content-driven landing pages with the Astro static site generator and Sanity CMS as the editing backend.
Astro Sanity Starter is a minimal starter template that pairs the Astro static site generator with the Sanity CMS headless content platform. It takes a Sanity project containing structured content and produces a static, content-driven website served through Astro's build pipeline. The template runs on Node.js v20 or newer and includes a dedicated studio directory containing Sanity Studio code for editing content. The repository describes itself as "a minimal template created for quick landing pages."
studio folder, plus npm scripts to create a Sanity project and import starter content..env file with variables such as SANITY_PROJECT_ID, SANITY_DATASET, and SANITY_TOKEN.npm run dev to start the Astro dev server on localhost:3000, and sanity dev in the studio folder to run Sanity Studio on localhost:3333.npm run create-project, run npm run import with your project ID to load the template's sample content into the dataset.studio directory with sanity dev to write and structure content before publishing.The setup flow is described in the repository's Getting Started guide: install dependencies with npm install, authenticate with Sanity using sanity login, create a Sanity project with npm run create-project, and import content with npm run import. After storing Sanity credentials in a .env file and configuring the studio directory, you run sanity dev for the CMS and npm run dev for the Astro site, then open localhost:3000 in your browser.
Node.js v20 or newer is required to run the template. The repository also lists nvm as an optional tool for managing Node versions.
You need to create a Sanity project via npm run create-project, then set three environment variables in a .env file: SANITY_PROJECT_ID, SANITY_DATASET, and SANITY_TOKEN. The studio directory requires its own .env with SANITY_STUDIO_PROJECT_ID and SANITY_STUDIO_DATASET.
The repository points users to Netlify's support forums at https://answers.netlify.com/ for assistance.
Yes, the repository includes a live demo hosted on Netlify at https://astro-sanity-starter-demo.netlify.app/.
The repository topics list Tailwind CSS v4 and DaisyUI. Tailwind provides utility classes for layout and components, and DaisyUI adds pre-built component classes on top of it.
