Updated 23 November 2026
You can look up the versions, files and commands of the Astro format here. Every one of the 122 templates comes as a complete Astro project. The 7 templates with accounts and a database are design only in this format: their sign-in, account, admin and record pages are designed pages with no server, API or database behind them. The working version is the Next.js format.
Versions
Checked on 23 November 2026.
- Astro 7.4.13
- Tailwind CSS 4.3.5 through
@tailwindcss/vite, set inastro.config.mjs - GSAP and Three.js from npm, only in templates that use them
- Node.js 24 or newer
Files
src/pages/has one.astrofile per page:index.astro,about.astroand so on, plus404.astro. Each page puts its own head tags (title, description, canonical, social cards and structured data) in<Fragment slot="head">, and its sections as content.src/layouts/Base.astroholds the<html>element, the head tags every page shares, the stylesheet and the behaviours.src/components/has one<Name>.astrofile for each section shown the same on more than one page, such as the header and the footer. A change there reaches every page that uses it. A section used on one page only is written in that page.src/styles/global.cssis the Tailwind source, with the colour tokens, dark mode and the@font-facerules.src/scripts/main.jsimports and starts the behaviours insrc/scripts/behaviours/. That folder has one file per behaviour: menus, accordions, sliders, motion and forms. To add one, export a function from a new file and call it inmain.js.public/holds images, videos, fonts,robots.txt,sitemap.xmlandllms.txt. Astro serves it from the site root.astro.config.mjssetssitefromSITE_URLandtrailingSlashto always, so each page is built as<page>/index.html.
In .astro markup, curly braces are expressions. Write a literal brace in text as { or }, and give inline <script> and <style> tags the is:inline attribute so Astro leaves them as they are.
Commands
npm installinstalls the packages.npm run devstarts the Astro dev server, by default athttp://localhost:4321.npm run buildwrites the site todist/.npm run previewservesdist/so you can check the build.npm run checkrunsastro check.
Header, footer and new pages
The header and the footer are components, so you edit each one once. To add a page, create src/pages/<name>.astro with the Base layout and the shared components, add it to the navigation in src/components/Header.astro (and to the footer if it is listed there), and add its address to public/sitemap.xml.
Forms
Each form has a data-form-endpoint attribute. Set it to the address of your form service on every form. Search for data-form-endpoint="" to find them. See Forms. The submit code is in src/scripts/behaviours/form.js.
Static hosting
Run npm run build and upload dist/ to any static host. See Deploy a static site. Before you launch, replace https://example.com in public/sitemap.xml, public/robots.txt and the canonical and og:url tags with your address, or set SITE_URL for the addresses Astro builds itself. For a site served from a sub-folder, such as a GitHub Pages project site, set base in astro.config.mjs to "/repo-name/".
Other formats
The package also includes Tailwind HTML, Tailwind + Vite, Next.js, React + Vite and Vue + Vite.
