Welcome to the AstroGlass Template! This guide will walk you through setting up your development environment and customizing the template to fit your needs.
Prerequisites
Before you begin, make sure you have the following installed:
- Node.js v20 or higher
- pnpm (recommended) or npm
- A code editor (VS Code recommended)
We recommend using pnpm for faster, disk-efficient package management.
Installation
Clone the Repository
First, clone the template repository to your local machine:
git clone https://github.com/kamsqee/astroglass.git my-projectcd my-projectInstall Dependencies
Install the project dependencies using your preferred package manager:
pnpm installnpm installyarn installStart the Development Server
Run the development server to see your template in action:
pnpm devnpm run devyarn devYour site should now be running at http://localhost:4321 🎉
Project Structure
Here’s an overview of the project’s folder structure:
- src/
- components/
- sections/
- hero/
- HeroLiquid.astro
- HeroGlass.astro
- HeroNeo.astro
- …
- features/
- pricing/
- about/
- portfolio/
- …
- hero/
- layout/
- header/
- ui/
- docs/
- mdx/
- sections/
- config/
- themes.ts
- locales.ts
- docs.ts
- navigation.ts
- content/
- docs/
- en/
- ru/
- blog/
- docs/
- locales/
- en/
- ru/
- pages/
- index.astro
- [theme].astro
- docs/
- blog/
- styles/
- global.css
- _themes.css
- components/
- components/
- public/
- astro.config.mjs
- package.json
Choosing a Theme
The template comes with 6 beautiful themes out of the box:
| Theme | Description |
|---|---|
| Liquid | Fluid animations, gradient backgrounds |
| Glass | Glassmorphism effects, frosted panels |
| Neo | Bold typography, strong contrast |
| Luxury | Elegant gold accents, premium feel |
| Minimal | Clean, focused, distraction-free |
| Aurora | Immersive gradients, geometric structure |
To switch themes, simply navigate to the theme switcher in the header or visit the theme demo pages directly (e.g., /liquid, /glass, /aurora).
Next Steps
Now that you have your development environment set up:
- Theming System — Learn how the dynamic theming architecture works
- Routing & i18n — Add support for more languages
- Cloudflare Deployment — Deploy to Cloudflare Pages
Check out the Forms & Validation Guide or open an issue if you run into any problems.