Astro Moon Base is an opinionated Astro starter template with built-in support for Vue, shadcn-vue, Tailwind CSS, Prettier, view transitions, and aliases.
Using create astro@latest provides everything you need to create a basic Astro application. However, it is missing a few useful items that you might find yourself manually adding to every new Astro project. The Moon Base template was created to automatically include these items and the Vue integration plus a starter AstroWelcome component to showcase Tailwind and shadcn-vue. This provides a great starting point with sample code for a new Astro project with Vue client islands, Tailwind CSS and shadcn-vue.
The template includes:
- An initial Astro project structure
- Astro View Transitions
- Astro Aliases
- Tailwind CSS
- Prettier
- Vue
- shadcn-vue
- Default .vscode files to properly handle Tailwind CSS, recommended extensions, and default Prettier formatters
- A default MainLayout.astro layout file
- A default global.css file
- A default components.json file with
neutralbase color - A blank README.md file
- A starter component to showcase Tailwind CSS
- The
devscript set to"astro dev --open"
npm create astro@latest -q -- --template smart-ace-designs/astro-moonbase project-namebun create astro@latest -- --template smart-ace-designs/astro-moonbase project-namepnpm create astro@latest --template smart-ace-designs/astro-moonbase project-nameyarn create astro@latest --template smart-ace-designs/astro-moonbase project-nameUsing shadcn-vue Components
To add a shadcn-vue component to your Astro project for use with a Vue client island: shadcn-vue CLI
After deploying the Astro Moon Base template you will see the following files and directories in your project root:
/
├── .vscode/
│ ├── extensions.json
│ ├── launch.json
│ └── settings.json
├── public/
│ └── favicon.svg
├── src/
│ ├── components/
│ │ └── AstroWelcome.vue
│ ├── layouts/
│ │ └── MainLayout.astro
│ ├── lib/
│ │ └── utils.ts
│ ├── pages/
│ │ └── index.astro
│ └── styles/
│ └── global.css
├── .gitignore
├── .prettierignore
├── AGENTS.md
├── astro.config.mjs
├── components.json
├── package.json
├── prettier.config.ts
├── README.md
└── tsconfig.json